<?php $__env->startSection('body'); ?>
<h3>Result for "<?php echo Request::get('search'); ?>"</h3>
<hr>
<div class="row">
  <div class="col-sm-2 visible-sm visible-md visible-lg" style="padding-right:0px">
    <div class="panel panel-default">
      <div class="panel-heading"><b>Refine Search</b></div>
      <div class="panel-body">
        <div style="padding:5px">
          <b>Price Range (RM)</b>
          <form method="post">
            <input type="hidden" name="product_name" value="<?php echo Request::get('search'); ?>">
            <input type="number" name="price_min" class="form-control">to
            <input type="number" name="price_max" class="form-control"><br>
            <button type="submit" class="btn btn-sm btn-warning">Search</button>
          </form>
        </div>
      </div>
    </div>
  </div>
  <div class="col-sm-10 col-xs-12">
    <div class="panel panel-default">
      <div class="panel-heading"><b>All Product</b></div>
      <div class="panel-body">
        <?php if(count($products)==0): ?>
        <div class="col-xs-12">
          <h5>Product not found.</h5>
        </div>
        <?php endif; ?>
        <?php foreach($products as $product): ?>
        <div class="col-md-2 col-sm-4 col-xs-6">
          <div class="thumbnail">
            <a href="/product/<?php echo $product->id; ?>/<?php echo Str::slug($product->name); ?>"><img src="/img-product/<?php echo $product->imageThumbnail['name']; ?>" alt="<?php echo $product->name; ?>" width="199px" style="min-height:141px;max-height:141px"></a>
            <div class="caption">
              <div class="product-title">
                <a href="/product/<?php echo $product->id; ?>/<?php echo Str::slug($product->name); ?>"><?php echo $product->subName(); ?></a>
              </div>
              <div class="product-title">
                <a href="/store/<?php echo $product->profile_id; ?>/<?php echo Str::slug($product->profile->shop_name); ?>" class="shop-name"><?php echo $product->profile->shop_name; ?></a>
              </div>
              <div class="product-price center">RM <?php echo $product->sale_price; ?></div>
            </div>
          </div>
        </div>
        <?php endforeach; ?>
      </div>
    </div>
  </div>
  <!-- END PRODUCT -->

</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('template', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>