Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
painelbistroemcasa.meumercado.app
/
storage
/
framework
/
views
/
Editing: 1f8db83cbe429ec483c567f1fd15272a5dbf64e3.php
<?php $__env->startSection('title', translate('Product Preview')); ?> <?php $__env->startPush('css_or_js'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <div class="row"> <div class="col-6"> <h1 class="page-header-title"><?php echo e($product['name']); ?></h1> </div> <div class="col-6"> <a href="<?php echo e(url()->previous()); ?>" class="btn btn-primary float-right"> <i class="tio-back-ui"></i> <?php echo e(\App\CentralLogics\translate('back')); ?> </a> </div> </div> <!-- Nav --> <ul class="nav nav-tabs page-header-tabs"> <li class="nav-item"> <a class="nav-link active" href="javascript:"> <?php echo e(\App\CentralLogics\translate('product')); ?> <?php echo e(\App\CentralLogics\translate('reviews')); ?> </a> </li> </ul> <!-- End Nav --> </div> <!-- End Page Header --> <!-- Card --> <div class="card mb-3 mb-lg-5"> <!-- Body --> <div class="card-body"> <div class="row align-items-md-center gx-md-5"> <div class="col-md-auto mb-3 mb-md-0"> <div class="d-flex align-items-center"> <img class="avatar avatar-xxl avatar-4by3 mr-4" src="<?php echo e(asset('storage/app/public/product')); ?>/<?php echo e(json_decode($product['image'],true)[0]); ?>" onerror="this.src='<?php echo e(asset('public/assets/admin/img/160x160/img2.jpg')); ?>'" alt="Image Description"> <div class="d-block"> <h4 class="display-2 text-dark mb-0"><?php echo e(count($product->rating)>0?number_format($product->rating[0]->average, 2, '.', ' '):0); ?></h4> <p> <?php echo e(\App\CentralLogics\translate('of')); ?> <?php echo e($product->reviews->count()); ?> <?php echo e(\App\CentralLogics\translate('reviews')); ?> <span class="badge badge-soft-dark badge-pill ml-1"></span> </p> </div> </div> </div> <div class="col-md"> <ul class="list-unstyled list-unstyled-py-2 mb-0"> <?php ($total=$product->reviews->count()); ?> <!-- Review Ratings --> <li class="d-flex align-items-center font-size-sm"> <?php ($five=\App\CentralLogics\Helpers::rating_count($product['id'],5)); ?> <span class="mr-3">5 star</span> <div class="progress flex-grow-1"> <div class="progress-bar" role="progressbar" style="width: <?php echo e($total==0?0:($five/$total)*100); ?>%;" aria-valuenow="<?php echo e($total==0?0:($five/$total)*100); ?>" aria-valuemin="0" aria-valuemax="100"></div> </div> <span class="ml-3"><?php echo e($five); ?></span> </li> <!-- End Review Ratings --> <!-- Review Ratings --> <li class="d-flex align-items-center font-size-sm"> <?php ($four=\App\CentralLogics\Helpers::rating_count($product['id'],4)); ?> <span class="mr-3">4 star</span> <div class="progress flex-grow-1"> <div class="progress-bar" role="progressbar" style="width: <?php echo e($total==0?0:($four/$total)*100); ?>%;" aria-valuenow="<?php echo e($total==0?0:($four/$total)*100); ?>" aria-valuemin="0" aria-valuemax="100"></div> </div> <span class="ml-3"><?php echo e($four); ?></span> </li> <!-- End Review Ratings --> <!-- Review Ratings --> <li class="d-flex align-items-center font-size-sm"> <?php ($three=\App\CentralLogics\Helpers::rating_count($product['id'],3)); ?> <span class="mr-3">3 star</span> <div class="progress flex-grow-1"> <div class="progress-bar" role="progressbar" style="width: <?php echo e($total==0?0:($three/$total)*100); ?>%;" aria-valuenow="<?php echo e($total==0?0:($three/$total)*100); ?>" aria-valuemin="0" aria-valuemax="100"></div> </div> <span class="ml-3"><?php echo e($three); ?></span> </li> <!-- End Review Ratings --> <!-- Review Ratings --> <li class="d-flex align-items-center font-size-sm"> <?php ($two=\App\CentralLogics\Helpers::rating_count($product['id'],2)); ?> <span class="mr-3">2 star</span> <div class="progress flex-grow-1"> <div class="progress-bar" role="progressbar" style="width: <?php echo e($total==0?0:($two/$total)*100); ?>%;" aria-valuenow="<?php echo e($total==0?0:($two/$total)*100); ?>" aria-valuemin="0" aria-valuemax="100"></div> </div> <span class="ml-3"><?php echo e($two); ?></span> </li> <!-- End Review Ratings --> <!-- Review Ratings --> <li class="d-flex align-items-center font-size-sm"> <?php ($one=\App\CentralLogics\Helpers::rating_count($product['id'],1)); ?> <span class="mr-3">1 star</span> <div class="progress flex-grow-1"> <div class="progress-bar" role="progressbar" style="width: <?php echo e($total==0?0:($one/$total)*100); ?>%;" aria-valuenow="<?php echo e($total==0?0:($one/$total)*100); ?>" aria-valuemin="0" aria-valuemax="100"></div> </div> <span class="ml-3"><?php echo e($one); ?></span> </li> <!-- End Review Ratings --> </ul> </div> <div class="col-12"> <hr> </div> <div class="col-4 pt-2"> <h4 class="border-bottom"><?php echo e($product['name']); ?></h4> <label class="badge badge-soft-success"><?php echo e(\App\CentralLogics\translate('total')); ?> <?php echo e(\App\CentralLogics\translate('stock')); ?> : <?php echo e($product['total_stock']); ?></label><br> <span><?php echo e(\App\CentralLogics\translate('price')); ?> : <span><?php echo e(Helpers::set_symbol($product['price'])); ?> / <?php echo e(\App\CentralLogics\translate(''.$product['unit'])); ?></span> </span><br> <span><?php echo e(\App\CentralLogics\translate('discount')); ?> : <span><?php echo e(Helpers::set_symbol(\App\CentralLogics\Helpers::discount_calculate($product,$product['price']))); ?></span> </span><br> <h4 class="border-bottom mt-2"> <?php echo e(\App\CentralLogics\translate('variations')); ?> </h4> <?php $__currentLoopData = json_decode($product['variations'],true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $variation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <span class="text-capitalize"> <?php echo e($variation['type']); ?> : <?php echo e(Helpers::set_symbol($variation['price'])); ?> ( Stock : <?php echo e($variation['stock']??0); ?> ) </span><br> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="col-8 pt-2 border-left"> <h4><?php echo e(\App\CentralLogics\translate('short')); ?> <?php echo e(\App\CentralLogics\translate('description')); ?> : </h4> <p><?php echo $product['description']; ?></p> </div> </div> </div> <!-- End Body --> </div> <!-- End Card --> <!-- Card --> <div class="card"> <!-- Table --> <div class="table-responsive datatable-custom"> <table id="datatable" class="table table-borderless table-thead-bordered table-nowrap card-table" data-hs-datatables-options='{ "columnDefs": [{ "targets": [0, 3, 6], "orderable": false }], "order": [], "info": { "totalQty": "#datatableWithPaginationInfoTotalQty" }, "search": "#datatableSearch", "entries": "#datatableEntries", "pageLength": 25, "isResponsive": false, "isShowPaging": false, "pagination": "datatablePagination" }'> <thead class="thead-light"> <tr> <th><?php echo e(\App\CentralLogics\translate('reviewer')); ?></th> <th><?php echo e(\App\CentralLogics\translate('review')); ?></th> <th><?php echo e(\App\CentralLogics\translate('date')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <a class="d-flex align-items-center" href="<?php echo e(route('admin.customer.view',[$review['user_id']])); ?>"> <div class="avatar avatar-circle"> <img class="avatar-img" width="75" height="75" onerror="this.src='<?php echo e(asset('public/assets/admin/img/160x160/img1.jpg')); ?>'" src="<?php echo e(asset('storage/app/public/profile/'.$review->customer->image)); ?>" alt="Image Description"> </div> <div class="ml-3"> <span class="d-block h5 text-hover-primary mb-0"><?php echo e($review->customer['f_name']." ".$review->customer['l_name']); ?> <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Verified Customer"></i></span> <span class="d-block font-size-sm text-body"><?php echo e($review->customer->email); ?></span> </div> </a> </td> <td> <div class="text-wrap" style="width: 18rem;"> <div class="d-flex mb-2"> <label class="badge badge-soft-info"> <?php echo e($review->rating); ?> <i class="tio-star"></i> </label> </div> <p> <?php echo e($review['comment']); ?> </p> </div> </td> <td> <?php echo e(date('d M Y H:i:s',strtotime($review['created_at']))); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <!-- End Table --> <!-- Footer --> <div class="card-footer"> <!-- Pagination --> <div class="row justify-content-center justify-content-sm-between align-items-sm-center"> <div class="col-12"> <?php echo $reviews->links(); ?> </div> </div> <!-- End Pagination --> </div> <!-- End Footer --> </div> <!-- End Card --> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script_2'); ?> <script> $('.ql-hidden').hide() </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/meumer25/painelestilopetshop.meupet.app/resources/views/admin-views/product/view.blade.php ENDPATH**/ ?>
Save
Cancel