<?php $__env->startSection('title', 'دسته'); ?>
<?php $__env->startSection('description', 'فروشگاه اینترنتی,خرید محصول'); ?>
<?php $__env->startSection('keywords', 'فروشگاه اینترنتی,خرید محصول'); ?>
<?php $__env->startSection('main'); ?>
    <div class="content-home" >
        <h1 class="head">محصولات</h1>
        <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>
    </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(); ?>