<?php 
include_once("include/main.inc.php"); 
$blog_res = mysqli_query($dbconn, "select * from blog_tbl order by blogDate desc");
$hover='blog';
$page_metatitle = "Melody Medisystem - Blog";
$page_metakey = "Melody Medisystem - Blog";
$page_metadesc = "Melody Medisystem - Blog";
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <title><?php echo $page_metatitle; ?></title>
      <meta name=description content="<?php echo $page_metadesc; ?>">
      <meta name=keywords content="<?php echo $page_metakey; ?>">
    <?php include "app_top.php"; ?>
</head>

<body>
    <?php include 'app_header.php'; ?>

    <section class="heading_banner" style="background-image: url(<?=theme_url;?>/images/blog-banner.jpg)">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                    <h1 class="cat_title">Our Blog</h1>
                    <div class="clearfix"></div>
                    <h2 class="cat_title2">Healing The World With Advanced Technology</h2>
                </div>
            </div>
        </div>
    </section>

    <div class="inner_breadcrumb hidden_xs">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <ul class="breadcrumb">
                        <li><a href="<?=site_url;?>" title="Home">Home</a></li>
                        <li class="active">Our Blog</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <section class="blog_page">
    <div class="container">
            <h3 class="aboutTitle">Latest <span>Blogs</span></h3>
            <div class="clearfix"></div>
            <div class="row">
                 <?php while ($blog_sql = mysqli_fetch_array($blog_res)) { ?>
                <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-6 col-12">
                    <div class="blog-2">
                        <div class="blog-photo clip-home">
                            <img src="<?= getImage($blog_sql['catImage'], 416, 416, $blog_sql['catName'], "/uploaded-files/blog/images/"); ?>" alt="<?php echo $blog_sql['blogDname'];?>" title="<?php echo $blog_sql['blogDname'];?>" class="img-fluid bp">
                            <!--<div class="date-box">-->
                            <!--    <?php //echo $blog_sql['blogDate'];?>-->
                            <!--</div>-->
                        </div>
                        <div class="detail">
                            <h4><a href="<?=site_url;?>/blog/<?=getValidFileName($blog_sql['catName']);?>.htm" title="<?php echo $blog_sql['blogDname'];?>"><?php echo $blog_sql['blogDname'];?></a></h4>
                            <p><?php echo html_entity_decode(substr($blog_sql['catDesc'],0,80)); ?></p>
                            <a href="<?=site_url;?>/blog/<?=getValidFileName($blog_sql['catName']);?>.htm" class="moreBtn">Read More</a>
                        </div>
                    </div>
                </div>
                 <?php } ?>
            
            </div>
           
        </div>
    </section>

    <?php include "app_footer.php"; ?>
    <?php include "app_bottom.php"; ?>
</body>

</html>