<?php defined('BASEPATH') OR exit('No direct script access allowed');
$this->load->view('top'); ?>
<div class="bannerwrap">
    <div id="HMslider" class="banner hidden_mb">
        <?php $sn = 0; foreach ($banner as $key => $value) { ?>
        <div class="bannercontent">
            <a href="<?php echo base_url($value['banner_url']);?>">
                <img src="<?php echo get_image('banner', $value['banner_image'], '', '', 'R'); ?>" alt="<?php echo imagealtTitle('', $value['banner_title'], ''); ?>" title="<?php echo imagealtTitle('', $value['banner_title'], ''); ?>">
                <div class="bninnercontent"></div>
            </a>
        </div>
        <?php $sn++; } ?>
</div>
    
    <div id="MBslider" class="banner hidden_dt">
          <div class="bannercontent">
              <a href="<?php echo site_url();?>jeep">
               <img src="<?php echo theme_url();?>images/banner/banner3.jpg" alt="Buy Toy Vehicles Online Manufacturers and Suppliers in India" title="Buy Toy Vehicles Online Manufacturers and Suppliers in India">
            </a>
        </div>
    <div class="bannercontent">
              <a href="<?php echo site_url();?>car">
               <img src="<?php echo theme_url();?>images/banner/banner1.jpg" alt="Compact, Powerful and well designed toys only at Toyzoo Manufacturers and Suppliers in India" title="Compact, Powerful and well designed toys only at Toyzoo Manufacturers and Suppliers in India">
               </a>
        </div> 
    <div class="bannercontent">
              <a href="<?php echo site_url();?>bike">
               <img src="<?php echo theme_url();?>images/banner/banner2.jpg" alt=" Delivering smiles to your kids with the wonderful toys Manufacturers and Suppliers in India" title=" Delivering smiles to your kids with the wonderful toys Manufacturers and Suppliers in India">
        </a>
        </div>
        
    </div>
</div>


  <?php if(is_array($home_cat) && !empty($home_cat)){ ?>
<section class="productbg">
    <div class="container-fluid">
      <div class="row">
      <?php foreach ($home_cat as $key => $val) { ?>
        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-12 HMProboder wow slideInLeft" data-wow-delay=".1s">
          <div class="hmproduct">
            <div class="hmproductItem">
             <a href="<?= site_url($val['friendly_url']); ?>" title="<?php echo imagealtTitle('', $val['category_name'], ''); ?>">
              <div class="text">
                <h2 class="title"><?php echo $val['category_name'];?></h2>
                <h5 class="desc">
                Inspiration & guides for the Toyzoo within
                </h5>
                <span class="text-link">Know More <img class="icon-img" src="<?php echo theme_url();?>images/peach-right-arrow.png" alt="<?php echo imagealtTitle('', $val['category_name'], ''); ?>" title="<?php echo imagealtTitle('', $val['category_name'], ''); ?>"></span>
              </div>
              <div class="hmimg">                
                  <img src="<?php echo get_image_with_name($val['category_name'], 'category', $val['category_image'], '340', '340', 'R'); ?>" title="<?php echo imagealtTitle('', $val['category_name'], ''); ?>" alt="<?php echo imagealtTitle('', $val['category_name'], ''); ?>">
              </div>
                </a>
            </div>
          </div>
        </div>
       <?php } ?>
      </div>
    </div>
</section>
<?php } ?>
 
 
 	<div id="video-wrapper">
		<video id="video" controls data-play="hover" muted="muted">
			<source src="<?php echo theme_url();?>images/home-video.mp4" type="video/mp4">
			<!--<source src="https://media.geeksforgeeks.org/wp-content/uploads/20200107020629/sample_video.mp4" type="video/mp4">-->
			Your browser does not
			support the video tag.
		</video>
	</div>
 <!--<div class="video-wrap" id="video-wrap" ></div>-->
 
<section class="feature_section">
    <div class="container">
      <div class="row">
        <div class="shopingdelivery wow slideInRight" data-wow-delay=".1s">
          <div class="shopingItem">
            <div class="shopingIMG">
              <img src="<?php echo theme_url();?>images/SafeShopping.png" title="Safe Shopping" alt="Safe Shopping">
            </div>
            <div class="text-area ">
              <h5 class="title">Safe Shopping</h5>
              <div class="desc">
                <p>Safe, private &amp; secure transaction</p>
              </div>
            </div>
          </div>
          <div class="shopingItem">
            <div class="shopingIMG">
              <img src="<?php echo theme_url();?>images/FreeShipping.png" alt="Fast Shipping" title="Fast Shipping">
            </div>
            <div class="text-area ">
              <h5 class="title">Fast Shipping</h5>
              <div class="desc">
                <p>Delivering anywhere in the country</p>
              </div>
            </div>
          </div>
          <div class="shopingItem">
            <div class="shopingIMG">
              <img src="<?php echo theme_url();?>images/InclusivePricing.png" alt="Inclusive Pricing" title="Inclusive Pricing">
            </div>
            <div class="text-area ">
              <h5 class="title">Inclusive Pricing</h5>
              <div class="desc">
                <p>Best deals including GST</p>
              </div>
            </div>
          </div>
          <div class="shopingItem">
            <div class="shopingIMG">
              <img src="<?php echo theme_url();?>images/TrustedProducts.png" alt="Trusted Products" title="Trusted Products">
            </div>
            <div class="text-area ">
              <h5 class="title">Trusted Products</h5>
              <div class="desc">
                <p>Beware of counterfeits & shop from official website</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>

<!-- Home Featured -->
<?php if(is_array($top_category) && !empty($top_category)){ ?>
<section class="webpulse_home_product" style="display:none">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="products_heading wow fadeInDown" data-wow-delay=".1s">
                    <h2>Top Selling Products</h2>
                    <div class="separator separatorss"><span><i></i></span></div>
                </div>
            </div>
            <div class="clearfix"></div>
            <div class="col-lg-12">
                <div class="wps_products">
                    <?php foreach($top_category as $value){ ?>
                    <div class="feature_item wow fadeInDown" data-wow-delay=".2s">
                        <div class="item">
                            <a href="<?= site_url($value['friendly_url']); ?>" title="<?php echo imagealtTitle('', $value['category_name'], ''); ?>">
                                <div class="feature_image">
                                    <div class="image">
                                        <img src="<?php echo get_image_with_name($value['category_name'], 'category', $value['category_image'], '218', '218', 'R'); ?>" title="<?php echo imagealtTitle('', $value['category_name'], ''); ?>" alt="<?php echo imagealtTitle('', $value['category_name'], ''); ?>">
                                    </div>
                                </div>
                            </a>
                            <div class="feature_sec">
                                <h3><a href="<?= site_url($value['friendly_url']); ?>" title="<?php echo imagealtTitle('', $value['category_name'], ''); ?>"><?php echo $value['category_name'];?></a></h3>

                            </div>
                        </div>
                    </div>
                    <?php } ?>

                </div>
            </div>
        </div>
    </div>
</section>
<?php } ?>

<?php if(is_array($new_products) && !empty($new_products)){ ?>
  <section  class="top_selling_products">
    <div class="NoiseDiaries">
      <div class="container">
        <div class="row">
          <div class="text">
            <h3 class="title">Top Selling Products</h3>           
          </div>
          <div id="NoiseDiariesslider">
             <?php foreach ($new_products as $val) { ?> 
          <div class="col-sm-6 col-lg-6 col-xs-12 wow slideInLeft" data-wow-delay=".1s">
            <a href="<?php echo base_url($val['friendly_url']); ?>" title="<?php echo $val['product_name']; ?>">
              <div class="block-content">
                <div class="block-contentimg box-image">
                  <img src="<?php echo get_image('products', $val['media'], '270', '250', 'R'); ?>" alt="<?php echo $val['product_name']; ?>" title="<?php echo $val['product_name']; ?>">
                  <?php
              if ($val['product_discounted_price'] > 0) {
                $percent = (($val['product_price'] - $val['product_discounted_price']) * 100) / $val['product_price'];
                ?>
                  <span class="offerbtn"><?= round($percent); ?>% <br/> Off </span>
              <?php } ?>
                </div>
                <div class="block-contentdetails">
                <h2 class="title"><?php echo char_limiter($val['product_name'], 40); ?>   <span></span></h2>
                <?php if ($val['product_discounted_price'] > 0) { ?>
               <span class="price"><span> <?= display_price($val['product_price']); ?></span>  <?= display_price($val['product_discounted_price']); ?></span>
                <?php }  else { ?>
                <span class="price"><span> <?= display_price($val['product_price']); ?></span></span>
                <?php } ?>
                <div class="btn-100"><span class="hmViewMore-btn default-btn">Buy Now</span></div>
                </div>
              </div>
            </a>
          </div>
             <?php } ?>
          </div>
          <div class="col-sm-12 col-lg-12 col-xs-12 wow slideInRight" data-wow-delay=".1s">
            <div class="text-center Noiviewmore">
              <a href="<?php echo base_url('products');?>" class="default-btn">View All</a>
            </div>
          </div>

        </div>
      </div>
    </div>
  </section>
 <?php } ?>

 <?php if(is_array($trending_products) && !empty($trending_products)){ ?>
<section class="newproduct">
            <div class="container">
                <h2 class="h2_title wow zoomIn" data-wow-delay=".1s">New Products</h2>
        
                <div class="row">
                    <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-xs-12 col-12">
                        <div class="home_service">
         <?php foreach ($trending_products as $val) { ?> 
                            <div class="services_block  wow fadeInDown" data-wow-delay=".2s">
                                <div class="services_margin service-item">
                                <figure><a href="<?php echo base_url($val['friendly_url']); ?>" title="<?php echo $val['product_name']; ?>">
                                 
                                    <div class="image"><img src="<?php echo get_image('products', $val['media'], '294', '259', 'R'); ?>" title="<?php echo $val['product_name']; ?>" alt="<?php echo $val['product_name']; ?>"></div></a>
                                </figure>
                                <div class="clearfix"></div>
                                <div class="description03">
                                     <h3 class="title"><a href="<?php echo base_url($val['friendly_url']); ?>" title="<?php echo $val['product_name']; ?>"><?php echo char_limiter($val['product_name'], 24); ?></a></h3>
                                                
                                    
                                     <?php if ($val['product_discounted_price'] > 0) { ?>
                                    <div class="price"><span class="ac-price"><?= display_price($val['product_price']); ?></span><?= display_price($val['product_discounted_price']); ?></div>
              
                <?php }  else { ?>
                <span class="price"><span> <?= display_price($val['product_price']); ?></span></span>
                <?php } ?>
                                    <?php
              if ($val['product_discounted_price'] > 0) {
                $percent = (($val['product_price'] - $val['product_discounted_price']) * 100) / $val['product_price'];
                ?>
                                    <div class="off_label2"><?= round($percent); ?>% off</div>
               
              <?php } ?>
                          <div class="clearfix"></div>
                                    <a href="<?php echo base_url($val['friendly_url']); ?>" title="<?php echo $val['product_name']; ?>"><span class="hmViewMore-btn default-btn">Buy Now</span></a>
                           </div>
                            </div>
                        </div>
        <?php } ?>
                      
        
                        </div>
                    </div>
                </div>

         

            </div>
        </section>
<?php } ?>

<section class="bg2">
<?php if(is_array($top_rated_product) && !empty($top_rated_product)){ ?>
<div class="toprated">
    <div class="container">
        <div class="toprated_heading">
            <h2>Top Rated Products</h2>
        </div>
        <div class="wps_products">
            <?php foreach($top_rated_product as $val){ ?>
            <div class="services-block wow fadeInDown" data-wow-delay=".1s">
                <div class="single-service-inner">
                    <div class="clearfix"></div>
                    <a href="<?php echo base_url($val['friendly_url']); ?>" title="<?php echo $val['product_name']; ?>">
                        <div class="service-thumb">
                            <div class="image01">
                                <img src="<?php echo get_image_with_name($val['product_name'], 'products', $val['media'], '269', '236', 'R'); ?>" alt="<?php echo $val['product_name']; ?>" title="<?php echo $val['product_name']; ?>">
                            </div>
                            <div class="service-thumb-shape"></div>
                            <div class="service-thumb-shape-left"></div>
                        </div>
                    </a>
                    <div class="clearfix"></div>
                    <div class="service-title-inner">
                        <div class="service-title">
                            <h3><a href="<?php echo base_url($val['friendly_url']); ?>"><?php echo char_limiter($val['product_name'], 24); ?></a></h3>

                            <?php if ($val['product_discounted_price'] > 0) { ?>
                            <div class="price"><span class="ac-price"><?= display_price($val['product_price']); ?></span><?= display_price($val['product_discounted_price']); ?></div>

                            <?php }  else { ?>
                            <span class="price"><span> <?= display_price($val['product_price']); ?></span></span>
                            <?php } ?>
                            <?php
              if ($val['product_discounted_price'] > 0) {
                $percent = (($val['product_price'] - $val['product_discounted_price']) * 100) / $val['product_price'];
                ?>
                            <div class="off_label2"><?= round($percent); ?>% off</div>
                            <?php } ?>
                            
                            <div class="clearfix"></div>
                                    <a href="<?php echo base_url($val['friendly_url']); ?>" title="<?php echo $val['product_name']; ?>"><span class="hmViewMore-btn default-btn">Buy Now</span></a>
                                    
                        </div>
                    </div>
                </div>
            </div>
            <?php } ?>
        </div>
    </div>
</div>
<?php } ?>

 <div class="about-area ptb-100">
    <div class="container">
      <div class="row align-items-center">
        <div class="col-xl-12 col-md-12 col-xxl-12 col-lg-12 col-sm-12 wow slideInRight" data-wow-delay=".1s">
          <div class="about-content ml-15">
            <h1><?php echo $homeHeading;?></h1>
          <?php echo $home; ?>
            <a href="<?php echo site_url();?>about-us" class="default-btn" title="Read More">Read More</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</section> 
<?php $this->load->view('bottom'); ?>
