<?php include('inc/header.php'); ?>

 <?php   
$statement = $pdo->prepare("SELECT banners,mbanner FROM banners where page_name='News'");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {}
?>
    <!-- Breadcrumb Section Begin -->
      <section class="ban_sec">
		<div class="container-fluid">
			<div class="ban_img">
	<img src="admin/assets/images/banner-image/<?php echo $row['banners']; ?>" alt="banner" border="0">
				<div class="ban_text" style="color: #000;">
					<strong style="color: #000;">
						<span style="color: #fff;">CRAFTING</span><br> UNFORGETTABLE
							<br><span style="color: #fff;">EVENTS TOGETHER</span>
					</strong>
					<!--<p></p>-->
					<!--<a href="#">Lend a hand</a>-->
				</div>
			</div>
		</div>
	</section>
    <!-- Breadcrumb Section End -->

    <!-- Blog Section Begin -->
    <section class="blog-section blog-page spad mt-5">
        <div class="container">
            <div class="row">
            <?php   
$statement = $pdo->prepare("SELECT id,name,banner,created_at,short_description,slug FROM blogs");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
?>
                <div class="col-lg-4">
                    
                    <div class="card">
                        
                            <img src="admin/assets/images/blog-image/<?php echo $row['banner']; ?>" style="width: 100%; height: 250px;">
                           <a href="<?php path(); ?>blogs/<?php echo $row['slug']  ?>"> <h5 style="font-weight: bold; margin-top: 10px; color: #2B4279; text-align: center;"><?php echo $row['name']; ?></h5></a>
                           <p class="blog-para" style="color: #000; padding: 10px;"><?php echo $row['short_description']; ?></p>
                            <!--<div class="b-time text-dark"><i class="icon_clock_alt"></i> <?php //echo $row['created_at']; ?></div>-->
                            <a href="<?php path(); ?>blogs/<?php echo $row['slug']  ?>" style="text-align: center; font-size: 18px; color: red; padding-bottom: 15px; font-weight: bold;">Read More</a>
                       
                    </div>
             
                </div>

     <?php  } ?>

               
            </div>
        </div>
    </section>
    <!-- Blog Section End -->

    <?php include('inc/footer.php'); ?>
