<?php $home_setting = single_select_by_id(1,'home_setting'); ?>
<div class="footer_area">
  <div class="top_footer">
    <div class="container">
      <div class="row">
        <div class="col-sm-4">
          <div class="left_footer">
            <h4><?= $settings['site_name']; ?></h4>
            <ul class="">
              <?php if(!empty($home_setting['facebook'])): ?>
                <li><a href="<?= prep_url($home_setting['facebook']);?>"><i class="fa fa-facebook"></i></a></li>
              <?php endif;?>

              <?php if(!empty($home_setting['instagram'])): ?>
                <li><a href="<?= prep_url($home_setting['instagram']);?>"><i class="fa fa-instagram"></i></a></li>
              <?php endif;?>

              <?php if(!empty($home_setting['whatsapp'])): ?>
                <li><a href="<?= redirect_url('whatsapp',$home_setting['whatsapp'],admin()->dial_code);?>"><i class="fa fa-whatsapp"></i></a></li>
              <?php endif;?>

              <?php if(!empty($home_setting['linkedin'])): ?>
                <li><a href="<?= prep_url($home_setting['linkedin']);?>"><i class="fa fa-linkedin"></i></a></li>
              <?php endif;?>
            </ul>
          </div>
        </div>
        <?php $settings = get_setting();?>
        <div class="col-sm-4">
          <div class="left_footer">
            <h4><?=  !empty(lang('quick_link'))?lang('quick_link'):'Quick Links';?></h4>
            <ul class="row_ul">
              <li><a href="<?= base_url();?>"><?=  !empty(lang('home_menu'))?lang('home_menu'):'Home';?></li>
               <?php if($settings['is_user']==1): ?>
                <li><a href="<?= base_url('users');?>"><?=  !empty(lang('home_users'))?lang('home_users'):'users';?></a></li>
              <?php endif;?>
               <?php if($settings['is_contact']==1): ?>
                <li><a href="<?= base_url('contacts');?>"><?=  !empty(lang('home_contacts'))?lang('home_contacts'):'contacts';?></a></li>
              <?php endif;?>
              
              <li><a href="<?= base_url('terms-conditions');?>" target="blank"><?=  !empty(lang('terms'))?lang('terms'):'Terms & Condition';?></a></li>
            </ul>
          </div>
        </div>

        <?php $pages = $this->admin_m->select_active_all('pages'); ?>
        <?php if(count($pages) >0): ?>
         <div class="col-sm-4">
          <div class="left_footer">
            <h4><?=  !empty(lang('pages'))?lang('pages'):'pages';?></h4>
            <ul class="row_ul">
              <?php foreach ($pages as $key => $page): ?>
                <li><a href="<?= base_url('pages/'.$page['slug']);?>" target="blank"><?= $page['title'];?></a></li>
              <?php endforeach ?>
            </ul>
          </div>
        </div>
      <?php endif;?>


      </div>
    </div>
   
  </div>
  <div class="footer_bottom text-center">
    <p>©  <?= !empty($settings['copyright'])?$settings['copyright']:'All rights reserved.';?> </p>
  </div>
</div>

<div class="cookie-container">
  <p>
    We use cookies in this website to give you the best experience on our
    site and show you relevant ads. To find out more, read our
    <a href="<?= base_url('cookies-privacy') ?>"> privacy & cookie</a> policy.
  </p>

  <button class="cookie-btn">
    Okay
  </button>
</div>

