<?php
$this->load->view('top_header');
$messurement = $this->config->item('unit_measurement');
$businessNature = $this->config->item('businessNatureAll');
$employeeCount = $this->config->item('employeeCount');
$firmStatus = $this->config->item('firmStatus');
$turnover = $this->config->item('turnover');
?>
<!-- Banner--->
<?php
if (is_array($banner) && !empty($banner)) {
  ?>
  <section class="webpulse-home-slider slider">
    <div class="slick-slider-init">
      <?php
      foreach ($banner as $bval) {
        ?>
        <div>
          <img itemprop="image" src="<?php echo get_image('clients/banners', $bval['banner_image'], '1350', '425', 'R'); ?>" alt="<?php echo $bval['banner_text']; ?>" title="<?php echo $bval['banner_text']; ?>" />
          <?php
          if ($bval['banner_text']) {
            ?>
            <div class="slider_caption">
              <h2 itemprop="name" data-animation-in="bounceInLeft"><?php echo $bval['banner_text']; ?></h2>
            </div>
            <?php
          }
          ?>
        </div>
        <?php
      }
      ?>
    </div>
  </section>
  <?php
}else{
?>
  <?php if (is_array($res) && !empty($res)) { ?>
  <section class="webpulse_home_slider_2">
      <div class="home_silder_item">
      <?php
        foreach ($res as $pageVal) {
         ?>
          <div class="slide_item">
              <div class="item">
                  <a href="<?php echo comp_url() . $pageVal['friendly_url']; ?>" title="<?php echo $pageVal['product_name']; ?>">
                      <div class="home_slide">
                          <div class="image">
                          <img src="<?php echo get_image('product_images', $pageVal['media'], '210', '210', 'R'); ?>" alt="<?php echo $pageVal['product_name']; ?>">
                          </div>
                      </div>
                      <h3><span><a href="<?php echo comp_url() . $pageVal['friendly_url']; ?>" title="<?php echo $pageVal['product_name']; ?>"><?php echo $pageVal['product_name']; ?></a></span></h3>
                  </a>
              </div>
          </div>
          <?php
        }
        ?>
      </div>
  </section>
  <?php } 
  } ?>

<!-- Features--->
<section class="w-p-s-home-feture">
  <div class="container">
    <div class="row">
      <div class="col-md-4 col-sm-4">
        <div class="feture_box">
          <div class="globe"><img src="<?php echo theme_url(); ?>designer/images/icon/verified.png" alt="Verified Manufacturer"></div>
          <small>Verified NTI Member 
            <!--
                      <br>
                      <span>By Natural Therapy India</span>
            -->
          </small>
        </div>
      </div>
      <div class="col-md-4 col-sm-4">
        <div class="feture_box btn_box">
          <a href="javascript:void()" data-toggle="modal" data-target="#myModal" title="Get Instant Quote">         
            <div class="globe img14"><img src="<?php echo theme_url(); ?>designer/images/icon/quote.png" alt="Get Instant Quote"></div>
            <small class="quote14">Get Instant Quote</small>
          </a>
        </div>
      </div>
      <div class="col-md-4 col-sm-6">
        <div class="feture_box">
          <div class="globe">
            <img src="<?php echo theme_url(); ?>designer/images/icon/inr.png" alt="We Send You The Price Immediately"></div>
          <small>We Send You The Price <br>Immediately</small>
        </div>
      </div>
      <!--<div class="col-md-3 col-sm-6">
       <div class="feture_box">
         <div class="globe"><img src="<?php echo theme_url(); ?>designer/images/home/india_flag.png" alt="Nationwide Shipping"></div>
         <small style="margin:0">Nationwide Shipping</small>
       </div>
     </div>-->
    </div>
  </div>
</section>

<?php
if (is_array($catRes) && !empty($catRes)) {
  ?>
  <!-- Home Collection -->
  <section class="web-pluse-solution-home_collection">
    <div class="container">
      <div class="row">
        <?php
        $sl = 1;
        $w = '570';
        $h = '360';
        $cls = 'col-lg-6 col-md-6';
        foreach ($catRes as $catVal) {
          //trace($catVal);
          if ($sl > 2) {
            $w = '370';
            $h = '220';
            $cls = 'col-lg-4 col-md-4';
          }
          ?>
          <div class="<?php echo $cls; ?> col-sm-6 wow fadeInLeft animated" data-wow-delay=".2s">
            <div class="wps-collection">
              <figure class="effect-oscar big_collection">
                <a itemprop="url" href="<?php echo site_url() . $catVal['friendly_url']; ?>" title="<?php echo $catVal['category_name']; ?>">
                  <img src="<?php echo get_image('category', $catVal['category_image'], $w, $h, 'R'); ?>" alt="<?php echo $catVal['category_name']; ?>">
                  <div class="collection_caption">
                    <h2 itemprop="name"><?php echo $catVal['category_name']; ?></h2>
                    <!--<p><span itemprop="offers">New Collection</span></p>-->
                  </div></a>
              </figure>
            </div>
          </div>
          <?php
          $sl++;
        }
        ?>
      </div>
    </div>
  </section>
  <?php
}
?>

<!-- Home About--->
<section class="home_about-web-pulse">
  <div class="features-image wow fadeInDown animated" data-wow-delay=".1s" <?php if (@$compSetting['website_video'] == '') {
    echo 'style="width: 95%"';} ?>>
      <div class="webpulse_welcome_col">
        <h3>Welcome to <span><?php echo $compContact['company_name']; ?></span></h3>
        <div class="home_about_text">
          <p><?php echo $factsheet['about_company']; ?></p>
        </div>
        <div class="row">
          <?php if(!empty($factsheet['business_nature'])){ ?>
          <div class="col-xs-12 col-sm-6 col-lg-4">
            <div class="wps-factsheet">
              <div class="icon">
                <img alt="Nature of Business" src="<?php echo theme_url(); ?>designer/images/home/factsheet/nature-of-business.png">
              </div>
              <div class="info01">
                <h4>Nature of Business</h4>
                <p><?php echo $businessNature[$factsheet['business_nature']]; ?></p>
              </div>
            </div>
          </div>
          <?php } ?> 
          <?php if(!empty($factsheet['establishment_year'])){ ?>
          <div class="col-xs-12 col-sm-6 col-lg-4">
            <div class="wps-factsheet">
              <div class="icon">
                <img alt="Year of Establishment" src="<?php echo theme_url(); ?>designer/images/home/factsheet/year-of-establishment.png">
              </div>
              <div class="info01">
                <h4>Year of Establishment</h4>
                <p><?php echo $factsheet['establishment_year']; ?></p>
              </div>
            </div>
          </div>
          <?php } ?> 
          <?php if(!empty($factsheet['employee_count'])){ ?>
          <div class="col-xs-12 col-sm-6 col-lg-4">
            <div class="wps-factsheet">
              <div class="icon">
                <img alt="Total Number of Employees" src="<?php echo theme_url(); ?>designer/images/home/factsheet/employees.png">
              </div>
              <div class="info01">
                <h4>Total Number of Employees</h4>
                <p><?php echo $employeeCount[$factsheet['employee_count']]; ?> People</p>
              </div>
            </div>
          </div>
          <?php } ?> 
          <?php if(!empty($factsheet['legal_firm_status'])){ ?>
          <div class="col-xs-12 col-sm-6 col-lg-4">
            <div class="wps-factsheet">
              <div class="icon">
                <img alt="Legal Status of Firm" src="<?php echo theme_url(); ?>designer/images/home/factsheet/Legal-Status-of-Firm.png">
              </div>
              <div class="info01">
                <h4>Legal Status of Firm</h4>
                <p><?php echo $firmStatus[$factsheet['legal_firm_status']]; ?></p>
              </div>
            </div>
          </div>
          <?php } ?> 
          <?php if(!empty($factsheet['turnover'])){ ?>
          <div class="col-xs-12 col-sm-6 col-lg-4">
            <div class="wps-factsheet">
              <div class="icon">
                <img alt="Annual Turnover" src="<?php echo theme_url(); ?>designer/images/home/factsheet/annual-turnover.png">
              </div>
              <div class="info01">
                <h4>Annual Turnover</h4>
                <p><?php echo $turnover[$factsheet['turnover']]; ?></p>
              </div>
            </div>
          </div>
          <?php } ?> 

          <?php if(!empty($factsheet['gst_no'])){ ?>
          <div class="col-xs-12 col-sm-6 col-lg-4">
            <div class="wps-factsheet">
              <div class="icon">
                <img alt="GST Number" src="<?php echo theme_url(); ?>designer/images/home/factsheet/gst.png">
              </div>
              <div class="info01">
                <h4>GST Number</h4>
                <p><?php echo $factsheet['gst_no']; ?></p>
              </div>
            </div>
          </div>
          <?php } ?> 
        </div>
        <a class="read_more wow fadeInLeft animated" data-wow-delay=".3s" href="<?php echo comp_url(); ?>about-us" title="Read More">Read More</a>

      </div>
  </div>
  <?php if (@$compSetting['website_video'] != '') { ?>
      <div class="web-pulse-features-area">
        <div class="features">
          <div class="webpulse_welcome_list">
            <h3 class="wow fadeInRight animated" data-wow-delay=".4s">Our Corporate Video</h3>
            <div class="row">
              <div class="col-xs-12 list_left wow fadeInRight animated" data-wow-delay=".3s">
                <iframe class="factoryVideoFrame" width="350" height="400" src="https://www.youtube.com/embed/<?php echo $compSetting['website_video']; ?>" frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
              </div>
            </div>
          </div>
        </div>
      </div>
  <?php } ?>
</section>

<?php
if (is_array($res) && !empty($res)) {
  ?>
  <!-- Home Featured--->
  <section class="webpulse_home_featured">
    <div class="container">
      <div class="row">
        <div class="col-lg-12">
          <div class="products_heading wow fadeInDown animated" data-wow-delay=".1s">
            <h1>Featured Products</h1>
            <div class="separator separatorss"><span><i></i></span></div>
          </div>
        </div>
        <div class="clearfix"></div>
        <div class="col-lg-12">
          <div class="wps_featured">
            <?php
            $wow = 0.1;
            foreach ($res as $pageVal) {
              $wow = $wow + 0.1;
              ?>
              <div class="feature_item wow fadeInDown animated" data-wow-delay="<?php echo $wow; ?>s">
                <div class="item">
                  <a href="<?php echo comp_url() . $pageVal['friendly_url']; ?>" title="<?php echo $pageVal['product_name']; ?>">
                    <div class="feature_image">
                      <div class="image">
                        <img src="<?php echo get_image('product_images', $pageVal['media'], '210', '210', 'R'); ?>" alt="Lawn Dining Set">
                      </div>
                    </div>
                  </a>
                  <div class="feature_sec">
                    <h3><a href="<?php echo comp_url() . $pageVal['friendly_url']; ?>" title="<?php echo $pageVal['product_name']; ?>"><?php echo $pageVal['product_name']; ?></a></h3>
                    <p><a href="<?php echo comp_url() . $pageVal['friendly_url']; ?>" title="Read More About <?php echo $pageVal['product_name']; ?>">Read More</a></p>
                  </div>
                </div>
              </div>
              <?php
            }
            ?>
          </div>
        </div>
      </div>
    </div>
  </section>
  <?php
}
?>


<?php
if (isset($compSetting['whyus_title1'])) {
  ?>
  <!-- Webpulse Why Choose Us --->
  <section class="web-pulse-choose">
    <div class="container">
      <div class="row">
        <div class="col-lg-5 col-md-5 hidden-sm hidden-xs wow fadeInLeft animated" data-wow-delay=".3s">
          <img class="ming" src="<?php echo theme_url(); ?>designer/images/home/left-image.png" alt="Why Choose Us">
        </div>
        <div class="col-lg-7 col-md-7">
          <div class="red-sec-heading wow fadeInLeft animated" data-wow-delay=".3s">
            <h5>Why Choose Us</h5>
          </div>
          <!--<p class="why_choose_p">We have been offering unparalled expertise to all our clients and their utmost satisfaction is our ultimate goal.</p>-->
          <div class="clearfix"></div>
          <div class="row">
            <div class="col-lg-6 col-md-6 col-sm-6 wow fadeInRight animated" data-wow-delay=".4s">
              <div class="icon_box"> 
                <a class="media-left pull-left"><img src="<?php echo theme_url(); ?>designer/images/home/choose/phone.png" alt="24/7 Availability"></a>
                <div class="media-body">
                  <h4 class="media-heading heading"><?php echo $compSetting['whyus_title1']; ?></h4>
                  <p><?php echo $compSetting['whyus_desc1']; ?></p>
                </div>
              </div>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-6 wow fadeInRight animated" data-wow-delay=".4s">
              <div class="icon_box"> 
                <a class="media-left pull-left"><img src="<?php echo theme_url(); ?>designer/images/home/choose/icon2.png" alt="Certified Mechanics"></a>
                <div class="media-body">
                  <h4 class="media-heading heading"><?php echo $compSetting['whyus_title2']; ?></h4>
                  <p><?php echo $compSetting['whyus_desc2']; ?></p>
                </div>
              </div>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-6 wow fadeInRight animated" data-wow-delay=".4s">
              <div class="icon_box"> 
                <a class="media-left pull-left"><img src="<?php echo theme_url(); ?>designer/images/home/choose/icon.png" alt="No Hidden Cost"></a>
                <div class="media-body">
                  <h4 class="media-heading heading"><?php echo $compSetting['whyus_title3']; ?></h4>
                  <p><?php echo $compSetting['whyus_desc3']; ?></p>
                </div>
              </div>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-6 wow fadeInRight animated" data-wow-delay=".4s">
              <div class="icon_box"> 
                <a class="media-left pull-left"><img src="<?php echo theme_url(); ?>designer/images/home/choose/hand.png" alt="Affordable Prices"></a>
                <div class="media-body">
                  <h4 class="media-heading heading"><?php echo $compSetting['whyus_title4']; ?></h4>
                  <p><?php echo $compSetting['whyus_desc4']; ?></p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
  <?php
}
if (is_array($blogs) && !empty($blogs)) {
  ?>
  <!-- Home Blog -->
  <section class="webpulse-home_blog">
    <div class="container">
      <div class="products_heading wow fadeInDown animated" data-wow-delay=".1s">
        <h1>Latest Blogs</h1>
        <div class="separator separatorss"><span><i></i></span></div>
      </div>
      <div class="clearfix"></div>
      <div class="h_blog">
        <?php
        $wow = 0.1;
        foreach ($blogs as $pageVal) {
          //trace($pageVal);
          $wow = $wow + 0.1;
          ?>
          <div class="item wow fadeInDown animated" data-wow-delay="<?php echo $wow; ?>s">
            <div class="blog_b">
              <a href="<?php echo site_url() . $pageVal['friendly_url']; ?>" title="<?php echo $pageVal['article_title']; ?>">
                <div class="image">
                  <img src="<?php echo get_image('clients/blog', $pageVal['article_image'], '375', '230', 'R'); ?>" alt="<?php echo $pageVal['article_title']; ?>">
                </div>
              </a>
              <div class="blog_describe">
                <h3><a href="<?php echo site_url() . $pageVal['friendly_url']; ?>" title="<?php echo $pageVal['article_title']; ?>"><?php echo $pageVal['article_title']; ?></a></h3>
                <abbr class="dn date updated"><?php echo getDateFormat($pageVal['post_date'], 3); ?></abbr>
                <p><?php echo char_limiter($pageVal['article_desc'], 150); ?></p>
                <a class="home_blog_btn" href="<?php echo site_url() . $pageVal['friendly_url']; ?>" title="Read More">Read More</a>
              </div>
            </div>
          </div>
          <?php
        }
        ?>
      </div>
    </div>
  </section>
  <?php
}
?>
<!-- Home Clients -->
<?php echo comp_clients(); ?>
<!-- Footer -->
<?php $this->load->view('bottom_footer'); ?>