<?php $__env->startSection('title', ''); ?>
<?php $__env->startSection('description', "<?php echo e($Product->description); ?>"); ?>
<?php $__env->startSection('keywords', "<?php echo e($Product->title); ?>"); ?>
<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('assets/js/jss/product.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main'); ?>
    <div class="content-home" >
        <div class="container-fluid">
            <div class="col-sm-12">
                <h1 class="head"><?php echo e($Product->title); ?></h1>
                <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><span  class="dis"><?php $p = $Product->Discount()->get();
                    $sum = 0 ;
                    foreach($p as $d)
                    {
                        $sum+= $d->price;
                    }
                    ?><?php echo e($Product->price - $sum); ?></span><br>
                <span>زیر دسته : </span><a href="<?php echo e(url('/subcat/'.$Product->subcat->id)); ?>"><?php echo e($Product->subcat->name); ?></a><br><br>
                <button data="<?php echo e($Product->id); ?>" class="btn btn-danger add-to-basket"><img src="<?php echo e(asset('assets/img/shop-basket.png')); ?>">افزودن به سبد خرید</button>
            </div>
            <div class="col-sm-1"></div>
        </div><br>
        <div class="container-fluid ">
            <div class="col-sm-6">
                <textarea placeholder="دیدگاهتان را بنویسید" class="form-control comment"></textarea><br>
                <button data="<?php echo e($Product->id); ?>" class="btn btn-wide btn-success send-comment">ارسال دیدگاه</button>
            </div>
        </div>
        <div class="container-fluid">
            <div style="direction: rtl;text-align: right" class="">
                <br>
                <h4 class="title"> دیدگاه ها</h4>
                <?php $__empty_1 = true; $__currentLoopData = $Comment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); $__empty_1 = false; ?>
                    <div id="combody" class="effect2">
                        <span id="comboxtitle"><?php echo e($comment->user->name); ?><br><em style="margin-right:3px;font-size: 11px;font-family: 'Iransans', Tahoma, sans-serif">نوشت :</em></span>
                        <br><span  id="commtext"><?php echo e($comment->content); ?></span><br><br>
                    </div><!---end combody-->
                <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); if ($__empty_1): ?>
                <?php endif; ?>
            </div>
        </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(); ?>