<?php include_once('include/head.php'); ?>

<body>

	<div class="main-page-wrapper">

		<?php include_once('include/header.php'); ?>

		<!-- page-title-area start -->
		<div class="page-title-area text-center pt-100 pb-100 pt-lg-130 pb-lg-110"
			data-background="assets/img/bg/main-bg.png">
			<div class="container">
				<h2 class="page-title mb-15">Location</h2>

			</div>
		</div>
		<!-- page-title-area end -->

		<!-- ht-service-section start -->
		<!-- ht-service-section start -->
		<section class="ht-service-section position-relative servicepics">
			<div class="ht-service-wrapper-bg">
				<div class="container">


					<div class="row text-center">
					    <?php
                        $loc = mysqli_query($conn, "SELECT * FROM location");
                        while($col = mysqli_fetch_array($loc))
                        {
                            $loc_tittle = $col['name'];
                            $slug = $col['slug'];
                        ?>
						<div class="col-6 col-lg-3 mb-3">
							<div class="card">
							    <a href="<?php path(); ?>/location/<?php echo $slug; ?>">
								<img src="<?php path(); ?>/img/map.jpg" class="card-img-top" alt="...">
								</a>
								<div class="card-body" style="padding: 10px 10px 0 10px;color: white;
                                            background: #0946a2;">
									<a href="<?php path(); ?>/location/<?php echo $slug; ?>">
									    <h5 class="card-title"><?php echo $loc_tittle;  ?></h5></a>
									
								</div>
							</div>
						</div>
						 <?php
                        }
                        ?>
					</div>

				</div>
			</div>
		</section>
		<!-- ht-service-section end -->

		<?php include_once('include/footer.php'); ?>

</body>

</html>