<?php if($company_name != ""){?>
<section class="gap-top-subheader z-index-1">
   <div class="sub-header h-auto py-3">
      <div class="container">
         <!--nav breadcrumb Begin-->
         <nav aria-label="breadcrumb" class="position-relative">
            <ol class="breadcrumb">
               <li class="breadcrumb-item"><a href="./index">Home</a></li>
               <li class="breadcrumb-item active" aria-current="page"><a href="#"><?=$company_name?></a></li>
            </ol>
         </nav>
         <!--nav breadcrumb End-->
         <div class="row justify-content-center align-items-center">
            <div class="col-lg-3">
               <h4 class="text-white pb-2 h5 coupon-text-left"><?=$company_name?></h4>
               <!--product-box-left Begin-->
               <div class="product-box-left">
                  <?php 
                     if (filter_var($image_cou, FILTER_VALIDATE_URL)) {
                     echo("<img src=".$image_cou."  alt=".$company_name." title=".$company_name." class='image'>");
                     } else { ?>
                  <div   title="<?=$company_name?>"  >
                     <div  class="text-center bg-secondary p-4">
                        <h5 class="text-white text-truncate"><?=$company_name?></h5>
                     </div>
                  </div>
                  <?php  }
                     ?>
               </div>
               <!--product-box-left End-->
            </div>
            <div class="col-lg-9">
               <!--product-box-right Begin-->
               <div class="product-box-right">
                  <div class="float-start">
                     <span class="d-flex align-items-center">
                     <h1 class="text-white h4 pb-2 coupon-text"><?=$company_name;?></h1>
                     <i class="fas fa-heart heart-icon"></i>
                     </span>
                     <ul class="list-unstyled coupons-and-offers">
                        <li class="ps-0"><?=$rows_foundcou?> Coupons & Offers</li>
                        <li class="border-left"><i class="fas fa-check-circle"></i> <?=$rows_foundcou?> Verified</li>
                        <li class="border-left"><?php echo(rand(10,100));?> Uses Today</li>
                     </ul>
                     <div class="coupons-offers">
                        <ul class="nav nav-pills" role="tablist">
                           <li class="nav-item">
                              <a class="nav-link active" data-bs-toggle="pill" href="#allcf">All (<?=$rows_foundcou?>)</a>
                           </li>
                           <li class="nav-item">
                              <a class="nav-link" data-bs-toggle="pill" href="#coupons">Coupons (<?=$rows_found_coupon_company?>)</a>
                           </li>
                           <li class="nav-item">
                              <a class="nav-link" data-bs-toggle="pill" href="#offers">Offers (<?=$rows_foundcou_offers?>)</a>
                           </li>
                        </ul>
                     </div>
                  </div>
               </div>
               <!--product-box-right End-->
            </div>
         </div>
      </div>
   </div>
</section>
<?php }?>


<?php if($country_name ){?>
   <section class="gap-top-subheader z-index-1">
   <div class="sub-header h-auto py-3">
      <div class="container">
         <!--nav breadcrumb Begin-->
         <nav aria-label="breadcrumb" class="position-relative">
            <ol class="breadcrumb">
               <li class="breadcrumb-item"><a href="./index">Home</a></li>
               <li class="breadcrumb-item active" aria-current="page"><a href="#"><?=$country_name?></a></li>
            </ol>
         </nav>
         <!--nav breadcrumb End-->
         <div class="row justify-content-center align-items-center">
            <div class="col-lg-3">
               <h4 class="text-white pb-2 h5 coupon-text-left"><?=$country_name?></h4>
               <!--product-box-left Begin-->
               <div class="product-box-left">
                  <?php 
                     if (filter_var($image_cou, FILTER_VALIDATE_URL)) {
                     echo("<img src=".$image_cou."  alt=".$country_name." title=".$country_name." class='image'>");
                     } else { ?>
                  <div   title="<?=$company_name?>"  >
                     <div  class="text-center bg-secondary p-4">
                        <h5 class="text-white text-truncate"><?=$country_name?></h5>
                     </div>
                  </div>
                  <?php  }
                     ?>
               </div>
               <!--product-box-left End-->
            </div>
            <div class="col-lg-9">
               <!--product-box-right Begin-->
               <div class="product-box-right">
                  <div class="float-start">
                     <span class="d-flex align-items-center">
                     <span class="text-white h4 pb-2 coupon-text"><?=$country_name;?></span>
                     <i class="fas fa-heart heart-icon"></i>
                     </span>
                     <ul class="list-unstyled coupons-and-offers">
                        <li class="ps-0"><?=$rows_found_coupon_country?> Coupons & Offers</li>
                        <li class="border-left"><i class="fas fa-check-circle"></i> <?=$rows_found_coupon_country?> Verified</li>
                        <li class="border-left">46 Uses Today</li>
                     </ul>
                     <div class="coupons-offers">
                        <ul class="nav nav-pills" role="tablist">
                           <li class="nav-item">
                              <a class="nav-link active" data-bs-toggle="pill" href="#allcf">All (<?=$rows_found_coupon_country?>)</a>
                           </li>
                           <li class="nav-item">
                              <a class="nav-link" data-bs-toggle="pill" href="#coupons">Coupons (<?=$rows_found_coupon_company?>)</a>
                           </li>
                           <li class="nav-item">
                              <a class="nav-link" data-bs-toggle="pill" href="#offers">Offers (<?=$rows_foundcou_offers?>)</a>
                           </li>
                        </ul>
                     </div>
                  </div>
               </div>
               <!--product-box-right End-->
            </div>
         </div>
      </div>
   </div>
</section>
<?php }?>