<?php
include("admin/connection.php");
include('include/header.php');
?>
    <div class="breadcumb-wrapper" data-bg-src="assets/img/property-details/breadcrumb-bg.jpg">
        <div class="container">
            <div class="breadcumb-content">
                <h1 class="breadcumb-title">Our Location</h1>
                <ul class="breadcumb-menu">
                    <li><a href="<?php echo path()?>index.php">Home</a></li>
                    <li>Our Location</li>
                </ul>
            </div>
        </div>
    </div>
    <section class="overflow-hidden space space-extra-bottom" id="service-sec">
        <div class="container">
            <div class="row gy-40 justify-content-center">
                <?php
            $location = mysqli_query($con, "SELECT * FROM `locations` ORDER BY id DESC");
            while ($row = mysqli_fetch_array($location)) {
                $location_name = $row['location_name'];

                $slug = $row['slug'];
                $Image = $row['Image'];
            ?>
                <div class="col-6 col-xl-3 col-md-12 fadeinup wow">
                    <div class="service-card">
                        <div class="box-thumb">
                            <a href="<?php echo path(); ?>locations/<?php echo urlencode($slug); ?>">
                                <img src="<?php path(); ?>admin/assets/images/location/<?php echo htmlspecialchars($Image); ?>" alt="thumb"></a></div>
                        <div class="box-content">
                            
                            <h3 class="box-title"><a href="<?php echo path(); ?>locations/<?php echo urlencode($slug); ?>">
                                <?php echo $location_name; ?></a></h3>
                            
                        </div>
                    </div>
                </div>
                            <?php } ?>
               
            </div>
        </div>
    </section>
    <?php 
    include("include/footer.php");
    
    ?>