<?php
$this->load->view('top_application');
?>
<div id="preloader">
  <div id="status">&nbsp;</div>
</div>
<!--
<section class="tabs01">
  <div class="container">
    <?php
    if (is_array($catList) && !empty($catList)) {
      ?>
      <ul>
        <?php
        foreach ($catList as $cat) {
          ?>
          <li>
            <h3>
              <a href="<?php echo site_url() . $cat['friendly_url']; ?>" title="<?php echo $cat['category_name']; ?>">
                <img src="<?php echo get_image('category', $cat['category_icon'], '52', '52', 'R'); ?>" title="<?php echo $cat['category_name']; ?>" alt="<?php echo $cat['category_name']; ?>"> <span><?php echo $cat['category_name']; ?></span>
              </a>
            </h3>
            <?php
            if (is_array($cat['subcat']) && !empty($cat['subcat'])) {
              ?>
              <div class="sub_menu01">
                <div class="container">
                  <div class="row">
                    <?php
                    foreach ($cat['subcat'] as $subcat) {
                      ?>
                      <div class="col-lg-2 col-md-2">
                        <div class="full_menu01">
                          <a href="<?php echo site_url() . $subcat['friendly_url']; ?>" title="<?php echo $subcat['category_name']; ?>">
                            <div class="menu_image01">
                              <img src="<?php echo get_image('category', $subcat['category_image'], '400', '333', 'R'); ?>" alt="<?php echo $subcat['category_name']; ?>" title="<?php echo $subcat['category_name']; ?>">
                            </div>
                            <h4><span><?php echo $subcat['category_name']; ?></span></h4>
                          </a>
                        </div>
                      </div>
                      <?php
                    }
                    ?>
                  </div>
                </div>
              </div>
              <?php
            }
            ?>
          </li>
          <?php
        }
        ?>
       
        <li>
          <a href="javascript:void()"><img src="<?php echo theme_url(); ?>images/tabicon/viewall.png" alt="View All" title="View All"> <span>View All Categories</span></a>
          <div class="sub_menu01">
            <div class="container">
              <div class="full_menu02 full_menu03">
                <ul class="row">
                  <?php
                  foreach ($catListFull as $mcat) {
                    ?>
                    <li class="col-lg-2 col-md-2"><a href="<?php echo site_url() . $mcat['friendly_url']; ?>" title="<?php echo $mcat['category_name']; ?>"><?php echo $mcat['category_name']; ?></a></li>
                    <?php
                  }
                  ?>
                </ul>
              </div>
              <div class="text-center">
                <a class="view_all_btn01" href="<?php echo site_url(); ?>directory" title="View Our Directory">View All</a>
              </div>
            </div>
          </div>
        </li>
      </ul>
      <?php
    }
    ?>
  </div>
</section>
-->

<section class="call_section01">
  <div class="container">

    <div class="com-title">
      <h2>Easily Get <span>What You Want</span></h2>
      <div class="line"><em></em></div>
      <p>India’s 1st Specialised Marketplace For Natural Therapies, Health & Fitness Products</p>
    </div>
    <div class="row">
      <div class="col-lg-4 col-md-4">
        <div class="choice_box01">
         <div class="centred_box">
          <i class="fa fa-database"></i>
          <h4>Choose a Category</h4>
          <p>Natural Therapy India is the leading online portal and India’s #1 Natural Health Portal started with an objective to help global users with far-reaching listing of companies from all over the world offering natural therapies, health and fitness products.   </p>
        </div>
      </div>
</div>
      <div class="col-lg-4 col-md-4">
       <div class="centred_box">
        <div class="choice_box01">
          <i class="fa fa-map-o"></i>
          <h4>Find What You Want</h4>
          <p>At this online platform, you will easily get access to what you are looking for. This portal offers a wide range of natural health products and with the help of our directory services you can locate numerous health and fitness practitioners from all over India.   </p>
        </div>
      </div>
</div>

      <div class="col-lg-4 col-md-4">
        <div class="choice_box01">
         <div class="centred_box">
          <i class="fa fa-home"></i>
          <h4>Go Out & Explore</h4>
          <p>Natural Therapy India offers a free business listing for the 100% genuine and authentic companies and service providers in India. You can browse through our online platform and get their address, contact details from our listed directory. </p>
        </div>
      </div>
</div>


    </div>
  </div>

</section>


<!--FIND YOUR SERVICE-->
<?php
if (is_array($catListHome) && !empty($catListHome)) {
  ?>
  <section class="com-padd com-padd-redu-bot1 pad-bot-red-40">
    <div class="container">
      <div class="row">
        <div class="com-title">
          <h2>Find Verified <span>Manufacturers, Suppliers & Service Providers</span></h2>
          <div class="line"><em></em></div>
          <p>India's #1 Natural Health Portal @Natural Therapy India</p>
        </div>
        <div class="dir-hli">
          <ul>
            <?php
            foreach ($catListHome as $hcat) { //400*280
              ?>
              <!--=====LISTINGS======-->
              <li class="col-md-3 col-sm-6">
                <a href="<?php echo site_url($hcat['friendly_url']); ?>" title="<?php echo $hcat['category_name']; ?>">
                  <div class="dir-hli-5">
                    <div class="dir-hli-1">
                      <div class="dir-hli-4"> </div> 
                      <div class="image_5"><img src="<?php echo get_image('category', $hcat['category_image'], '295', '295', 'R'); ?>" alt="<?php echo $hcat['category_name']; ?>" title="<?php echo $hcat['category_name']; ?>"> </div>
                      </div>
                    <div class="dir-hli-2">
                      <h3><?php echo char_limiter($hcat['category_name'], 21); ?> <span class="dir-ho-cat">Show All </span></h3> </div>
                  </div>
                </a>
              </li>
              <?php
            }
            ?>

          </ul>
        </div>
        <div class="col-lg-12 text-center">
          <a class="viewall_btn" href="<?php echo site_url(); ?>directory">View All</a>
        </div>
      </div>
    </div>
  </section>
  <?php
}
?>

<section id="about_info">
  <div class="container">
    <div class="row">
      <div class="col-md-5 col-md-offset-7">
        <div class="white_box">
          <h2>Save Time, Money and Hassle With Us</h2>
          <p>Are you searching for the best natural health products & services? If yes then your search ends here at Natural Therapy India. We help you find everything quickly and easily right at a single destination. So, save time, money and hassle with us!</p>
          <a href="javascript:void()" data-dismiss="modal" data-toggle="modal" data-target="#getquote" class="start_btn">Post Your Buying Requirements Now !</a>
        </div>
      </div>
    </div>

  </div>
</section>


<section class="popular_categories">
  <div class="container">
    <h2>क्या है <span>किसान चौपाल</span>?</h2>
    <div class="row">
      <div class="col-lg-12 col-md-12">
        <div class="row">
          <div class="col-lg-12 col-md-12">
            <?php echo $homePageContent; ?>
          </div>
        </div>        
      </div>
      <!--<div class="col-lg-3 col-md-3">
        <div class="list-mig-like-com">
          <div class="list-mig-lc-img"> 
            <img src="<?php //echo theme_url(); ?>images/All-Categories.jpg" alt="View All Categories" title="View All Categories"> </div>
          <div class="list-mig-lc-con all_category">
            <h5>View All Categories</h5>
            <p>Passenger Lifts<br>
              TMT Bars<br>
              Plywoods</p>
            <a class="start_btn" href="<?php //echo site_url(); ?>directory">View All</a>
          </div>
        </div>
      </div>-->
    </div>

  </div>
</section>

<section class="call_section01">
  <div class="container">

    <div class="com-title">
      <h2>What Makes Us <span>The Preferred Choice</span></h2>
      <div class="line"><em></em></div>
      <p>India’s 1st Specialised Marketplace For Natural Therapies, Health & Fitness Products</p>
    </div>
    <div class="row">
      <div class="col-lg-3 col-md-3">
        <div class="choice_box01 choice_box02">
         <div class="centred_box">
          <i class="fa fa-users"></i>
          <h4>Maximum Choices</h4>
          <p>Seeking around the shops in the market for products and services will never give you lots of options. But we at Natural Therapy India, provide even more choices than ever before! </p>
        </div>
      </div>
</div>
      <div class="col-lg-3 col-md-3">
        <div class="choice_box01 choice_box02">
         <div class="centred_box">
          <i class="fa fa-shield"></i>
          <h4>Buyers Trust Us</h4>
          <p>With immense experience, we have gained a lot of reputation in the marketplace and become the most trusted and preferred choice for the buyers. </p>
        </div>
      </div>
</div>

      <div class="col-lg-3 col-md-3">
        <div class="choice_box01 choice_box02">
         <div class="centred_box">
          <i class="fa fa-thumbs-o-up"></i>
          <h4>Seller Prefer Us</h4>
          <p>Most of the product sellers and service providers prefer Natural Therapy India to sell their products and services on online marketplace and make us the leading choice to enlist their business with us.</p>
        </div>
      </div>
</div>

      <div class="col-lg-3 col-md-3">
        <div class="choice_box01 choice_box02">
         <div class="centred_box">
          <i class="fa fa-user-circle-o"></i>
          <h4>Expert Guidance1</h4>
          <p>Get the best guidance and beneficial advice from the industry experts and specialists to take your business to a higher level.</p>
        </div>
      </div>
</div>
    </div>
  </div>

</section>

<?php
if (is_array($cityList) && !empty($cityList)) {
  ?>
  <!--EXPLORE CITY LISTING-->
  <section class="com-padd citysection01">
    <div class="container">
      <div class="row">
        <div class="com-title">
          <h2>Explore your <span>City Listings</span></h2>
          <div class="line"><em></em></div>
          <p>Explore some of the best business from around the world from our partners and friends.</p>
        </div>
        <?php
        foreach ($cityList as $ck => $cval) {
          if ($ck == 0) {
            $cls = 'class="col-md-6"';
            $cls1 = 'class="list-mig-lc-con"';
            $w = '800';
            $h = '500';
          } else if ($ck > 0 && $ck <= 4) {
            $cls = 'class="col-md-3"';
            $cls1 = 'class="list-mig-lc-con list-mig-lc-con2"';
            $w = '550';
            $h = '344';
          } else {
            $cls = 'class="col-md-3 col5_box"';
            $cls1 = 'class="list-mig-lc-con list-mig-lc-con2"';
            $w = '550';
            $h = '344';
          }
          ?>
          <div <?php echo $cls; ?>>
            <a href="<?php echo site_url() . $cval['temp_title']; ?>">
              <div class="list-mig-like-com">
                <div class="list-mig-lc-img"> 
                  <img src="<?php echo get_image('location', $cval['image_name'], $w, $h, 'R'); ?>" alt="<?php echo $cval['city']; ?>" title="<?php echo $cval['city']; ?>" /> </div>
                <div <?php echo $cls1; ?>>
                  <h5><?php echo $cval['city']; ?></h5>
                </div>
              </div>
            </a>
          </div>
          <?php
        }
        ?>
      </div>
    </div>
  </section>
  <?php
}

if (is_array($featured) && !empty($featured)) {
  $messurement = $this->config->item('unit_measurement');
  ?>
  <section class="featured_categories">
    <div class="container">
      <h2>Featured <span>Products</span></h2>
      <div id="featured" class="owl-carousel  owl-theme">
        <?php
        foreach ($featured as $pval) {
          $userDets = get_db_single_row("wps_customers", "customers_id, website, company_name, state, city, locality, address, landmark, locality", "customers_id = '" . $pval['customers_id'] . "'");
          $aboutCompany = get_db_field_value("wps_customers_factsheet", "about_company", "WHERE id = '" . $pval['customers_id'] . "'");
          $city = "";
          $state = "";
          $locality = "";
          if (is_array($userDets) && !empty($userDets)) {
            $city = get_db_field_value("wps_cities_list", "city", "WHERE id = '" . $userDets['city'] . "'");
            $state = get_db_field_value("wps_states_list", "name", "WHERE id = '" . $userDets['state'] . "'");
            $locality = $userDets['locality'];
          }
          $location = $location1 = "";
          if ($state || $city) {
            $location .= '<i class="fa fa-map-marker"></i> ';
          }
          if ($state)
            $location .= $state;
          $location1 .= $state;
          if ($city) {
            if ($state)
              $location .= ', ';
            $location1 .= ', ';
            $location .= $city;
            $location1 .= $city;
          }
          ?>
          <div class="item">
            <div class="featured02">
              <a href="<?php echo site_url() . $pval['friendly_url']; ?>">
                <div class="image03">
                  <img src="<?php echo get_image('product_images', $pval['media'], '250', '250', 'R'); ?>" alt="<?php echo $pval['product_name']; ?>" title="<?php echo $pval['product_name']; ?>">
                </div>
                <h6><?php echo $pval['product_name']; ?></h6>
              </a>
              <a href="javascript:void()" data-productID="<?php echo $pval['products_id']; ?>" data-companyID="<?php echo $pval['customers_id']; ?>" data-productName="<?php echo $pval['product_name'] . ' <br> ' . $userDets['company_name'] . ' ' . $location1; ?>" data-companyName="<?php echo $userDets['company_name']; ?>" data-productImage="<?php echo get_image('product_images', $pval['media'], '400', '600', 'R'); ?>" data-unit="<?php echo @$messurement[$pval['unit_measurement']]; ?>" class="getQuote getquote" data-dismiss="modal" data-toggle="modal" data-target="#list-quo">Get a Quote</a>
            </div>
          </div>
          <?php
        }
        ?>
      </div>
    </div>
  </section>
  <?php
}

if (is_array($featuredMem) && !empty($featuredMem)) {
  ?>


  <section class="premium_brands">
    <div class="container">
      <h2>Explore products from <span>Premium Brands</span></h2>
      <div id="topbrand" class="owl-carousel  owl-theme">
        <?php
        foreach ($featuredMem as $mem) {
          ?>
          <div class="item">
            <div class="featured02">
              <a href="<?php echo site_url().$mem['website_url']; ?>">
                <div class="image03">
                  <img src="<?php echo get_image('user', $mem['website_logo'], '177', '100', 'R'); ?>" alt="Logo - <?php echo $mem['company_name']; ?>" title="Logo - <?php echo $mem['company_name']; ?>">
                </div>
              </a>
            </div>
          </div>        
          <?php
        }
        ?>
      </div>
    </div>
  </section>
  <?php
}
?>
<section class="webpule_quote">
  <div class="container">
    <div class="row">
      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="banner-content">
          <h4>Connecting Buyers with Genuine Service Providers</h4>
          <div class="banner-contact">
            <!--<span class="call-us"><i class="fa fa-phone"></i>Call Us : +91-95558-44888</span><span>Or</span>-->
            <a class="banner-btn" href="<?php echo site_url(); ?>contact-us">Write Us</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<!--FOOTER SECTION-->
<?php $this->load->view('bottom_application'); ?>
<script type="text/javascript">
  $('.getQuote').click(function () {
    var productID = $(this).attr('data-ProductID');
    var companyID = $(this).attr('data-companyID');
    var companyName = $(this).attr('data-companyName');
    var productName = $(this).attr('data-ProductName');
    var productImage = $(this).attr('data-ProductImage');
    $('#productQuoteImage').attr('src', productImage);
    $('#productQuoteImage').css({"border": "3px solid #CCC"});
    $('#companyProDetails').html('');
    $('#companyProDetails').html(productName);
    $('#companyProName').html(companyName);
    $('#productQuoteID').val(productID);
    $('#productCompID').val(companyID);
    $('.unitSize').html('/' + $(this).attr('data-unit'));
  });
</script>