<?php
  $moduleAskData=$db->prepare("SELECT * FROM modules where module_id=:module_id");
  $moduleAskData->execute(array(
    'module_id' => 9
    ));
  $moduleCheckData=$moduleAskData->fetch(PDO::FETCH_ASSOC);

if ($moduleCheckData['status']==1){
?> 
  <section class="tp-service-area-two pt-120 pb-70">
            <div class="container">
                <div class="row">
                    <div class="col-12">
                        <div class="section-title-wrapper-two mb-55 text-center wow fadeInUp" data-wow-delay=".2s">
                            
                            <h2 class="tp-section-title heading-color-black"><?php echo  $langArray['TEAM_HEAD']; ?></h2>
                            <h5 class="tp-section-subtitle common-yellow-shape mb-20 heading-color-black"><?php echo  $langArray['TEAM_DESC']; ?></h5>
                        </div>
                    </div>
                </div>
                <div class="row">
                  <?php
        $personAsk->execute(array(
          'status'          => 1
        ));
        while ($personCheck=$personAsk->fetch(PDO::FETCH_ASSOC)){
      ?>
                    <div class="col-xl-3 col-md-6">
                        <div class="tp-service-two text-center mb-45 wow fadeInUp" data-wow-delay=".4s">
                            <div class="tp-service-two-img mb-35">
                                <div class="tp-service-two-img-box">
                                    <img src="<?php echo $personCheck['banner']; ?>" class="img-fluid" alt="<?php echo $personCheck['name']; ?>">
                                </div>
                                <div class="tp-service-two-icon-wrapper">
                                    <div class="tp-service-two-icon">
                                        <ul>
                                             <?php
                                          $personSocialAsk->execute(array(
                                            'status'        => 1,
                                            'personel_id'   => $personCheck['person_id']
                                          ));
                                          while ($personSocialCheck=$personSocialAsk->fetch(PDO::FETCH_ASSOC)){
                                        ?>
                  <li>  <a href="<?php echo $personSocialCheck['link']; ?>"><i class="fab <?php echo $personSocialCheck['icon']; ?>"></i></a>
                                        </li><?php } ?>
                                        </ul>
                                        <a href="javascript:void(0)" class="share-icon"><i class="fas fa-share-alt"></i></a>
                                    </div>
                                </div>
                            </div>
                            <div class="tp-service-two-content">
                                <h4 class="tp-service-two-title"><a href="javascript:void(0)"><?php echo $personCheck['name']; ?></a></h4>
                                <span><?php echo $personCheck['mission']; ?></span>
                            </div>
                        </div>
                    </div><?php } ?>
                  
                </div>
            </div>
        </section>
 

<?php } ?>
