관리-도구
편집 파일: ea14a59924577583f4b6797780980b6c91172f58.php
<?php $__env->startSection('content'); ?> <link rel="stylesheet" href="<?php echo e(asset('public/theme/default/css/css-stars.css')); ?>"> <!-- Breadcrumbs --> <div class="breadcrumbs"> <div class="container"> <div class="row"> <div class="col-12"> <div class="bread-inner"> <ul class="bread-list"> <li><a href="<?php echo e(url('')); ?>"><?php echo e(_lang('Home')); ?><i class="ti-arrow-right"></i></a></li> <?php $__currentLoopData = $product->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li> <a href="<?php echo e(url('/categories/'.$category->slug)); ?>"><?php echo e($category->translation->name); ?><i class="ti-arrow-right"></i></a> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <li class="active"> <a href="<?php echo e(url('/shop/'.$product->slug)); ?>"><?php echo e($product->translation->name); ?></a> </li> </ul> </div> </div> </div> </div> </div> <!-- End Breadcrumbs --> <section class="shop single section"> <div class="container"> <div class="row"> <div class="col-12"> <div class="row"> <div class="col-lg-6 col-12"> <!-- Product Slider --> <div class="product-gallery"> <!-- Images slider --> <div class="flexslider-thumbnails"> <ul class="slides"> <li data-thumb="<?php echo e(asset('storage/app/'. $product->image->file_path)); ?>" rel="adjustX:10, adjustY:"> <img src="<?php echo e(asset('storage/app/'. $product->image->file_path)); ?>" alt="#"> </li> <?php if(isset($product->gallery_images)): ?> <?php $__currentLoopData = $product->gallery_images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gallery_image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li data-thumb="<?php echo e(asset('storage/app/'. $gallery_image->file_path)); ?>"> <img src="<?php echo e(asset('storage/app/'. $gallery_image->file_path)); ?>" alt="#"> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </ul> </div> <!-- End Images slider --> </div> <!-- End Product slider --> </div> <div class="col-lg-6 col-12"> <div class="product-des"> <!-- Description --> <div class="short"> <h4><?php echo e($product->translation->name); ?></h4> <div class="rating-main"> <ul class="rating"> <?php echo xss_clean(show_rating($product->reviews->avg('rating'))); ?> </ul> <a href="#" class="total-review">(<?php echo e($product->reviews->count()); ?>) <?php echo e(_lang('Review')); ?></a> </div> <?php if($product->product_type != 'variable_product'): ?> <p class="price"> <?php if($product->special_price != '' || (int) $product->special_price != 0 ): ?> <span class="discount"><?php echo xss_clean(show_price($product->special_price)); ?></span> <s><?php echo xss_clean(show_price($product->price)); ?></s> <?php else: ?> <span class="discount"><?php echo xss_clean(show_price($product->price)); ?></span> <?php endif; ?> </p> <?php else: ?> <p class="price"> <?php if($product->variation_prices[0]->special_price != '' || (int) $product->variation_prices[0]->special_price != 0 ): ?> <span class="discount"><?php echo xss_clean(show_price($product->variation_prices[0]->special_price)); ?></span> <s><?php echo xss_clean(show_price($product->variation_prices[0]->price)); ?></s> <?php else: ?> <span class="discount"><?php echo xss_clean(show_price($product->variation_prices[0]->price)); ?></span> <?php endif; ?> </p> <?php endif; ?> <p class="description"><?php echo e($product->translation->short_description); ?></p> </div> <!--/ End Description --> <!-- Product Options --> <?php if(! $product->product_options->isEmpty()): ?> <form action="<?php echo e(url('products/get_variation_price/'.$product->id)); ?>" id="product-variation"> <?php echo csrf_field(); ?> <?php $__currentLoopData = $product->product_options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="product_options"> <h6><?php echo e($product_option->name); ?></h6> <select name="product_option[]" class="select_product_option"> <?php $__currentLoopData = $product_option->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($item->id); ?>"><?php echo e($item->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </form> <div class="clearfix"></div> <?php endif; ?> <!--/ End Product Options --> <!-- Product Buy --> <div class="product-buy"> <div class="quantity"> <h6><?php echo e(_lang('Quantity')); ?> :</h6> <!-- Input Order --> <div class="input-group"> <div class="button minus"> <button type="button" class="btn btn-primary btn-number" disabled="disabled" data-type="minus" data-field="quantity"> <i class="ti-minus"></i> </button> </div> <input type="text" name="quantity" class="input-number" data-min="1" data-max="1000" value="1"> <div class="button plus"> <button type="button" class="btn btn-primary btn-number" data-type="plus" data-field="quantity"> <i class="ti-plus"></i> </button> </div> </div> <!--/ End Input Order --> </div> <div class="add-to-cart"> <?php if($product->in_stock == 1): ?> <a href="<?php echo e(url('add_to_cart/'.$product->id)); ?>" data-type="<?php echo e($product->product_type); ?>" class="btn add_to_cart"><?php echo e(_lang('Add to Cart')); ?></a> <?php else: ?> <a href="#" class="btn disabled"><?php echo e(_lang('Add to Cart')); ?></a> <?php endif; ?> <a href="<?php echo e(wishlist_url($product)); ?>" class="btn min btn-wishlist"><i class="ti-heart"></i></a> </div> <p class="cat"><?php echo e(_lang('Category')); ?> : <?php echo e($product->categories->count() == 0 ? _lang('N/A') : ''); ?> <?php $__currentLoopData = $product->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e(url('/categories/'.$category->slug)); ?>"><?php echo e($category->translation->name); ?></a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </p> <?php if($product->sku != ''): ?> <p class="sku"><?php echo e(_lang('SKU')); ?> : <?php echo e($product->sku); ?></p> <?php endif; ?> <?php if($product->manage_stock == 1 && $product->in_stock == 1): ?> <p class="availability"><?php echo e(_lang('Availability')); ?> : <?php echo e($product->qty.' '._lang('Product In Stock')); ?></p> <?php endif; ?> <?php if($product->in_stock == 0): ?> <p class="availability"><?php echo e(_lang('Availability')); ?> : <span class="text-danger"><?php echo e(_lang('Out Of Stock')); ?></span></p> <?php endif; ?> </div> <!--/ End Product Buy --> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="product-info"> <div class="nav-main"> <!-- Tab Nav --> <ul class="nav nav-tabs" id="myTab" role="tablist"> <li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#description" role="tab"><?php echo e(_lang('Description')); ?></a></li> <li class="nav-item"><a class="nav-link" data-toggle="tab" href="#reviews" role="tab"><?php echo e(_lang('Reviews')); ?> (<?php echo e($product->reviews->count()); ?>)</a></li> <li class="nav-item"><a class="nav-link" data-toggle="tab" href="#comments" role="tab"><?php echo e(_lang('Comments')); ?> (<?php echo e($product->comments->count()); ?>)</a></li> </ul> <!--/ End Tab Nav --> </div> <div class="tab-content" id="myTabContent"> <!-- Description Tab --> <div class="tab-pane fade show active" id="description" role="tabpanel"> <div class="tab-single"> <div class="row"> <div class="col-12"> <div class="single-des"> <?php echo xss_clean($product->translation->description); ?> </div> </div> </div> </div> </div> <!--/ End Description Tab --> <!-- Reviews Tab --> <div class="tab-pane fade" id="reviews" role="tabpanel"> <div class="tab-single review-panel"> <div class="row"> <div class="col-12"> <div class="ratting-main"> <div class="avg-ratting"> <h5><span class="total-reviews"><?php echo e($product->reviews->count()); ?></span> <?php echo e(_lang('Reviews for').' '.$product->translation->name); ?></h5> </div> <?php if(\Session::has('success')): ?> <div class="alert alert-success mt-4"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <span><?php echo xss_clean(session('success')); ?></span> </div> <?php endif; ?> <?php $__currentLoopData = $product->reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <!-- Single Rating --> <div class="single-rating"> <div class="rating-author"> <img src="<?php echo e(profile_picture($review->user->profile_picture)); ?>" alt="<?php echo e(_lang('Profile Picture')); ?>"> </div> <div class="rating-des"> <h6><?php echo e($review->user->name); ?></h6> <div class="ratings"> <ul class="rating"> <?php echo xss_clean(show_rating($review->rating)); ?> </ul> <div class="rate-count">(<span><?php echo e($review->rating); ?></span>)</div> </div> <p><?php echo e($review->comment); ?></p> </div> </div> <!--/ End Single Rating --> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <!-- Review --> <div class="comment-review"> <div class="add-review"> <h5><?php echo e(_lang('Add A Review')); ?></h5> <?php if(! auth()->check()): ?> <p><?php echo e(_lang('You need to login for writing a review.')); ?> <a href="<?php echo e(url('sign_in')); ?>" class="btn-link"><?php echo e(_lang('Login to your account')); ?></a></p> <?php endif; ?> </div> </div> <!--/ End Review --> <!-- Form --> <form class="form reviews-form" method="post" action="<?php echo e(route('reviews.store')); ?>"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-lg-12 col-12"> <div class="form-group"> <label><?php echo e(_lang('Your Rating')); ?><span>*</span></label> <select class="ratng-bar" name="rating" rquired> <option value="1"><?php echo e(_lang('1')); ?></option> <option value="2"><?php echo e(_lang('2')); ?></option> <option value="3"><?php echo e(_lang('3')); ?></option> <option value="4"><?php echo e(_lang('4')); ?></option> <option value="5"><?php echo e(_lang('5')); ?></option> </select> </div> </div> <div class="col-lg-12 col-12"> <div class="form-group"> <label><?php echo e(_lang('Write a review')); ?><span>*</span></label> <textarea name="comment" rows="6" required="true" <?php echo e(! auth()->check() ? 'disabled' : ''); ?>></textarea> <input type="hidden" name="product_id" value="<?php echo e($product->id); ?>" /> </div> </div> <div class="col-lg-12 col-12"> <div class="form-group button5"> <button type="submit" class="btn" <?php echo e(! auth()->check() ? 'disabled' : ''); ?>><?php echo e(_lang('Submit')); ?></button> </div> </div> </div> </form> <!--/ End Form --> </div> </div> </div> </div> <!--/ End Reviews Tab --> <!-- Comments Tab --> <div class="tab-pane fade" id="comments" role="tabpanel"> <div class="tab-single"> <div class="row"> <div class="col-12"> <div class="comments"> <h3 class="comment-title"><?php echo e(_lang('Comments')); ?> (<span class="comments-count"><?php echo e($product->comments->count()); ?></span>)</h3> <?php if(\Session::has('success')): ?> <div class="alert alert-success mt-4"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <span><?php echo xss_clean(session('success')); ?></span> </div> <?php endif; ?> <div id="comment-list"> <?php if($product->comments->count() == 0): ?> <p class="mb-4"><?php echo e(_lang('No Comments found !')); ?></p> <?php endif; ?> <?php echo $__env->make('theme.default.components.comments', ['comments' => $product->comments, 'product_id' => $product->id], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> </div> <div class="col-12"> <div class="reply"> <div class="reply-head"> <h2 class="reply-title"><?php echo e(_lang('Leave Your Comment')); ?></h2> <?php if(! auth()->check()): ?> <p><?php echo e(_lang('You need login for posting a comment.')); ?> <a href="<?php echo e(url('sign_in')); ?>" class="btn-link"><?php echo e(_lang('Login to your account')); ?></a></p> <?php endif; ?> <!-- Comment Form --> <form class="form comment-form" method="post" action="<?php echo e(route('comments.store')); ?>"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-12"> <div class="form-group"> <label><?php echo e(_lang('Your Comment')); ?><span>*</span></label> <textarea name="body" required="true" <?php echo e(! auth()->check() ? 'disabled' : ''); ?>></textarea> <input type="hidden" name="product_id" value="<?php echo e($product->id); ?>" /> </div> </div> <div class="col-12"> <div class="form-group button"> <button type="submit" class="btn" <?php echo e(! auth()->check() ? 'disabled' : ''); ?>><?php echo e(_lang('Post Comment')); ?></button> </div> </div> </div> </form> <!-- End Comment Form --> </div> </div> </div> </div> </div> </div> <!--/ End Comments Tab --> </div> </div> </div> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php $__env->startSection('js-script'); ?> <script src="<?php echo e(asset('public/theme/default/js/jquery.barrating.min.js')); ?>"></script> <script src="<?php echo e(asset('public/theme/default/js/product-options.js?v=1.1')); ?>"></script> <script src="<?php echo e(asset('public/theme/default/js/cart.js?v=1.1')); ?>"></script> <?php $__env->stopSection(); ?> <?php echo $__env->make('theme.saintsaccessories.websiteEcom', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/customdevdevopdi/findjobs.customdev.devopdigital.com/resources/views/theme/saintsaccessories/single-product.blade.php ENDPATH**/ ?>