<script src="<?php echo base_url() ?>assets/front/js/multi-countdown.js"></script>


<section class="margin-top-xs-55" style="background: #fff;position: relative;
">
   <div class="header-text mb-0">
      <div>
         <div class="row ">
            <div class="col-lg-12 col-md-12 col-sm-12 text-center">
               <svg style="width:100%;height: 450px;" viewBox="0 0 1280 679" preserveAspectRatio="none" width="100%" height="100%">
                  <defs>
                     <g id="shape">
                        <path d="M0 0H1280V544.882C1280 544.882 1115 679 640 679C165 679 0 544.882 0 544.882V0Z" fill="#D9D9D9"></path>
                        <path d="M0 0H1280V544.882C1280 544.882 1115 679 640 679C165 679 0 544.882 0 544.882V0Z" fill="url(#gradient)"></path>
                     </g>
                     <radialGradient id="gradient" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(640 -261.197) rotate(90) scale(815.683 664.92)">
                        <stop stop-color="#4169E1"></stop>
                        <stop offset="1" stop-color="#071A34"></stop>
                     </radialGradient>
                  </defs>
                  <use href="#shape"></use>
               </svg>
               <div class="frame-image">
                  <div style="position: absolute; border-radius: inherit; inset: 0px;" data-framer-background-image-wrapper="true"><img decoding="async" sizes="100vw" src="<?php echo base_url(); ?>assets/lSHGuRrPALnsNPFyY1JslN8so.png" alt="" style="display: block; width: 100%; height: 100%; border-radius: inherit; object-position: center center; object-fit: cover;"></div>
               </div>
               <div class="text-body main-header-text">
			   <h1 class="text-center text-white"><b>Recommended Tool</b></h1>
			   <h4 class="text-center text-white">Top Curated Tech Deals & Tools on the Internet</h4>
               </div>
            </div>

            <div class="floating-icons">
               <i class="icon-facebook"></i>
               <i class="icon-adwords"></i>
               <i class="icon-seo"></i>
               <i class="icon-instagram"></i>
               <i class="icon-activecampaign"></i>
               <i class="icon-wordpress"></i>
               <i class="icon-shopify"></i>
               <i class="icon-youtube"></i>
               <i class="icon-analytics"></i>
               <i class="icon-kk"></i>
            </div>
         </div>
      </div>
   </div>
</section>
<section class="sptb">
	<?php 
$all_cat = $this->db->get('recommended_tool_category');
$data_main = array();
foreach ($all_cat->result() as $category) 
{
	$this->db->where('tool_cat_id', $category->t_cat_id);
   	$main_data = $this->db->get('recommended_tool')->result();
   	$category->all_data = $main_data;
   	array_push($data_main, $category);
}
	?>
	<div class="container">
		<?php foreach ($data_main as $cat):?>
         	<h2 class="text-center"><b class="text-center"><?php echo $cat->t_cat_name; ?></b></h2>
			<div class="row">
				<div class="col-md-12">
					<div class="card border-0 shadow-none bg-transparent">
						<div class="row">
							<?php foreach ($cat->all_data as $tool):?>
								<div class="col-lg-4 col-xl-4 col-md-4 mt-5 ">
									<div class="card mb-0 single-page customerpage contact h-100">
										<div class="card-body wrapper wrapper2 box-shadow-0">
											<div class="">
												<img loading="lazy" src="<?php echo base_url(); ?><?php echo $tool->tool_image ?>">
											</div>
											<div class="text-center pb-0 pt-0 description">
												<p class="fs-18 lead"><?php echo $tool->tool_description ?></p>
											</div>
											<?php if($tool->tool_coupon_code): ?>
												<div class="description pt-3 pb-0 text-center">
													<h5>Coupon code: <b><?php echo $tool->tool_coupon_code; ?></b></h5>
												</div>
											<?php endif;?>
											<div class="jumbotron countdown show mb-5" data-Date='<?php echo $tool->tool_timer; ?> 23:59:59'>
												<div class="container botton-section book-btn hurry">
												    <div class="row ">
												       <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
												          	<div class="text-center">
												             	<div class="description pt-3 pb-0 text-center">
																	<a target="_blank" href="<?php echo $tool->tool_btn_url; ?>" class="btn text-white" style="border-radius: 0;"><?php echo $tool->tool_btn_heading; ?></a>
																</div>
												          	</div>
												       </div>
												    </div>
												</div>
												<div class="ended">
												    <div class="container botton-section book-btn mt-5">
												       <div class="row ">
												          <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
												             <div class="text-center">
												                <button class="btn btntn">
												                   <span class="title">Offer End</span>
												                </button>
												             </div>
												          </div>
												       </div>
												    </div>
												</div>
												<div class="running pt-5">
												    <timer class="">
												       <span class="days"></span><span class="hours"></span><span class="minutes"></span><span class="seconds"></span>
												    </timer>
												</div>
											</div> 
										</div>
									</div>
								</div>
							<?php endforeach;?>
						</div>
					</div>
				</div>
			</div>
		<?php endforeach; ?>
	</div>
</section>
<style type="text/css">
.card-body
{
	padding: 0;
}
.description
{
	padding: 1.5rem;
}
.countdown.show .running timer .days, .countdown.show .running timer .hours, .countdown.show .running timer .minutes, .countdown.show .running timer .seconds
{
 	width: 50px;
 	padding: 7px;
 	text-align: center;
 	margin: 0 7px;
 	background: #102349;
 	color: #fff;
 	border-radius: 10px;
 	padding-top: 10px;
 	padding-bottom: 10px;
}
.countdown.show .running timer 
{
 	font-size: 25px;
 	font-weight: 700;
}
</style>

