<div class="container-fluid wln-white p-5">
    <div class="row pb-3">
        <div class="col-sm-12 d-flex justify-content-center">
            <h2 class="wln-text-purple"> <?php echo $category->category; ?> </h2>
        </div>
    </div>
    <div class="row">
        <?php foreach ($packages as $package) { ?>
        <div class="col-sm-12 col-md-4 mb-5">
            <div class="card border img-box shadow-sm">
                <?php 
                    $image_result = $image_service->get($package->thumbnail);
                    $image = new Image(
                        $image_result['id'],
                        $image_result['caption'],
                        $image_result['filename']
                    ); 
                ?>
                <img src="assets/images/<?php echo $image->filename; ?>" onerror="this.src='assets/<?php echo $onerror; ?>';" class="card-img-top img-fluid package-img" alt="<?php echo $image->caption; ?>">
                <div class="card-body">
                    <div class="container-fluid px-0">
                        <div class="row">
                            <div class="col-8 div-border">
                                <a href="packages/<?php echo $package->url; ?>">
                                    <h5 class="card-title wln-text-purple"> <?php echo $package->name; ?></h5>
                                </a>
                                <p class="card-text wln-text-orange">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <?php echo $package->location; ?>
                                </p>
                            </div>
                            <div class="col-4">
                                <p class="card-text"><?php echo $package->days; ?>D/<?php echo $package->nights; ?>N</p>
                                <p class="card-text">Nrs.<?php echo $package->starting_price; ?> per pax</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php } ?>
    </div>
</div>