<?php
  $getPostAsk->execute(array(
    'seo_url'    => $_GET["seo_url"],
    'post_type'  => 'post_notices'
  ));
  $postDataCheck=$getPostAsk->fetch(PDO::FETCH_ASSOC);
?>
<div class="tp-page-title-area pt-180 pb-185 position-relative fix" data-background="<?php echo $postDataCheck['banner']; ?>">
            <div class="tp-custom-container">
                <div class="row">
                    <div class="col-12">
                        <div class="tp-page-title z-index">
                            <div class="breadcrumb-menu">
                                <nav class="breadcrumb-trail breadcrumbs">
                                    <ul class="trail-items">
                                        <li class="trail-item trail-begin"><a href="<?php echo $generalSettingCheck['site_url']; ?>"><?php echo $langArray['LINK_HOME']; ?></a>
                                        </li>
                                        <?php if ($postDataCheck['post_type'] == 'post_services') { ?>
           <li class="trail-item trail-end"><a href="<?php echo $generalSettingCheck['site_url']; ?><?php echo $langArray['LINK_SERVICES_LINK']; ?>"><?php echo $langArray['LINK_SERVICES']; ?></a></li>
           <?php } ?>
        <li class="trail-item trail-end"><?php echo $postDataCheck['title']; ?></li>
                                    </ul>
                                </nav>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
 
        <section class="tp-service-details-area pt-120 pb-90">
            <div class="container">
                <div class="row">
                  
                    <div class="col-xl-9 col-lg-8">
                        <div class="tp-service-details">
                            <div class="row">
                             
                            </div>
                            <h2 class="tp-section-title heading-color-black pt-10 mb-20"> <?php echo $postDataCheck['title']; ?></h2>
                            <p class="mb-20"> <?php echo $postDataCheck['content']; ?></p>
                           
                            <div class="tp-service-details-img mb-30 position-relative">
                                <img src=" <?php echo $postDataCheck['banner']; ?>" alt=" <?php echo $postDataCheck['title']; ?>">
                              
                            </div>
                            </div>
                        </div>
                          <div class="col-xl-3 col-lg-4">
                        <div class="tp-faqs-left">
                            <div class="tp-faqs-left-sidebar tp-services-sidebar mb-30">
                                <ul>
                               <?php
          $totalData = $db->query("SELECT COUNT(*) FROM posts WHERE post_type='post_notices' AND status=1 AND language={$getLangCheck['language_id']}")->fetchColumn();
          $show = 6;
          $totalPage = ceil($totalData / $show);
          $page = @$_GET["p"];
          if($page < 1) $page = 1;
          if($page > $totalPage){
            $page = (int)$totalPage;
          }
          $limit = ($page - 1) * $show;
          $data = $db->prepare("SELECT * FROM posts WHERE post_type='post_notices' AND status=1 AND language={$getLangCheck['language_id']} LIMIT :basla, :bitir");
          $data->bindValue(":basla",$limit,PDO::PARAM_INT);
          $data->bindValue(":bitir",$show,PDO::PARAM_INT);
          $data->execute();
          $sequence = $data->fetchAll(PDO::FETCH_OBJ);
          if ($sequence == null) {
           echo '
           <div class="col-sm-12">
             <span class="alert alert-danger block">'.$langArray['NO_CONTENT'].'</span>
           </div>
           ';
          }
          foreach ($sequence as $item){
        ?>
                                <li><a href="<?php echo $item->seo_url;?>"><?php echo $item->title;?></a></li>
                              
                             <?php } ?> 
                                </ul>
                            </div>
                           <div class="tp-faqs-left-sidebar tp-services-sidebar mb-30">
                                <h4 class="tp-faqs-left-sidebar-title mb-30"><?php echo $langArray['Contact_me']; ?></h4>
                                <div class="tp-services-sidebar-btn">
                                     <a href="tel:<?php echo $generalSettingCheck['contact_land_phone']; ?>"> <strong><?php echo $generalSettingCheck['contact_land_phone']; ?></strong></a><br>
                 <a href="tel:<?php echo $generalSettingCheck['contact_mobile_phone']; ?>"><strong><?php echo $generalSettingCheck['contact_mobile_phone']; ?></strong></a><br>
                  <a href="tel:<?php echo $generalSettingCheck['contact_fax']; ?>"> <strong><?php echo $generalSettingCheck['contact_fax']; ?></strong></a>
                                </div>
                            </div>
                        </div>
                    </div>
                    </div>
                </div>
            </div>
        </section>