ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
storage
/
framework
/
views
/
Viewing: 2b57c28b7e3a61527ac5db48ce5946ff.php
<?php $__env->startSection('title', translate('product_Preview')); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid text-start"> <div class="d-flex align-items-stretch justify-content-end flex-wrap gap-3 mb-3"> <div class="flex-grow-1"> <h2 class="h1 text-capitalize mb-1"> <?php echo e(translate('product_details')); ?> </h2> <p class="mb-0"> <?php echo e(translate('Created_At')); ?> <?php echo e(date('d M, Y', strtotime($product['created_at']))); ?> </p> </div> <?php if($product['added_by'] == 'seller' && ($product['request_status'] == 0 || $product['request_status'] == 1)): ?> <button class="btn btn-danger min-w-120" data-bs-toggle="modal" data-bs-target="#publishNoteModal"> <i class="fi fi-sr-cross-circle"></i> <?php echo e(translate('denied')); ?> </button> <?php endif; ?> <?php if($product['request_status'] == 0): ?> <button class="btn btn-success min-w-120 update-status" data-id="<?php echo e($product['id']); ?>" data-redirect-route="<?php echo e(route('admin.products.list', ['vendor', 'status' => $product['request_status']])); ?>" data-message="<?php echo e(translate('want_to_approve_this_product_request') . '?'); ?>" data-status="1"> <i class="fi fi-sr-check-circle"></i> <?php echo e(translate('approve')); ?> </button> <?php endif; ?> <?php if($product['added_by'] == 'seller' && $product['request_status'] == 2): ?> <div class="bg-danger bg-opacity-10 fs-12 px-2 py-1 rounded max-w-500"> <span> <span class="text-danger"> <?php echo e(translate('Denied_Note') . ':'); ?></span> <?php echo e(translate($product['denied_note'])); ?> </span> </div> <?php endif; ?> <?php $buttonText = $product['request_status'] == 1 ? translate('Edit') : translate('Edit_&_Approved'); ?> <a href="<?php echo e(route('admin.products.update', [$product['id']])); ?>" class="btn btn-primary min-w-120"><i class="fi fi-sr-pencil"></i><?php echo e($buttonText); ?></a> </div> <div class="row g-4"> <div class="col-12"> <div class="card card-top-bg-element"> <div class="card-body"> <div> <div class="d-flex flex-column flex-xl-row gap-4 h-100"> <div class="d-flex flex-column w-xl-280"> <div class="pd-img-wrap position-relative"> <div class="w-100 d-flex justify-content-center"> <div class="swiper-container quickviewSlider2 border rounded aspect-1 inline-size-100 max-w-280 position-relative"> <div class="position-absolute bottom-0 w-100 z-3"> <div class="p-3 d-flex justify-content-center align-items-center"> <?php if($productActive && $isActive): ?> <a href="<?php echo e(route('product', $product['slug'])); ?>" class="btn bg-primary--light text-primary p-2 rounded-50" target="_blank"> <i class="fi fi-rr-globe"></i> <span class="fs-12"><?php echo e(translate('View in Website')); ?></span> </a> <?php endif; ?> </div> </div> <div class="swiper-wrapper"> <?php $imageSources = ($product->product_type === 'physical' && !empty($product->color_image) && count($product->color_images_full_url) > 0) ? $product->color_images_full_url : $product->images_full_url; ?> <?php $__currentLoopData = $imageSources; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $imagePath = isset($photo['image_name']) ? getStorageImages(path: $photo['image_name'], type: 'backend-product') : getStorageImages(path: $photo, type: 'backend-product'); ?> <div class="swiper-slide position-relative rounded border aspect-1"> <div class="easyzoom easyzoom--overlay is-ready"> <a href="<?php echo e($imagePath); ?>"> <img class="h-100 aspect-1 rounded min-w-xl-280" alt="" src="<?php echo e($imagePath); ?>"> </a> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <div class="mt-3 user-select-none"> <div class="quickviewSliderThumb2 swiper-container position-relative active-border"> <div class="swiper-wrapper auto-item-width justify-content-start"> <?php $__currentLoopData = $imageSources; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $imagePath = isset($photo['image_name']) ? getStorageImages(path: $photo['image_name'], type: 'backend-product') : getStorageImages(path: $photo, type: 'backend-product'); ?> <div class="swiper-slide position-relative rounded border aspect-1" role="group"> <img class="aspect-1" alt="" src="<?php echo e($imagePath); ?>"> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="swiper-button-next swiper-quickview-button-next"></div> <div class="swiper-button-prev swiper-quickview-button-prev"></div> </div> </div> </div> <?php if($product->added_by=='seller'): ?> <?php if(isset($product->seller->shop)): ?> <div class="mt-4 bg-section h-100 p-3 rounded d-flex justify-content-center align-items-center text-center"> <div class=""> <h4 class="fs-14 mb-1 line-1" title="<?php echo e($product->seller->shop->name); ?>"><?php echo e($product->seller->shop->name); ?></h4> <?php $countTotalSellerProducts = count($totalSellerProducts ?? []); ?> <?php if($countTotalSellerProducts > 0): ?> <p class="fs-12 mb-2"> <?php echo e($countTotalSellerProducts); ?> <?php echo e($countTotalSellerProducts > 1 ? translate('products') : translate('product')); ?> </p> <?php else: ?> <p class="fs-12 mb-2">0 <?php echo e(translate('product')); ?></p> <?php endif; ?> <a href="<?php echo e(route('vendor-shop',['slug' => $product->seller->shop->slug])); ?>" target="_blank" type="button" class="btn btn-primary rounded-pill" > <?php echo e(translate('Visit_Shop')); ?> </a> </div> </div> <?php endif; ?> <?php else: ?> <div class="mt-4 bg-section h-100 p-3 rounded d-flex justify-content-center align-items-center text-center"> <div class=""> <h4 class="fs-14 mb-1 line-1" title="<?php echo e(getInHouseShopConfig(key: 'name')); ?>"> <?php echo e(getInHouseShopConfig(key: 'name')); ?> </h4> <?php $countTotalAdminProducts = count($totalAdminProducts ?? []); ?> <?php if($countTotalAdminProducts > 0): ?> <p class="fs-12 mb-2"> <?php echo e($countTotalAdminProducts); ?> <?php echo e($countTotalAdminProducts > 1 ? translate('products') : translate('product')); ?> </p> <?php else: ?> <p class="fs-12 mb-2">0 <?php echo e(translate('product')); ?></p> <?php endif; ?> <a href="<?php echo e(route('vendor-shop',['slug'=> getInHouseShopConfig(key:'slug')])); ?>" target="_blank" type="button" class="btn btn-primary rounded-pill"> <?php echo e(translate('Visit_Shop')); ?> </a> </div> </div> <?php endif; ?> </div> <div class="flex-grow-1"> <div class="d-block flex-grow-1 w-max-md-100"> <?php ($languages = getWebConfig(name: 'pnc_language')); ?> <?php ($defaultLanguage = 'en'); ?> <?php ($defaultLanguage = $languages[0]); ?> <div class="row align-items-baseline g-2"> <div class="col-xxl-8"> <div class="position-relative nav--tab-wrapper mb-2"> <ul class="nav nav-pills nav--tab lang_tab" id="pills-tab" role="tablist"> <?php ($isFirstLanguage=1); ?> <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="nav-item py-0 <?php echo e($isFirstLanguage == 1 ? 'ps-0' : ''); ?>" role="presentation"> <?php ($isFirstLanguage=0); ?> <a class="nav-link action-for-lang-tab <?php echo e($language == $defaultLanguage ? 'active' : ''); ?>" href="javascript:" data-bs-toggle="pill" role="tab" data-target-tab="#<?php echo e($language); ?>-page-form" data-target-group=".language-wise-details" id="<?php echo e($language); ?>-link"> <?php echo e(ucfirst(getLanguageName($language)) . '(' . strtoupper($language) . ')'); ?> </a> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <div class="nav--tab__prev"> <button type="button" class="btn btn-circle border-0 bg-white text-primary"> <i class="fi fi-sr-angle-left"></i> </button> </div> <div class="nav--tab__next"> <button type="button" class="btn btn-circle border-0 bg-white text-primary"> <i class="fi fi-sr-angle-right"></i> </button> </div> </div> </div> <div class="col-xxl-4"> <div class="d-flex flex-wrap gap-2 align-items-center justify-content-end"> <?php if($product['added_by'] == 'seller' && $product['request_status'] == 2): ?> <div class="d-flex justify-content-sm-end flex-wrap gap-2 pb-4"> <div> <span><?php echo e(translate('status') . ' : '); ?></span> <span class="badge text-bg-danger badge-danger"><?php echo e(translate('denied')); ?></span> </div> </div> <?php endif; ?> <div class="d-flex gap-3 flex-nowrap lh-1 badge text-bg-info bg-section shadow-sm px-3 fs-14 fw-bold justify-content-sm-end h-30 align-items-center"> <div class="review-hover position-relative cursor-pointer d-flex gap-2 align-items-center"> <i class="fi fi-sr-star text-warning rotate-45deg" style="--bs-warning-rgb: 254, 133, 81;"></i> <span> <?php echo e(count($product->rating) > 0 ? number_format($product->rating[0]->average, 2, '.', ' ') : 0); ?> </span> <div class="review-details-popup"> <h6 class="mb-2"><?php echo e(translate('rating')); ?></h6> <div class=""> <ul class="list-unstyled list-unstyled-py-2 d-flex flex-column gap-2 mb-0"> <?php ($total = $product->reviews->count()); ?> <li class="d-flex align-items-center fs-12"> <?php ($five = getRatingCount($product['id'], 5)); ?> <span class="<?php echo e(Session::get('direction') === 'rtl' ? 'ml-3' : 'me-3'); ?>"> <?php echo e(translate('5')); ?> <?php echo e(translate('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="<?php echo e(Session::get('direction') === 'rtl' ? 'me-3' : 'ml-3'); ?>"><?php echo e($five); ?></span> </li> <li class="d-flex align-items-center fs-12"> <?php ($four = getRatingCount($product['id'], 4)); ?> <span class="<?php echo e(Session::get('direction') === 'rtl' ? 'ml-3' : 'me-3'); ?>"><?php echo e(translate('4')); ?> <?php echo e(translate('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="<?php echo e(Session::get('direction') === 'rtl' ? 'me-3' : 'ml-3'); ?>"><?php echo e($four); ?></span> </li> <li class="d-flex align-items-center fs-12"> <?php ($three = getRatingCount($product['id'], 3)); ?> <span class="<?php echo e(Session::get('direction') === 'rtl' ? 'ml-3' : 'me-3'); ?>"><?php echo e(translate('3')); ?> <?php echo e(translate('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="<?php echo e(Session::get('direction') === 'rtl' ? 'me-3' : 'ml-3'); ?>"><?php echo e($three); ?></span> </li> <li class="d-flex align-items-center fs-12"> <?php ($two = getRatingCount($product['id'], 2)); ?> <span class="<?php echo e(Session::get('direction') === 'rtl' ? 'ml-3' : 'me-3'); ?>"><?php echo e(translate('2')); ?> <?php echo e(translate('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="<?php echo e(Session::get('direction') === 'rtl' ? 'me-3' : 'ml-3'); ?>"><?php echo e($two); ?></span> </li> <li class="d-flex align-items-center fs-12"> <?php ($one = getRatingCount($product['id'], 1)); ?> <span class="<?php echo e(Session::get('direction') === 'rtl' ? 'ml-3' : 'me-3'); ?>"><?php echo e(translate('1')); ?> <?php echo e(translate('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="<?php echo e(Session::get('direction') === 'rtl' ? 'me-3' : 'ml-3'); ?>"><?php echo e($one); ?></span> </li> </ul> </div> </div> </div> <span class="border-start py-2" style="border-color: var(--border-dark)"></span> <span class="text-dark"> <?php echo e(formatCompactNumber(value: $product->reviews->whereNotNull('comment')->count())); ?> <span class="fw-normal text-body"><?php echo e(translate('reviews')); ?></span> </span> </div> </div> </div> </div> <div class="tab-content mt-3" id="pills-tabContent"> <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if (count($product['translations'])) { $translate = []; foreach ($product['translations'] as $translation) { if ($translation->locale == $language && $translation->key == 'name') { $translate[$language]['name'] = $translation->value; } if ($translation->locale == $language && $translation->key == 'description') { $translate[$language]['description'] = $translation->value; } } } ?> <div class="tab-pane fade <?php echo e($language == $defaultLanguage ? 'show active' : ''); ?> language-wise-details" id="<?php echo e($language); ?>-page-form" aria-labelledby="<?php echo e($language); ?>-link"> <div class="d-flex gap-2 align-items-center mb-2"> <h2 class="h1 mb-0 text-dark"> <?php echo e($translate[$language]['name'] ?? $product['name']); ?> </h2> </div> <div class="position-relative bg-section rounded-10 p-2"> <div class="bg-white rounded p-3 text_editor_wrapper"> <div class="h-350 overflow-hidden"> <div class="rich-editor-html-content"> <?php echo $translate[$language]['description'] ?? $product['details']; ?> </div> </div> <div class="position-absolute w-100 blurry-div"> <div class="d-flex justify-content-center align-items-center h-100 p-3"> <button type="button" class="btn btn-outline-primary" data-bs-toggle="offcanvas" data-bs-target="#offcanvasProductDetails"> <?php echo e(translate('See_More')); ?> </button> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> </div> </div> <hr> <div class="d-flex gap-3 flex-column flex-lg-row overflow-wrap-anywhere"> <div class="bg-section rounded p-2 w-100-mobile min-w-180"> <div class="d-flex flex-column mb-1"> <div class="fw-normal text-capitalize fs-12 mb-1"><?php echo e(translate('Total_Qty_Sold')); ?> :</div> <h3 class="text-dark fs-18"><?php echo e($product['qtySum']); ?></h3> </div> <div class="d-flex flex-column"> <div class="fw-normal text-capitalize fs-12 mb-1"><?php echo e(translate('Total_Order_Amount')); ?> :</div> <h3 class="text-dark fs-18"> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $product['priceSum'] - $product['discountSum']))); ?> </h3> </div> </div> <div class="row gy-3 flex-grow-1"> <div class="col-sm-6 col-xl-4"> <h4 class="mb-3 text-capitalize"><?php echo e(translate('general_information')); ?></h4> <div class="pair-list"> <?php if($product?->product_type == 'physical'): ?> <?php if(isset($product->brand) && !empty($product->brand->default_name)): ?> <div> <span class="key"><?php echo e(translate('brand')); ?></span> <span>:</span> <span class="value"><?php echo e($product->brand->default_name); ?></span> </div> <?php endif; ?> <?php endif; ?> <?php if(isset($product->category) && !empty($product->category->default_name)): ?> <div> <span class="key"><?php echo e(translate('category')); ?></span> <span>:</span> <span class="value"> <?php echo e($product->category->default_name); ?> </span> </div> <?php endif; ?> <div> <span class="key text-capitalize"><?php echo e(translate('product_type')); ?></span> <span>:</span> <span class="value"><?php echo e(translate($product->product_type)); ?></span> </div> <?php if($product->product_type == 'physical'): ?> <div> <span class="key text-capitalize"><?php echo e(translate('product_unit')); ?></span> <span>:</span> <span class="value"><?php echo e($product['unit']); ?></span> </div> <div> <span class="key"><?php echo e(translate('current_Stock')); ?></span> <span>:</span> <span class="value"><?php echo e($product->current_stock); ?></span> </div> <?php endif; ?> <div> <span class="key"><?php echo e(translate('product_SKU')); ?></span> <span>:</span> <span class="value"><?php echo e($product->code); ?></span> </div> </div> </div> <div class="col-sm-6 col-xl-4"> <h4 class="mb-3 text-capitalize"><?php echo e(translate('price_information')); ?></h4> <div class="pair-list"> <div> <span class="key text-capitalize"><?php echo e(translate('unit_price')); ?></span> <span>:</span> <span class="value"> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $product->unit_price), currencyCode: getCurrencyCode())); ?> </span> </div> <?php if($product->product_type == 'physical'): ?> <div> <span class="key text-capitalize"><?php echo e(translate('shipping_cost')); ?></span> <span>:</span> <span class="value"> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $product->shipping_cost))); ?> <?php if($product->multiply_qty == 1): ?> (<?php echo e(translate('multiply_with_quantity')); ?>) <?php endif; ?> </span> </div> <?php endif; ?> <?php if(getProductPriceByType(product: $product, type: 'discount', result: 'value') > 0): ?> <div> <span class="key text-capitalize"><?php echo e(translate('discount')); ?></span> <span>:</span> <?php if($product?->clearanceSale?->discount_type == 'percentage' ? '-' : ''): ?> <?php endif; ?> <?php echo e(getProductPriceByType(product: $product, type: 'discount', result: 'string')); ?> </div> <?php endif; ?> <?php if($productWiseTax): ?> <?php $__currentLoopData = $product?->taxVats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $taxVat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div> <span class="key"><?php echo e($taxVat->tax->name); ?></span> <span>:</span> <span class="value"> <?php echo e($taxVat->tax->tax_rate); ?>% </span> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </div> <?php if(count($product->tags) > 0): ?> <div class="col-sm-6 col-xl-4"> <h4 class="mb-3"><?php echo e(translate('tags')); ?></h4> <div class="pair-list"> <div> <span class="value"> <?php $__currentLoopData = $product->tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($tag['tag']); ?> <?php if($key === count($product->tags) - 1): ?> <?php break; ?> <?php endif; ?> , <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </span> </div> </div> </div> <?php endif; ?> </div> </div> </div> </div> </div> <?php if(!empty($product['variation']) && count(json_decode($product['variation'])) > 0): ?> <div class="col-md-12"> <div class="card border-0"> <div class="card-body p-0"> <div class="table-responsive datatable-custom"> <table class="table table-borderless table-nowrap table-align-middle card-table w-100 text-start"> <thead class="thead-light thead-50 text-capitalize"> <tr> <th class="text-center"><?php echo e(translate('SKU')); ?></th> <th class="text-center text-capitalize"> <?php echo e(translate('variation_wise_price')); ?></th> <th class="text-center"><?php echo e(translate('stock')); ?></th> <th></th> </tr> </thead> <tbody> <?php $__currentLoopData = json_decode($product['variation']); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="text-center"> <span class="py-1"><?php echo e($value->sku); ?></span> </td> <td class="text-center"> <span class="py-1"><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $value->price), currencyCode: getCurrencyCode())); ?></span> </td> <td class="text-center"> <span class="py-1"><?php echo e($value->qty); ?></span> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> <?php endif; ?> <?php if(!empty($product->digitalVariation) && count($product->digitalVariation) > 0): ?> <div class="col-md-12"> <div class="card border-0"> <div class="card-body p-0"> <div class="table-responsive datatable-custom"> <table class="table table-borderless table-nowrap table-align-middle card-table w-100 text-start"> <thead class="thead-light thead-50 text-capitalize"> <tr> <th class="text-center"><?php echo e(translate('SL')); ?></th> <th class="text-center"><?php echo e(translate('Variation_Name')); ?></th> <th class="text-center"><?php echo e(translate('SKU')); ?></th> <th class="text-center"><?php echo e(translate('price')); ?></th> <?php if($product->digital_product_type == 'ready_product'): ?> <th class="text-center"><?php echo e(translate('Action')); ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php $__currentLoopData = $product->digitalVariation; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $variation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="text-center"> <?php echo e($key + 1); ?> </td> <td class="text-center text-capitalize"> <span class="py-1"><?php echo e($variation->variant_key ?? '-'); ?></span> </td> <td class="text-center"> <span class="py-1"><?php echo e($variation->sku); ?></span> </td> <td class="text-center"> <span class="py-1"> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $variation->price), currencyCode: getCurrencyCode())); ?> </span> </td> <?php if($product->digital_product_type == 'ready_product'): ?> <td class="text-center"> <span class="btn p-0 getDownloadFileUsingFileUrl" data-bs-toggle="tooltip" data-bs-title="<?php echo e(!is_null($variation->file_full_url['path']) ? translate('download') : translate('File_not_found')); ?>" data-file-path="<?php echo e($variation->file_full_url['path']); ?>"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/icons/download-green.svg')); ?>" alt=""> </span> </td> <?php endif; ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> <?php endif; ?> <div class="col-md-6"> <div class="card h-100"> <div class="card-header bg-primary bg-opacity-10"> <h3 class="text-dark mb-0"><?php echo e(translate('product_SEO_&_meta_data')); ?></h3> </div> <div class="card-body"> <div> <h4 class="mb-3 text-capitalize"> <?php echo e($product?->seoInfo?->title ?? ($product->meta_title ?? translate('meta_title_not_found') . ' ' . '!')); ?> </h4> </div> <p class="text-capitalize"> <?php echo e($product?->seoInfo?->description ?? ($product->meta_description ?? translate('meta_description_not_found') . ' ' . '!')); ?> </p> <?php if($product?->seoInfo?->image_full_url['path'] || $product->meta_image_full_url['path']): ?> <div class="d-flex flex-wrap gap-2"> <a href="<?php echo e(getStorageImages(path: $product?->seoInfo?->image_full_url['path'] ? $product?->seoInfo?->image_full_url : $product->meta_image_full_url, type: 'backend-product')); ?>" class="aspect-1 float-start overflow-hidden" data-lightbox="meta-thumbnail"> <img class="max-w-100px rounded" src="<?php echo e(getStorageImages(path: $product?->seoInfo?->image_full_url['path'] ? $product?->seoInfo?->image_full_url : $product->meta_image_full_url, type: 'backend-product')); ?>" alt="<?php echo e(translate('meta_image')); ?>"> </a> <div class="modal fade imgViewModal" id="imgViewModal-seo-<?php echo e($product->id); ?>" tabindex="-1" aria-labelledby="imgViewModal-seo-<?php echo e($product->id); ?>Label" role="dialog" aria-modal="true"> <div class="modal-dialog modal-lg modal-dialog-centered"> <div class="modal-content bg-transparent border-0"> <div class="modal-body pt-0"> <div class="imgView-slider owl-theme owl-carousel" dir="ltr"> <div class="imgView-item"> <div class="d-flex justify-content-between align-items-end"> <a href="<?php echo e(getStorageImages(path: $product?->seoInfo?->image_full_url['path'] ? $product?->seoInfo?->image_full_url : $product->meta_image_full_url, type: 'backend-product')); ?>" class="d-flex align-items-center gap-2 mb-2"> </a> <button type="button" class="btn btn-close p-1 border-0 fs-10" data-bs-dismiss="modal" aria-label="Close"> </button> </div> <div class="image-wrapper"> <div class="position-relative"> <div class="image-wrapper"> <img class="image" alt="" src="<?php echo e(getStorageImages(path: $product?->seoInfo?->image_full_url['path'] ? $product?->seoInfo?->image_full_url : $product->meta_image_full_url, type: 'backend-product')); ?>"> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <?php endif; ?> </div> </div> </div> <div class="col-md-6"> <div class="card h-100"> <div class="card-header bg-primary bg-opacity-10"> <h3 class="text-dark mb-0"><?php echo e(translate('product_video')); ?></h3> </div> <div class="card-body"> <div> <h4 class="mb-3 text-capitalize"> <?php echo e($product['video_provider'] . ' ' . translate('video_link')); ?> </h4> </div> <?php if($product['video_url']): ?> <a href="<?php echo e(str_contains($product->video_url, 'https://') || str_contains($product->video_url, 'http://') ? $product['video_url'] : 'javascript:'); ?>" target="_blank" class="text-primary <?php echo e(str_contains($product->video_url, 'https://') || str_contains($product->video_url, 'http://') ? '' : 'cursor-default'); ?>"> <?php echo e($product['video_url']); ?> </a> <?php else: ?> <span><?php echo e(translate('no_data_to_show') . ' ' . '!'); ?></span> <?php endif; ?> </div> </div> </div> <div class="col-12"> <div class="card"> <div class="table-responsive datatable-custom"> <table class="table table-hover table-borderless table-thead-bordered align-middle"> <thead class="text-capitalize"> <tr> <th><?php echo e(translate('SL')); ?></th> <th><?php echo e(translate('Review_ID')); ?></th> <th><?php echo e(translate('reviewer')); ?></th> <th><?php echo e(translate('rating')); ?></th> <th><?php echo e(translate('review')); ?></th> <th><?php echo e(translate('Reply')); ?></th> <th class="text-center"><?php echo e(translate('date')); ?></th> <th class="text-center"><?php echo e(translate('Status')); ?></th> <th class="text-center"><?php echo e(translate('action')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($review->customer)): ?> <tr> <td><?php echo e($reviews->firstItem() + $key); ?></td> <td class="text-center"> <?php echo e($review->id); ?> </td> <td> <a class="d-flex gap-2 align-items-center" href="<?php echo e(route('admin.customer.view', [$review['customer_id']])); ?>"> <div class="avatar rounded"> <img class="avatar-img aspect-1" src="<?php echo e(getStorageImages(path: $review->customer->image_full_url, type: 'backend-profile')); ?>" alt=""> </div> <div> <span class="d-block h5 text-hover-primary mb-0"> <?php echo e($review->customer['f_name'] . ' ' . $review->customer['l_name']); ?> <i class="fi fi-sr-shield-trust text-primary" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Verified Customer"></i> </span> <span class="d-block text-body"> <?php echo e($review->customer->email ?? ''); ?> </span> </div> </a> </td> <td> <div class="d-flex align-items-center gap-2 text-primary"> <i class="fi fi-sr-star"></i> <span><?php echo e($review->rating); ?></span> </div> </td> <td> <div class="text-wrap max-w-400 min-w-200"> <p class="line-2 max-w-250 word-break"> <?php echo e($review['comment']); ?> </p> <?php if(count($review->attachment_full_url) > 0): ?> <?php $__currentLoopData = $review->attachment_full_url; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $img): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a class="aspect-1 float-start overflow-hidden" href="<?php echo e(getStorageImages(path: $img, type: 'backend-product')); ?>" data-lightbox="review-gallery<?php echo e($review['id']); ?>"> <img class="p-2" width="60" height="60" src="<?php echo e(getStorageImages(path: $img, type: 'backend-product')); ?>" alt="<?php echo e(translate('review_image')); ?>"> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </td> <td> <div class="line-2 max-w-250 word-break"> <?php echo e($review?->reply?->reply_text ?? '-'); ?> </div> </td> <td class="text-center"> <?php echo e(date('d M Y H:i:s', strtotime($review['created_at']))); ?> </td> <td> <form action="<?php echo e(route('admin.reviews.status')); ?>" method="POST" id="reviews-status<?php echo e($review['id']); ?>-form"> <?php echo csrf_field(); ?> <input name="id" value="<?php echo e($review['id']); ?>" hidden> <label class="switcher mx-auto" for="reviews-status<?php echo e($review['id']); ?>"> <input class="switcher_input custom-modal-plugin" type="checkbox" value="1" name="status" id="reviews-status<?php echo e($review['id']); ?>" <?php echo e($review['status'] == 1 ? 'checked' : ''); ?> data-modal-type="input-change-form" data-modal-form="#reviews-status<?php echo e($review['id']); ?>-form" data-on-image="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/modal/customer-reviews-on.png')); ?>" data-off-image="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/modal/customer-reviews-off.png')); ?>" data-on-title="<?php echo e(translate('Want_to_Turn_ON_Customer_Reviews')); ?>" data-off-title="<?php echo e(translate('Want_to_Turn_OFF_Customer_Reviews')); ?>" data-on-message="<p><?php echo e(translate('if_enabled_anyone_can_see_this_review_on_the_user_website_and_customer_app')); ?></p>" data-off-message="<p><?php echo e(translate('if_disabled_this_review_will_be_hidden_from_the_user_website_and_customer_app')); ?></p>" data-on-button-text="<?php echo e(translate('turn_on')); ?>" data-off-button-text="<?php echo e(translate('turn_off')); ?>"> <span class="switcher_control"></span> </label> </form> </td> <td> <div class="d-flex gap-2 justify-content-center"> <div data-bs-toggle="modal" data-bs-target="#review-view-for-<?php echo e($review['id']); ?>"> <a class="btn btn-outline-info icon-btn" data-bs-title="<?php echo e(translate('View')); ?>" data-bs-toggle="tooltip"> <i class="fi fi-rr-eye"></i> </a> </div> <?php if(isset($review->product) && $review?->product?->added_by == 'admin'): ?> <div data-bs-toggle="modal" data-bs-target="#review-update-for-<?php echo e($review['id']); ?>"> <?php if($review?->reply): ?> <a class="btn btn-outline-primary icon-btn" data-bs-title="<?php echo e(translate('Update_Review')); ?>" data-bs-toggle="tooltip"> <i class="fi fi-sr-pencil"></i> </a> <?php else: ?> <div class="btn btn-outline-primary icon-btn" data-bs-title="<?php echo e(translate('Review_Reply')); ?>" data-bs-toggle="tooltip"> <i class="fi fi-sr-reply-all"></i> </div> <?php endif; ?> </div> <?php elseif($review?->product?->added_by == 'seller'): ?> <div> <a class="btn btn-outline-primary icon-btn" data-bs-title="<?php echo e(translate('Admin_can_not_reply_to_vendor_product_review')); ?>" data-bs-toggle="tooltip"> <?php if($review?->reply): ?> <i class="fi fi-sr-pencil"></i> <?php else: ?> <i class="fi fi-sr-reply-all"></i> <?php endif; ?> </a> </div> <?php else: ?> <div> <a class="btn btn-outline-primary icon-btn" data-bs-title="<?php echo e(translate('product_not_found')); ?>" data-bs-toggle="tooltip"> <?php if($review?->reply): ?> <i class="fi fi-sr-pencil"></i> <?php else: ?> <i class="fi fi-sr-reply-all"></i> <?php endif; ?> </a> </div> <?php endif; ?> </div> </td> </tr> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php $__currentLoopData = $reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($review->customer)): ?> <div class="modal fade" id="review-update-for-<?php echo e($review['id']); ?>" tabindex="-1" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header border-0 d-flex justify-content-end"> <button type="button" class="btn btn-circle border-0 fs-12 text-body bg-section2 shadow-none" style="--size: 2rem;" data-bs-dismiss="modal" aria-label="Close"> <i class="fi fi-sr-cross"></i> </button> </div> <form method="POST" action="<?php echo e(route('admin.reviews.add-review-reply')); ?>"> <?php echo csrf_field(); ?> <div class="modal-body pt-0"> <div class="d-flex flex-wrap align-items-center gap-3 mb-3"> <?php if(isset($review->product)): ?> <img src="<?php echo e(getStorageImages(path: $review->product->thumbnail_full_url, type: 'backend-product')); ?>" width="60" class="rounded aspect-1 border" alt="<?php echo e(translate('Product')); ?>"> <div class="flex-grow-1"> <h5 class="mb-1 fs-14 text-dark"><?php echo e($review->product['name']); ?></h5> <?php if($review['order_id']): ?> <span class="fs-12 text-muted"><?php echo e(translate('Order_ID')); ?> #<?php echo e($review['order_id']); ?></span> <?php endif; ?> </div> <?php else: ?> <span class="text-dark"><?php echo e(translate('product_not_found')); ?></span> <?php endif; ?> </div> <div class="bg-section p-3 rounded border mb-3"> <div class="d-flex gap-2 align-items-center mb-2"> <img class="h-30 aspect-1 rounded-circle" src="<?php echo e(getStorageImages(path: $review->customer?->image_full_url, type: 'backend-profile')); ?>" alt="<?php echo e(translate('Customer')); ?>"> <span class="fs-14 fw-medium text-dark"> <?php echo e($review->customer?->f_name ?? translate('Customer')); ?> </span> </div> <p class="mb-0 fs-14"><?php echo e($review['comment'] ?? translate('No comment found')); ?></p> </div> <?php if(count($review->attachment_full_url) > 0): ?> <div class="d-flex flex-wrap gap-2 mb-3"> <?php $__currentLoopData = $review->attachment_full_url; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $img): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e(getStorageImages(path: $img, type: 'backend-basic')); ?>" data-lightbox="review-gallery-modal<?php echo e($review['id']); ?>"> <img width="45" class="rounded aspect-1 border" src="<?php echo e(getStorageImages(path: $img, type: 'backend-basic')); ?>" alt="<?php echo e(translate('review_image')); ?>"> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?> <label class="form-label fw-bold"> <?php echo e(translate('Reply')); ?> </label> <input type="hidden" name="review_id" value="<?php echo e($review['id']); ?>"> <textarea class="form-control text-area-max-min" rows="3" name="reply_text" placeholder="<?php echo e(translate('Write_the_reply_of_the_product_review')); ?>..."><?php echo e($review?->reply?->reply_text ?? ''); ?></textarea> <div class="text-end mt-4"> <button type="submit" class="btn btn-primary"> <?php echo e($review?->reply?->reply_text ? translate('Update') : translate('submit')); ?> </button> </div> </div> </form> </div> </div> </div> <?php endif; ?> <?php echo $__env->make("admin-views.reviews._review-modal", ['review' => $review], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="table-responsive mt-4"> <div class="px-4 d-flex justify-content-lg-end"> <?php echo $reviews->links(); ?> </div> </div> <?php if(count($reviews) == 0): ?> <?php echo $__env->make( 'layouts.admin.partials._empty-state', ['text' => 'no_review_found'], ['image' => 'default'] , array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <?php endif; ?> </div> </div> </div> </div> <?php $languages = getWebConfig(name: 'pnc_language'); $defaultLanguage = $languages[0]; $translate = []; if (count($product['translations'])) { foreach ($product['translations'] as $translation) { if ($translation->key == 'name') { $translate[$translation->locale]['name'] = $translation->value; } if ($translation->key == 'description') { $translate[$translation->locale]['description'] = $translation->value; } } } ?> <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasProductDetails" aria-labelledby="offcanvasProductDetailsLabel" style="--bs-offcanvas-width: 750px;"> <div class="offcanvas-header d-block p-0"> <div class="bg-body mb-1 d-flex justify-content-between align-items-center gap-3 p-3"> <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <h3 id="product-name-heading-<?php echo e($language); ?>" class="mb-0 product-name-heading-title <?php echo e($language == $defaultLanguage ? '' : 'd-none'); ?>"> <?php echo e($translate[$defaultLanguage]['name'] ?? $product['name']); ?> </h3> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="position-relative nav--tab-wrapper"> <ul class="nav nav-pills nav--tab lang_tab" id="offcanvas-pills-tab" role="tablist"> <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="nav-item" role="presentation"> <a class="nav-link action-for-lang-tab-offcanvas <?php echo e($language == $defaultLanguage ? 'active' : ''); ?>" href="javascript:" data-name="<?php echo e($translate[$language]['name'] ?? $product['name']); ?>" data-name-field="#product-name-heading-<?php echo e($language); ?>" data-target-tab="#<?php echo e($language); ?>-offcanvas-form" data-target-group=".language-wise-offcanvas-details" data-bs-toggle="pill" role="tab" id="<?php echo e($language); ?>-link"> <?php echo e(ucwords(getLanguageName($language)) . ' (' . strtoupper($language) . ')'); ?> </a> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <div class="nav--tab__prev"> <button type="button" class="btn btn-circle border-0 bg-white text-primary"> <i class="fi fi-sr-angle-left"></i> </button> </div> <div class="nav--tab__next"> <button type="button" class="btn btn-circle border-0 bg-white text-primary"> <i class="fi fi-sr-angle-right"></i> </button> </div> </div> </div> <div class="offcanvas-body"> <div class="tab-content" id="offcanvas-pills-tabContent"> <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="tab-pane fade language-wise-offcanvas-details <?php echo e($language == $defaultLanguage ? 'show active' : ''); ?>" id="<?php echo e($language); ?>-offcanvas-form" aria-labelledby="<?php echo e($language); ?>-link" role="tabpanel"> <div> <div class="rich-editor-html-content"> <?php echo $translate[$language]['description'] ?? $product['details']; ?> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <div class="modal fade" id="publishNoteModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header border-0 d-flex justify-content-between align-items-center gap-3"> <h3 class="modal-title" id="exampleModalLabel"> <?php echo e(translate('deined_note')); ?> </h3> <button type="button" class="btn-close border-0 btn-circle bg-section2 shadow-none" data-bs-dismiss="modal" aria-label="Close"> </button> </div> <form class="form-group" action="<?php echo e(route('admin.products.deny', ['id' => $product['id']])); ?>" method="post" id="product-status-denied"> <?php echo csrf_field(); ?> <div class="modal-body"> <textarea class="form-control text-area-max-min" name="denied_note" rows="3" data-maxlength="100"></textarea> <div class="d-flex justify-content-end"> <span class="text-body-light"></span> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><?php echo e(translate('close')); ?> </button> <button type="button" class="btn btn-primary form-submit" data-message="<?php echo e(translate('want_to_reject_this_product_request')); ?>" data-redirect-route="<?php echo e(route('admin.products.list', ['vendor', 'status' => $product['request_status']])); ?>" data-form-id="product-status-denied"><?php echo e(translate('submit')); ?></button> </div> </form> </div> </div> </div> <span id="get-update-status-route" data-action="<?php echo e(route('admin.products.approve-status')); ?>"></span> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <script src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/js/admin/product-view.js')); ?>"></script> <script> 'use strict'; function updateBlurryDiv($wrapper) { let $textEditorContent = $wrapper.find('.rich-editor-html-content'); let $blurryDiv = $wrapper.find('.blurry-div'); if ($textEditorContent[0] && $textEditorContent[0].scrollHeight > 300) { $blurryDiv.show(); } else { $blurryDiv.hide(); } } $('.text_editor_wrapper').each(function () { updateBlurryDiv($(this)); }); $('.nav-link.action-for-lang-tab').on('click', function () { setTimeout(() => { $('.text_editor_wrapper:visible').each(function () { updateBlurryDiv($(this)); }); }, 300); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/pollibazaar/public_html/resources/views/admin-views/product/view.blade.php ENDPATH**/ ?>
Coded With 💗 by
0x6ick