<?php include_once("include/main.inc.php");
$admin_res=getAdminDetails();
$page_metatitle = "Aarna Systems And Wellness Pvt. Ltd. - Blog";
$page_metakey = "Aarna Systems And Wellness Pvt. Ltd. - Blog";
$page_metadesc = "Aarna Systems And Wellness Pvt. Ltd. - Blog";
$pg= "blog";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $page_metatitle;?></title>  
     <meta name=description content="<?php echo $page_metadesc;?>"> 
    <meta name=keywords content="<?php echo $page_metakey;?>">
    <?php include 'components/top_header.php';?>
</head>

<body>
    <div class="webpulse-main-wrapper">
        <!-- Header -->
        <?php include 'components/header.php';?>

        <!-- Heading Banner -->
        <section class="heading_banner" style="background-image: url(<?=theme_url?>images/blog/blog.jpg)">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12 text-center">
                        <h1 class="cat_title">Blogs</h1>
                        <div class="clearfix"></div>
                        
                    </div>
                </div>
            </div>
        </section>

        <!-- Breadcrumb -->
        <div class="inner_breadcrumb hidden-xs">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <ul class="breadcrumb">
                            <li><a href="<?=site_url?>" title="Home">Home</a></li>
                            <li class="active">Blogs</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>


        <!-- Home About -->
        <section class="blog_page">
            <div class="container">
                <div class="row">
                    <div class="col-md-9">
                        <div class="blog_left">
                            <h2 class="bg-title">Blogs</h2>
                            <!-- <img src="<?=theme_url?>images/scratch-card.jpg" alt="Aarna Systems" class="w-100 mb-5"> -->
                            <div class="feature_blog">
                                
        <?php   $sql_blog=mysqli_query($dbconn,"select * from blog_tbl");
                while($res_blog=mysqli_fetch_array($sql_blog)) { ?>
                                <div class="feature_blog_item">
                                    <div class="row">
                                        <div class="col-lg-6 col-md-6">
                                            <div class="image">
                                                <a href="<?=site_url;?>/blog/<?=getValidFileName($res_blog['catName']);?>.htm">
                                             <img src="<?=site_url;?>/uploaded-files/blog/images/<?=$res_blog['catImage'];?>" alt="<?=$res_blog['blogDname']?>" title="<?=$res_blog['blogDname']?>">
                                                </a>
                                            </div>
                                        </div>
                                        <div class="col-lg-6 col-md-6">
                                            <div class="blog_content">
                                                <h3 class="blog-title"><a href="<?=site_url;?>/blog/<?=getValidFileName($res_blog['catName']);?>.htm" title="<?=$res_blog['blogDname']?>"><?=$res_blog['blogDname']?></a></h3>
                                                <p><?=substr($res_blog['pageDescription'],0,150)?>...</p>
                                                <a class="read_more_product btn-style-two" href="<?=site_url;?>/blog/<?=getValidFileName($res_blog['catName']);?>.htm" title="Read More"><span>Read More</span></a>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                         <?php  } ?>   
                            </div>


                            <div class="clearfix"></div>
                       
                        </div>
                    </div>

                    <div class="col-md-3">
                        <div class="left_sidebar">
                            <div class="left_title1">Popular Post</div>
                          <?php 
 $sql_blog=mysqli_query($dbconn,"select * from blog_tbl");
   while($res_blog=mysqli_fetch_array($sql_blog)) { ?>
                            <div class="right_news">
                                 <a href="<?=site_url;?>/blog/<?=getValidFileName($res_blog['catName']);?>.htm" title="<?php echo ($res_blog['blogDname']);?>">
                                    <div class="image">
                                            <img src="<?=getImage($res_blog['catImage'], 268, 140, $res_blog['catName'],"/uploaded-files/blog/images/");?>" title="<?php echo ($res_blog['blogDname']);?>" alt="<?php echo ($res_blog['blogDname']);?>">
                                    </div>
                                </a>
                                <h5>  <a href="<?=site_url;?>/blog/<?=getValidFileName($res_blog['catName']);?>.htm" title="<?php echo ($res_blog['blogDname']);?>"><?php echo ($res_blog['blogDname']);?></a></h5>
                            </div>
<?php  } ?>


                        </div>

                    </div>
                </div>
            </div>
        </section>


              <?php include 'components/app_testi_client.php';?>
        <!-- Footer -->
        <?php include 'components/footer.php';?>
    </div>
    <?php include 'components/bottom_footer.php';?>
</body>
</html>