<?php $__env->startSection('styles'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<?php echo $__env->make('includes.smallHeader', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<!-- Breadcrumbs -->
<div class="breadcrumbs">
  <div class="container">
    <div class="row">
      <div class="col-12">
        <div class="bread-inner">
          <ul class="bread-list">
            <li><a href="<?php echo e(route('main')); ?>">Home<i class="ti-arrow-right"></i></a></li>
            <li class="active"><a href="#"><?php echo e($type); ?></a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- End Breadcrumbs -->

<!-- Product Style -->
<section class="product-area shop-sidebar shop section">
  <div class="container">
    <div class="row">

      <div class="col-lg-9 col-md-8 col-12">
        <div class="row">
          <div class="col-12">
            <!-- Shop Top -->
            <div class="shop-top">
              <div class="shop-shorter">
                <h5>Showing Products for: <?php echo e($type); ?>/<?php echo e($txt->name); ?></h5>
                <!-- <div class="single-shorter">
                  <label>Show :</label>
                  <select>
                    <option selected="selected">09</option>
                    <option>15</option>
                    <option>25</option>
                    <option>30</option>
                  </select>
                </div> -->
                <!-- <div class="single-shorter">
                  <label>Sort By :</label>
                  <select>
                    <option selected="selected">Name</option>
                    <option>Price</option>
                    <option>Size</option>
                  </select>
                </div> -->
              </div>
              <ul class="view-mode">
                <!-- <li class="active"><a href="shop-grid.html"><i class="fa fa-th-large"></i></a></li>
                <li><a href="shop-list.html"><i class="fa fa-th-list"></i></a></li> -->
              </ul>
            </div>
            <!--/ End Shop Top -->
          </div>
        </div>
        <div class="row">

          <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <div class="col-lg-4 col-md-6 col-12">
            <div class="single-product">
              <div class="product-img">
                <a href="<?php echo e(route('itemDetail' , $pp->id)); ?>">
                  <img class="default-img" src="<?php echo e(asset('storage/products/'.$pp->image1)); ?>" alt="#">
                  <img class="hover-img" src="<?php echo e(asset('storage/products/'.$pp->image1)); ?>" alt="#">
                  <?php if($pp->sale != 0): ?>  <span class="new">SALE <?php echo e($pp->sale); ?> %</span> <?php endif; ?>
                </a>
                <div class="button-head">
                  <div class="product-action">
                    <a  title="Quick View" href="<?php echo e(route('itemDetail' , $pp->id)); ?>"><i class=" ti-eye"></i><span>Quick Shop</span></a>
                  </div>
                  <div class="product-action-2">
                    <a title="Add to cart" href="#">Add to cart</a>
                  </div>
                </div>
              </div>
              <div class="product-content">
                <h3><a href="<?php echo e(route('itemDetail' , $pp->id)); ?>"><?php echo e($pp->name); ?></a></h3>
                <div class="product-price">
                <span><?php if($pp->sale != 0): ?> <s> <?php echo e($pp->actual_price); ?> PKR</s>  <?php endif; ?> <?php echo e($pp->price); ?> PKR</span>
                </div>
              </div>
            </div>
          </div>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        </div>
      </div>


      <div class="col-lg-3 col-md-4 col-12">

        <div class="shop-sidebar">
            <!-- Single Widget -->


          <!-- <div data-role="main" class="ui-content"> -->
          <form method="get" action="<?php echo e(route('itemList')); ?>">
          <input type="hidden" value="<?php echo e($type); ?>" name="type">
          <input type="hidden" value="<?php echo e($type_id); ?>" name="id">
          <div class="row">
            <div class="col-md-12">
          <label for="price-min">Min:</label>
          <input type="text" disabled id="showmin" value="0" style="border:0px;">
          <input type="range" name="min" id="price-min" onchange="setmin()" value="0" min="0" max="10000" class="form-control">

        </div>
        <div class="col-md-12">
          <label for="price-max">Min:</label>
          <input type="text" disabled id="showmax" value="5000" style="border:0px;">
          <input type="range" name="max" id="price-max" onchange="setmax()"  value="5000" min="0" max="10000"  class="form-control">

          </div>
        </div>

          <input type="submit"  value="Submit" class="btn" style="background:green;color:white">
          <?php echo e(csrf_field()); ?>

          </form>
          <!-- </div> -->

            <div class="single-widget category">
              <h3 class="title">Categories</h3>
              <ul class="categor-list">
                <?php $__currentLoopData = $submenus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $smmn): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><a href="<?php echo e(route('itemLists',['submenu',$smmn->id])); ?>"><?php echo e($smmn->name); ?></a></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </ul>
            </div>
            <!--/ End Single Widget -->
            <!-- Shop By Price -->

              <!--/ End Shop By Price -->
            <!-- Single Widget -->

            <!--/ End Single Widget -->
            <!-- Single Widget -->
            <div class="single-widget category">
              <h3 class="title">Brands</h3>
              <ul class="categor-list">
                <?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bbc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><a href="<?php echo e(route('itemLists',['brand',$bbc->id])); ?>"><?php echo e($bbc->name); ?></a></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </ul>
            </div>
            <!--/ End Single Widget -->
        </div>
      </div>
    </div>
  </div>
</section>
<!--/ End Product Style 1  -->

<!-- Start Shop Newsletter  -->
<!--  -->
<!-- End Shop Newsletter -->



<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script>
function setmin()
{
  var m = $("#price-min").val();
  $("#showmin").val(m);
}

</script>
<script>
function setmax()
{
  var m = $("#price-max").val();
  $("#showmax").val(m);
}

</script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\freelance\mommy\resources\views/web/itemLists.blade.php ENDPATH**/ ?>