<?php $__env->startSection('title', $product->name); ?>
<?php $__env->startSection('content'); ?>
    <div class="product-details ptb-100 pb-90">
        <div class="container">
            <div class="row">
                <div class="col-md-12 col-lg-7 col-12">
                    <div class="product-details-img-content">
                        <div class="product-details-tab mr-70">
                            <?php if($product->files): ?>
                                <div class="product-details-large tab-content">
                                    <?php $__currentLoopData = $product->files; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $file): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div class="tab-pane <?php echo e($loop->index == 0 ? 'active' : ''); ?> show fade"
                                             id="pro-details<?php echo e($loop->index); ?>" role="tabpanel">
                                            <div class="easyzoom easyzoom--overlay">
                                                <a href="<?php echo e($file); ?>">
                                                    <img src="<?php echo e($file); ?>" alt="<?php echo e($product->name); ?>">
                                                </a>
                                            </div>
                                        </div>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                                <div class="product-details-small nav mt-12" role=tablist>
                                    <?php $__currentLoopData = $product->files; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $file): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <a class="<?php echo e($loop->index == 0 ? 'active' : ''); ?> mr-12"
                                           href="#pro-details<?php echo e($loop->index); ?>" data-toggle="tab" role="tab"
                                           aria-selected="true">
                                            <img style="width: 90px;" src="<?php echo e($file); ?>"
                                                 alt="<?php echo e($product->name); ?>">
                                        </a>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            <?php else: ?>
                                <img src="<?php echo e(asset('img/no-img.png' )); ?>" alt="<?php echo e($product->name); ?>">
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
                <div class="col-md-12 col-lg-5 col-12">
                    <div class="product-details-content">
                        <h3><?php echo e($product->name); ?></h3>
                        <div class="rating-number">
                            <div class="quick-view-number">
                                <span class="score">
                                    <div class="score-wrap">
                                        <?php if($product->approved_reviews_avg_rating): ?>
                                            <?php for($i = 0; $i < 5; $i++): ?>
                                                <span class="stars-active">
                                                    <i class="<?php echo e(round($product->approved_reviews_avg_rating) <= $i ? 'far' : 'fas'); ?> fa-star"></i>
                                                </span>
                                            <?php endfor; ?>
                                        <?php else: ?>
                                            <?php for($i = 0; $i < 5; $i++): ?>
                                                <i class="far fa-star"></i>
                                            <?php endfor; ?>
                                        <?php endif; ?>
                                    </div>
                                </span>
                                <span><?php echo e(__(":count Ratting(s)",['count' => format_amount($product->approved_reviews_count)])); ?></span>
                            </div>
                        </div>
                        <div class="details-price">
                            <span><?php echo e(format_amount($product->price,true)); ?></span>
                        </div>
                        <p><?php echo $product->description; ?></p>
                        <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('frontend.product.single-product-cart-component', ['product' => $product])->html();
} elseif ($_instance->childHasBeenRendered('n5bXTdv')) {
    $componentId = $_instance->getRenderedChildComponentId('n5bXTdv');
    $componentTag = $_instance->getRenderedChildComponentTagName('n5bXTdv');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('n5bXTdv');
} else {
    $response = \Livewire\Livewire::mount('frontend.product.single-product-cart-component', ['product' => $product]);
    $html = $response->html();
    $_instance->logRenderedChild('n5bXTdv', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                        <div class="product-details-cati-tag mt-35">
                            <ul>
                                <li class="categories-title"><?php echo e(__("Categories")); ?> :</li>
                                <li>
                                    <a href="<?php echo e(route('shop.index', $product->category->slug)); ?>">
                                        <?php echo e($product->category->name); ?>

                                    </a>
                                </li>
                            </ul>
                        </div>
                        <div class="product-details-cati-tag mtb-10">
                            <ul>
                                <li class="categories-title">Tags :</li>
                                <li>
                                    <?php echo e(implode(", ",$product->tags->pluck('name')->toArray())); ?>


                                </li>
                            </ul>
                        </div>








                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="product-description-review-area pb-90">
        <div class="container">
            <div class="product-description-review text-center">
                <div class="description-review-title nav" role=tablist>
                    <a class="active" href="#pro-review" data-toggle="tab" role="tab" aria-selected="false">
                        Reviews (<?php echo e($product->approved_reviews_count); ?>)
                    </a>
                    <a href="#pro-dec" data-toggle="tab" role="tab" aria-selected="true">
                        Description
                    </a>
                </div>
                <div class="description-review-text tab-content">
                    <div class="tab-pane fade" id="pro-dec" role="tabpanel">
                        <p><?php echo $product->details; ?></p>
                    </div>
                    <div class="tab-pane active show fade" id="pro-review" role="tabpanel">
                        <div class="page-blog-details section-padding--lg bg--white pt-0">
                            <div class="container">
                                <div class="row">
                                    <div class="col-lg-9 col-12">
                                        <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('frontend.product.single-product-review-component', ['product' => $product])->html();
} elseif ($_instance->childHasBeenRendered('UNql806')) {
    $componentId = $_instance->getRenderedChildComponentId('UNql806');
    $componentTag = $_instance->getRenderedChildComponentTagName('UNql806');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('UNql806');
} else {
    $response = \Livewire\Livewire::mount('frontend.product.single-product-review-component', ['product' => $product]);
    $html = $response->html();
    $_instance->logRenderedChild('UNql806', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('frontend.product.related-products-component', ['relatedProducts' => $relatedProducts])->html();
} elseif ($_instance->childHasBeenRendered('imB0roP')) {
    $componentId = $_instance->getRenderedChildComponentId('imB0roP');
    $componentTag = $_instance->getRenderedChildComponentTagName('imB0roP');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('imB0roP');
} else {
    $response = \Livewire\Livewire::mount('frontend.product.related-products-component', ['relatedProducts' => $relatedProducts]);
    $html = $response->html();
    $_instance->logRenderedChild('imB0roP', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lekruu/public_html/resources/views/frontend/product/show.blade.php ENDPATH**/ ?>