<?php $__env->startSection('title', 'خانه'); ?>
<?php $__env->startSection('description', 'فروشگاه اینترنتی,خرید محصول'); ?>
<?php $__env->startSection('keywords', 'فروشگاه اینترنتی,خرید محصول'); ?>
<?php $__env->startSection('head'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/chosen.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/chosen.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('assets/js/chosen.jquery.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/chosen.jquery.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/jss/home.js')); ?>"></script>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('main'); ?>
    <script type="text/javascript">
        $(".chosen").chosen();
    </script>
    <div class="content-home" >
        <h1 class="head">محصولات</h1>
        <div class="container-fluid">
            <span>فیلتر قیمت</span>
            <select onchange="location = this.value ;"  id="subcat" name="subcat" data-placeholder="فیلتر قیمت" class="chosen chosen-rtl"  style="width:600px;direction: ltr">
                <option  style=""  value="">همه محصولات</option>
                <option value="<?php echo e(url('/1')); ?>">100هزار تومان</option>
                <option value="<?php echo e(url('/2')); ?>">200هزار تومان</option>
                <option value="<?php echo e(url('/3')); ?>">500هزار تومان</option>
            </select><br><br>
        </div>
        <div class="container-fluid">
            <?php $__empty_1 = true; $__currentLoopData = $Product; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); $__empty_1 = false; ?>
                <div class="col-sm-5  product-box">
                    <h2 class="title"><?php echo e($product->title); ?></h2>
                    <span class="desc"><?php echo e($product->description); ?></span>...<br><br>
                    <span>قیمت : </span><span class="desc"><?php echo e($product->price); ?></span><br><br>
                    <span>زیر دسته : </span><a href="<?php echo e(url('/subcat/'.$product->subcat->id)); ?>"><?php echo e($product->subcat->name); ?></a><br><br>
                    <a href="<?php echo e(url('/product/'.$product->id)); ?>" class="btn btn-info"><span class="glyphicon glyphicon-link"></span>جزییات کامل</a>
                    <a class="btn btn-danger"><img src="<?php echo e(asset('assets/img/shop-basket.png')); ?>">افزودن به سبد خرید</a>
                </div>
                <div class="col-sm-1"></div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); if ($__empty_1): ?>
            <?php endif; ?>
        </div>
        <?php echo e($Product->Links('vendor.pagination.custom')); ?>

    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('sidebar'); ?>
    <div class="content-home" >
        <div class="container-fluid">
            <?php $__empty_1 = true; $__currentLoopData = $Cat; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); $__empty_1 = false; ?>
                <a href="<?php echo e(url('/cat/'.$cat->id)); ?>" class="feed-item"><span class="glyphicon glyphicon-folder-close"></span><?php echo e($cat->name); ?></a><br>
                <?php $__empty_2 = true; $__currentLoopData = $cat->subcat; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sub): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); $__empty_2 = false; ?>
                    <a href="<?php echo e(url('/subcat/'.$sub->id)); ?>" style="padding-right: 20px"><span class="glyphicon glyphicon-folder-open"></span><?php echo e($sub->name); ?></a><br>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); if ($__empty_2): ?>
                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); if ($__empty_1): ?>
            <?php endif; ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>