shell bypass 403

GrazzMean Shell

Uname: Linux peekpos.com 6.8.0-1060-aws #63~22.04.1-Ubuntu SMP Tue Jun 30 02:32:53 UTC 2026 x86_64
Software: Apache
PHP version: 8.3.25 [ PHP INFO ] PHP os: Linux
Server Ip: 47.130.192.226
Your Ip: 10.1.31.86
User: www (1001) | Group: www (1001)
Safe Mode: OFF
Disable Function:
passthru,putenv,chroot,chgrp,chown,shell_exec,popen,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv

name : 097ed9e588081e7f660de52c71f088ef.php
<?php $__env->startSection('page_title'); ?>
    | <?php echo e(@$getitemdata->item_name); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="breadcrumb-sec">
        <div class="container">
            <div class="breadcrumb-sec-content">
                <nav class="text-dark d-flex breadcrumb-divider" aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li
                            class="breadcrumb-item <?php echo e(session()->get('direction') == '2' ? 'breadcrumb-item-rtl ps-0' : ''); ?>">
                            <a class="fw-bold text-dark" href="<?php echo e(route('home')); ?>"><?php echo e(trans('labels.home')); ?></a>
                        </li>
                        <li class="breadcrumb-item <?php echo e(session()->get('direction') == '2' ? 'breadcrumb-item-rtl ps-0' : ''); ?> text-primary fw-bold active"
                            aria-current="page"><?php echo e(trans('labels.product_detail')); ?></li>
                    </ol>
                </nav>
            </div>
        </div>
    </div>
    <section class="mt-5">
        <div class="container">
            <div class="item-details border-bottom pb-4 rounded-0">

                <?php if(!empty($getitemdata)): ?>
                    <div class="row mb-4">
                        <div class="col-lg-5 col-12 mb-3">
                            <div class="item-img-cover">
                                <div class="item-img show">
                                    <div class="card h-100 overflow-hidden rounded-0 border-0 position-relative">
                                        <!-- new big-view -->
                                        <div class="sp-loading"><img src="https://via.placeholder.com/1100x1220"
                                                alt=""><br>LOADING IMAGES</div>
                                        <div class="sp-wrap">
                                            <?php $__currentLoopData = @$getitemdata['item_images']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $firstimage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <a href="<?php echo e($firstimage->image_url); ?>"><img
                                                        src="<?php echo e($firstimage->image_url); ?>" alt=""></a>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </div>
                                        <!-- new big-view -->
                                    </div>

                                    <?php $__currentLoopData = @$getitemdata['item_images']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $firstimage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php
                                            $image_name = $firstimage->image_name;
                                            if ($key == 0) {
                                                break;
                                            }
                                        ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            </div>
                        </div>
                        <?php
                            if ($getitemdata['variation']->count() > 0) {
                                if ($getitemdata['top_deals'] == 1 && @helper::top_deals() != null) {
                                    if (@helper::top_deals()->offer_type == 1) {
                                        $price =
                                            $getitemdata['variation'][0]->price - @helper::top_deals()->offer_amount;
                                    } else {
                                        $price =
                                            $getitemdata['variation'][0]->price -
                                            $getitemdata['variation'][0]->price *
                                                (@helper::top_deals()->offer_amount / 100);
                                    }
                                    $original_price = $getitemdata['variation'][0]->price;
                                } else {
                                    $price = $getitemdata['variation'][0]->price;
                                    $original_price = $getitemdata['variation'][0]->original_price;
                                }
                            } else {
                                if ($getitemdata['top_deals'] == 1 && @helper::top_deals() != null) {
                                    if (@helper::top_deals()->offer_type == 1) {
                                        $price = $getitemdata['price'] - @helper::top_deals()->offer_amount;
                                    } else {
                                        $price =
                                            $getitemdata['price'] -
                                            $getitemdata['price'] * (@helper::top_deals()->offer_amount / 100);
                                    }

                                    $original_price = $getitemdata['price'];
                                } else {
                                    $price = $getitemdata['price'];
                                    $original_price = $getitemdata['original_price'];
                                }
                            }
                            $off = $original_price > 0 ? number_format(100 - ($price * 100) / $original_price, 1) : 0;
                        ?>

                        <div class="col-lg-7 col-12">
                            <div class="item-content">
                                <div class="item-heading">
                                    <div class="mb-1 item-offer-2" id="detail_off">
                                        <span class="badge <?php echo e($original_price > $price ? '' : 'd-none'); ?>" id="off">
                                            <?php echo e($off); ?>% <?php echo e(trans('labels.off')); ?>

                                        </span>
                                    </div>
                                    <div class="mb-1">
                                        <span class="text-muted fs-7 fw-500">
                                            <?php echo e(@$getitemdata['category_info']->category_name); ?>

                                        </span>
                                    </div>
                                    <div class="d-flex align-items-start align-items-center">
                                        <img class="col-1"
                                            <?php if(@$getitemdata->item_type == 1): ?> src="<?php echo e(helper::image_path('veg.svg')); ?>" <?php else: ?> src="<?php echo e(helper::image_path('nonveg.svg')); ?>" <?php endif; ?>
                                            alt="">
                                        <span
                                            class="item-title color-changer col-11 <?php echo e(session()->get('direction') == '2' ? 'me-2' : 'ms-2'); ?>"><?php echo e(@$getitemdata->item_name); ?></span>
                                    </div>
                                </div>


                                <div class="d-flex flex-wrap justify-content-between align-items-center my-2">
                                    
                                    <?php if($getitemdata['item_status'] != 2 && $getitemdata['is_deleted'] != 1): ?>
                                        <div class="d-flex" id="detail_price_section">
                                            <p class="text-dark fw-bold detail_item_price color-changer mb-0">
                                                <?php echo e(helper::currency_format($price)); ?></p>

                                            <span>
                                                <del class="text-muted fw-bold mx-1 <?php echo e($original_price > $price ? '' : 'd-none'); ?>"
                                                    id="detail_original_price">
                                                    <?php echo e(helper::currency_format($original_price)); ?>

                                                </del>
                                            </span>
                                        </div>
                                    <?php endif; ?>

                                    <?php if($getitemdata['has_variation'] == 2): ?>
                                        <?php if($getitemdata['item_status'] == 2 || $getitemdata['is_deleted'] == 1): ?>
                                            <h3 class="text-danger"><?php echo e(trans('labels.not_available')); ?></h3>
                                        <?php endif; ?>
                                    <?php else: ?>
                                        <span class="text-danger" id="detail_not_available"></span>
                                    <?php endif; ?>



                                    
                                    <?php if($getitemdata['item_status'] != 2 && $getitemdata['is_deleted'] != 1): ?>
                                        <?php if(helper::appdata()->review_approved_status == 1): ?>
                                            <a href="#review-tab">
                                                <div class="d-flex gap-2 align-items-center">
                                                    <p class="fs-7 mb-0"><i
                                                            class="text-warning fa-solid fa-star <?php echo e(session()->get('direction') == '2' ? 'ps-1' : 'pe-1'); ?>"></i><span
                                                            class="text-dark color-changer fw-500"><?php echo e(number_format(helper::getavgreviews($getitemdata['id'])->ratings_average, 1)); ?></span>
                                                    </p>
                                                    <span class="d-inline-block text-muted fw-500">(<?php echo e($totalreview); ?>

                                                        <?php echo e(trans('labels.review')); ?>)</span>
                                                </div>
                                            </a>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                </div>

                                <?php if(@helper::checkaddons('fake_view')): ?>
                                    <?php if(helper::appdata()->product_fake_view == 1): ?>
                                        <?php

                                            $var = ['{eye}', '{count}'];
                                            $newvar = [
                                                "<i class='fa-solid fa-eye'></i>",
                                                rand(
                                                    helper::appdata()->min_view_count,
                                                    helper::appdata()->max_view_count,
                                                ),
                                            ];

                                            $fake_view = str_replace(
                                                $var,
                                                $newvar,
                                                helper::appdata()->fake_view_message,
                                            );
                                        ?>
                                        <div class="d-flex gap-1 align-items-center blink_me mb-2">
                                            <p class="fw-600 text-success m-0"><?php echo $fake_view; ?></p>
                                        </div>
                                    <?php endif; ?>
                                <?php endif; ?>

                                
                                <div class="d-flex mb-3 pb-2 border-bottom">
                                    <?php if(@$getitemdata['item_status'] != 2 || @$getitemdata['is_deleted'] == 1): ?>
                                        <p id="detail_tax" class="responcive-tax text-left border-0 m-0"><span
                                                class="text-muted fs-7">
                                                <?php if(@$getitemdata['tax'] != null && @$getitemdata['tax'] != ''): ?>
                                                    <span class="text-danger fs-7">
                                                        <?php echo e(trans('labels.exclusive_taxes')); ?></span>
                                                <?php else: ?>
                                                    <span class="text-success fs-7">
                                                        <?php echo e(trans('labels.inclusive_taxes')); ?></span>
                                                <?php endif; ?>
                                            </span>
                                        </p>
                                    <?php endif; ?>
                                </div>

                                <div class="border-bottom pb-3 mb-3 <?php echo e(@$getitemdata['sku'] != null || @$getitemdata['stock_management'] == 1 ? 'd-block' : 'd-none'); ?>"
                                    id="detail_sku_stock">
                                    <div class="card bg-gray border-0 px-3 py-2 rounded-2">
                                        <?php if(@$getitemdata['sku'] != '' && @$getitemdata['sku'] != null): ?>
                                            <div class="sku-wrapper product_meta ">
                                                <span class="fs-7" id="sku_lable">
                                                    <span class="fw-bold text-muted"><?php echo e(trans('labels.sku')); ?></span>
                                                    <span class="text-muted fs-7" id="sku_value">:
                                                        <?php echo e(@$getitemdata['sku']); ?>

                                                    </span>
                                                </span>
                                            </div>
                                        <?php endif; ?>
                                        <div class="meta-content">
                                            <?php if(@$getitemdata['has_variation'] == 2 && @$getitemdata['stock_management'] == 1): ?>
                                                <div class="sku-wrapper product_meta" id="stock">
                                                    <span class="fs-7"><span
                                                            class="fw-bold text-muted"><?php echo e(trans('labels.stock')); ?>:</span>
                                                    </span>
                                                    <?php if(@$getitemdata['qty'] > 0): ?>
                                                        <span class="text-success fs-7"><?php echo e(@$getitemdata['qty']); ?>

                                                            <?php echo e(trans('labels.in_stock')); ?></span>
                                                    <?php else: ?>
                                                        <span
                                                            class="text-danger fs-7"><?php echo e(trans('labels.out_of_stock')); ?></span>
                                                    <?php endif; ?>
                                                </div>
                                            <?php elseif(@$getitemdata['has_variation'] == 1): ?>
                                                <div class="sku-wrapper product_meta" id="detail_stock">
                                                    <span class="fs-7"><span
                                                            class="fw-bold text-muted"><?php echo e(trans('labels.stock')); ?>:
                                                        </span></span>
                                                    <span class="fs-7" id="detail_out_of_stock1"></span>
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                        <?php if(helper::otherappdata()->estimated_delivery_on_off == 1): ?>
                                            <div class="sku-wrapper product_meta ">
                                                <span class="fs-7" id="sku_lable">
                                                    <span
                                                        class="fw-bold text-muted"><?php echo e(trans('labels.estimated_delivery')); ?></span>
                                                    <span class="text-muted fs-7">:
                                                        <?php echo e(helper::otherappdata()->days_of_estimated_delivery); ?>

                                                        <?php echo e(trans('labels.days')); ?>

                                                    </span>
                                                </span>
                                            </div>
                                        <?php endif; ?>

                                    </div>
                                </div>
                                <?php if($getitemdata['top_deals'] == 1 && @helper::top_deals() != null): ?>
                                    <div class="d-flex flex-column gap-2 align-items-sm-start align-items-center mb-4">
                                        <div class="text-dark col-12 d-flex color-changer gap-2 align-items-center">
                                            <i class="fa-regular fa-clock fs-6"></i>
                                            <div class="line-2 fw-bolder">Hurry up!</div>
                                        </div>
                                        <div class="countdown px-3 py-4 rounded-4 overflow-hidden">
                                            <div class="countdown-counter" id="countdown" class="mb-4"></div>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if(@$getitemdata->has_variation == 1): ?>
                                    <?php if(@$getitemdata->variants_json != '' && @$getitemdata->variants_json != null): ?>
                                        <?php if(@$getitemdata->has_variation == 1): ?>
                                            <div class="product-variations-wrapper mb-3">
                                                <div class="product_details" id="oldvariation">

                                                    <?php for($i = 0; $i < count(@$getitemdata->variants_json); $i++): ?>
                                                        <label class="fw-semibold form-label mb-2"
                                                            for=""><?php echo e(@$getitemdata->variants_json[$i]['variant_name']); ?></label>
                                                        <div class="d-flex flex-wrap gap-2 border-bottom pb-3 mb-3">
                                                            <?php for($t = 0; $t < count(@$getitemdata->variants_json[$i]['variant_options']); $t++): ?>
                                                                <?php
                                                                    $variant_option = explode(
                                                                        '-',
                                                                        str_replace(
                                                                            '',
                                                                            '',
                                                                            @$getitemdata->variants_json[$i][
                                                                                'variant_options'
                                                                            ][$t],
                                                                        ),
                                                                    );
                                                                ?>
                                                                <label
                                                                    class="checkbox-inline check<?php echo e(str_replace(' ', '_', @$getitemdata->variants_json[$i]['variant_name'])); ?><?php echo e(@$getitemdata->id); ?> <?php echo e($t == 0 ? 'active' : ''); ?>"
                                                                    id="check_<?php echo e(str_replace(' ', '_', @$getitemdata->variants_json[$i]['variant_name'])); ?><?php echo e(@$getitemdata->id); ?>-<?php echo e($variant_option[0]); ?>"
                                                                    for="<?php echo e(str_replace(' ', '_', @$getitemdata->variants_json[$i]['variant_name'])); ?><?php echo e(@$getitemdata->id); ?>-<?php echo e($variant_option[0]); ?>">
                                                                    <input type="checkbox" class="" name="skills"
                                                                        <?php echo e($t == 0 ? 'checked' : ''); ?>

                                                                        value="<?php echo e(@$getitemdata->variants_json[$i]['variant_options'][$t]); ?>"
                                                                        id="<?php echo e(str_replace(' ', '_', @$getitemdata->variants_json[$i]['variant_name'])); ?><?php echo e(@$getitemdata->id); ?>-<?php echo e($variant_option[0]); ?>">
                                                                    <?php echo e(@$getitemdata->variants_json[$i]['variant_options'][$t]); ?>

                                                                </label>
                                                            <?php endfor; ?>
                                                        </div>
                                                    <?php endfor; ?>
                                                </div>
                                            </div>
                                        <?php endif; ?>
                                    <?php endif; ?>

                                    <?php if(count(@$getitemdata['extras']) > 0): ?>
                                        <div class="woo_pr_color flex_inline_center my-3 border-bottom pb-3">
                                            <div class="woo_colors_list text-left">
                                                <span id="extras">
                                                    <h6 class="extra-title color-changer fw-semibold">
                                                        <?php echo e(trans('labels.extras')); ?></h6>
                                                    <ul class="list-unstyled extra-food m-0">
                                                        <div id="pricelist">
                                                            <?php $__currentLoopData = @$getitemdata['extras']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $extras): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                <li class="mb-1">
                                                                    <div
                                                                        class="form-check w-100 m-0 p-0 d-flex align-items-center gap-2">
                                                                        <input
                                                                            class="form-check-input m-0 p-0 extras_Checkbox"
                                                                            type="checkbox" name="addons[]"
                                                                            id="addons_<?php echo e($key); ?>"
                                                                            extras_name="<?php echo e($extras->name); ?>"
                                                                            value="<?php echo e($extras->id); ?>"
                                                                            price="<?php echo e($extras->price); ?>">
                                                                        <label
                                                                            class="form-check-label m-0 cursor-pointer p-0 w-100 d-flex justify-content-between gap-2 align-items-center"
                                                                            for="addons_<?php echo e($key); ?>">
                                                                            <p class="fs-7 m-0 color-changer">
                                                                                <?php echo e($extras->name); ?>

                                                                            </p>
                                                                            <span class="fs-7">
                                                                                <?php echo e(helper::currency_format($extras->price)); ?>

                                                                            </span>
                                                                        </label>
                                                                    </div>
                                                                </li>
                                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                        </div>
                                                    </ul>
                                                </span>
                                            </div>
                                        </div>
                                    <?php endif; ?>

                                <?php endif; ?>
                                <input type="hidden" name="detail_slug" id="detail_slug"
                                    value="<?php echo e(@$getitemdata->slug); ?>">
                                <input type="hidden" name="detail_item_name" id="detail_item_name"
                                    value="<?php echo e(@$getitemdata->item_name); ?>">
                                <input type="hidden" name="detail_item_id" id="detail_item_id"
                                    value="<?php echo e(@$getitemdata->id); ?>">
                                <input type="hidden" name="detail_item_type" id="detail_item_type"
                                    value="<?php echo e(@$getitemdata->item_type); ?>">
                                <input type="hidden" name="detail_image_name" id="detail_image_name"
                                    value="<?php echo e(@$getitemdata['item_images'][0]->image_name); ?>">
                                <input type="hidden" name="detail_taxval" id="detail_taxval"
                                    value="<?php echo e(@$getitemdata->tax); ?>">
                                <input type="hidden" name="detail_item_price" id="detail_item_price"
                                    value="<?php echo e(@$price); ?>">
                                <input type="hidden" name="detail_variant_name" id="detail_variant_name">

                                <input type="hidden" name="detail_variant_id" id="detail_variant_id">
                                <input type="hidden" name="addonstotal" id="addonstotal" value="0">
                                <input type="hidden" name="detail_subtotal" id="detail_subtotal"
                                    value="<?php echo e($price); ?>">
                                <input type="hidden" name="login_required" id="login_required"
                                    value="<?php echo e(helper::appdata()->login_required); ?>">
                                <input type="hidden" name="checklogin" id="checklogin"
                                    value="<?php echo e(Auth::user() && Auth::user()->type == 2); ?>">
                                <input type="hidden" name="customer_login" id="customer_login"
                                    value="<?php echo e(App\Models\SystemAddons::where('unique_identifier', 'customer_login')->first()); ?>">

                                
                                <?php if(@helper::appdata()->online_order == 1): ?>
                                    <div class="border-bottom pb-3 mb-3">
                                        <div class="row g-xl-3 g-2 align-items-center" id="detail_plus-minus">
                                            <div class="col-xl-3 col-lg-6 col-md-3 col-6">
                                                <div class="d-flex align-items-center gap-1">
                                                    <div>
                                                        <p class="m-0 d-sm-block color-changer d-none">
                                                            <?php echo e(trans('labels.quantity')); ?>

                                                        </p>
                                                    </div>
                                                    <div class="btn item-quantity w-100 py-2 rounded-3">
                                                        <button
                                                            class="btn btn-sm item-quantity-minus mb-0 detail_item_quantity"
                                                            id="minus" data-type="minus"
                                                            data-item_id="<?php echo e(@$getitemdata->id); ?>"
                                                            onclick="detailchangeqty($(this).attr('data-item_id'),'minus')"
                                                            value="minus value">
                                                            <i class="fa-solid fa-minus fs-10 color-changer"></i>
                                                        </button>
                                                        <input
                                                            class="item-quantity-input color-changer mb-0 detail_item_qty"
                                                            name="detail_item_qty" value="1" readonly="">
                                                        <button
                                                            class="btn btn-sm item-quantity-plus mb-0 detail_item_quantity"
                                                            id="plus" data-item_id="<?php echo e(@$getitemdata->id); ?>"
                                                            onclick="detailchangeqty($(this).attr('data-item_id'),'plus')"
                                                            data-type="plus" value="plus value">
                                                            <i class="fa-solid fa-plus fs-10 color-changer"></i>
                                                        </button>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php if(@helper::checkaddons('whatsapp_message')): ?>
                                                <?php if(
                                                    @whatsapp_helper::whatsapp_message_config()->whatsapp_number != '' &&
                                                        @whatsapp_helper::whatsapp_message_config()->whatsapp_number != null): ?>
                                                    <div class="col-xl-3 col-lg-6 col-md-3 col-6">
                                                        <a href="https://api.whatsapp.com/send?phone=<?php echo e(@whatsapp_helper::whatsapp_message_config()->whatsapp_number); ?>&text=<?php echo e(trans('labels.item_inquiry_msg') . $getitemdata->item_name); ?>"
                                                            class="btn btn-danger btn-enquir rounded-0 w-100"
                                                            id="enquiries" target="_blank">
                                                            <span class="px-1 fs-6 d-flex align-items-center gap-1">
                                                                <i class="fa-brands fa-whatsapp"></i>
                                                                <?php echo e(trans('labels.enquiries')); ?>

                                                            </span>
                                                        </a>
                                                    </div>
                                                <?php endif; ?>
                                            <?php endif; ?>
                                            <div class="col-xl-3 col-lg-6 col-md-3 col-6">
                                                <button
                                                    class="btn btn-outline-primary btn-lg w-100 m-0 fs-6 d-flex gap-3 justify-content-center align-items-center add_to_cart <?php echo e($getitemdata['item_status'] != 2 && $getitemdata['is_deleted'] != 1 ? '' : 'disabled'); ?>"
                                                    id="addcart"
                                                    onclick="detailaddtocart('<?php echo e(URL::to('addtocart')); ?>',0)">
                                                    <?php echo e(trans('labels.add_to_cart')); ?>

                                                    <div class="loader d-none add_to_cart_loader"></div>
                                                </button>
                                            </div>
                                            <div class="col-xl-3 col-lg-6 col-md-3 col-6">
                                                <?php if(@helper::checkaddons('customer_login')): ?>
                                                    <?php if(helper::appdata()->login_required == 1): ?>
                                                        <button
                                                            class="btn btn-primary btn-lg w-100 m-0 fs-6 d-flex gap-3 justify-content-center align-items-center buy_now"
                                                            id="buynow"
                                                            <?php if(helper::appdata()->is_checkout_login_required == 1): ?> onclick="showlogin()" <?php else: ?> onclick="detailaddtocart('<?php echo e(URL::to('addtocart')); ?>','1')" <?php endif; ?>>
                                                            <?php echo e(trans('labels.buy_now')); ?>

                                                            <div class="loader d-none buy_now_loader"></div>
                                                        </button>
                                                    <?php else: ?>
                                                        <button
                                                            class="btn btn-primary btn-lg w-100 m-0 fs-6 d-flex gap-3 justify-content-center align-items-center buy_now"
                                                            id="buynow"
                                                            onclick="detailaddtocart('<?php echo e(URL::to('addtocart')); ?>',1)">
                                                            <?php echo e(trans('labels.buy_now')); ?>

                                                            <div class="loader d-none buy_now_loader"></div>
                                                        </button>
                                                    <?php endif; ?>
                                                <?php else: ?>
                                                    <button
                                                        class="btn btn-primary btn-lg w-100 m-0 fs-6 d-flex gap-3 justify-content-center align-items-center buy_now"
                                                        id="buynow"
                                                        onclick="detailaddtocart('<?php echo e(URL::to('addtocart')); ?>',1)">
                                                        <?php echo e(trans('labels.buy_now')); ?>

                                                        <div class="loader d-none buy_now_loader"></div>
                                                    </button>
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                
                                <div class="d-flex flex-wrap mt-3 align-items-center">
                                    <div class="col-6">
                                        <?php if(@helper::checkaddons('customer_login')): ?>
                                            <?php if(helper::appdata()->login_required == 1): ?>
                                                <div class="wishlist">
                                                    <?php if(@$getitemdata->is_favorite == 1): ?>
                                                        <a class="text-dark color-changer fs-7 fw-600 d-flex gap-1 align-items-center"
                                                            <?php if(Auth::user() && Auth::user()->type == 2): ?> href="javascript:void(0)" onclick="managefavorite('<?php echo e(@$getitemdata->id); ?>',0,'<?php echo e(URL::to('/managefavorite')); ?>')" <?php else: ?> href="<?php echo e(URL::to('/login')); ?>" <?php endif; ?>>
                                                            <i class="fa-solid fa-heart fs-5"></i>
                                                            <?php echo e(trans('labels.remove_wishlist')); ?>

                                                        </a>
                                                    <?php else: ?>
                                                        <a class="text-dark color-changer fs-7 fw-600 d-flex gap-1 align-items-center"
                                                            <?php if(Auth::user() && Auth::user()->type == 2): ?> href="javascript:void(0)" onclick="managefavorite('<?php echo e(@$getitemdata->id); ?>',1,'<?php echo e(URL::to('/managefavorite')); ?>')" <?php else: ?> href="<?php echo e(URL::to('/login')); ?>" <?php endif; ?>>
                                                            <i class="fa-regular fa-heart fs-5"></i>
                                                            <?php echo e(trans('labels.add_wishlist')); ?>

                                                        </a>
                                                    <?php endif; ?>
                                                </div>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    </div>

                                    <div class="col-6">
                                        <div class="d-flex align-items-center justify-content-end gap-2">
                                            <?php if(@helper::appdata()->google_review != '' && @helper::appdata()->google_review != null): ?>
                                                <a href="<?php echo e(@helper::appdata()->google_review); ?>" class="prod-social"
                                                    tooltip="Google Review" target="_blank">
                                                    <i class="fa-solid fa-star text-white fs-8"></i>
                                                </a>
                                            <?php endif; ?>
                                            <a href="tel:<?php echo e(@helper::appdata()->mobile); ?>" class="prod-social"
                                                tooltip="Call">
                                                <i class="fa-solid fa-phone text-white fs-8"></i>
                                            </a>
                                            <?php if($getitemdata->video_url != '' && $getitemdata->video_url != null): ?>
                                                <a href="<?php echo e($getitemdata->video_url); ?>" tooltip="Video"
                                                    class="rounded-circle prod-social fs-7" id="btn-video"
                                                    target="_blank">
                                                    <i class="fa-regular fa-video fs-8 text-white"></i></a>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                                <?php echo $__env->make('web.sevirce-trusted', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>
                        </div>
                    </div>

                    
                    <div class="product-view" id="review-tab">
                        <ul class="nav nav-pills py-3 mb-4 gap-2 border-bottom border-top" id="pills-tab" role="tablist">
                            <li class="nav-item" role="presentation">
                                <a class="nav-link active py-2" aria-current="page" data-bs-toggle="pill"
                                    data-bs-target="#pills-description" href="javascript:void(0)" aria-selected="true"
                                    role="tab" tabindex="-1"><?php echo e(trans('labels.description')); ?></a>
                            </li>
                            <?php if(@helper::checkaddons('customer_login')): ?>
                                <?php if(@helper::checkaddons('product_review')): ?>
                                    <?php if(helper::appdata()->review_approved_status == 1): ?>
                                        <li class="nav-item" role="presentation">
                                            <a class="nav-link py-2" href="javascript:void(0)" data-bs-toggle="pill"
                                                data-bs-target="#pills-review" aria-selected="false" role="tab"
                                                tabindex="-1"><?php echo e(trans('labels.review')); ?></a>
                                        </li>
                                    <?php endif; ?>
                                <?php endif; ?>
                            <?php endif; ?>
                            <?php if(@helper::checkaddons('product_inquiry')): ?>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link py-2" aria-current="page" href="javascript:void(0)"
                                        data-bs-toggle="pill" data-bs-target="#pills-product_inquiry"
                                        aria-selected="true" role="tab"
                                        tabindex="-1"><?php echo e(trans('labels.product_inquiry')); ?></a>
                                </li>
                            <?php endif; ?>
                            <?php if(@helper::checkaddons('question_answer')): ?>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link py-2" aria-current="page" href="javascript:void(0)"
                                        data-bs-toggle="pill" aria-selected="true" role="tab" tabindex="-1"
                                        data-bs-target="#pills-quastions"><?php echo e(trans('labels.quastions_ans')); ?></a>
                                </li>
                            <?php endif; ?>
                        </ul>
                    </div>
                    <div class="tab-content" id="pills-tabContent">
                        <div class="tab-pane fade active show" id="pills-description" role="tabpanel"
                            aria-labelledby="pills-description-tab">
                            <?php if(!empty(@$getitemdata->item_description)): ?>
                                <div class="row mt-2">
                                    <div class="col-auto">
                                        <div class="item-description">
                                            <h4 class="mb-4 color-changer"><?php echo e(trans('labels.description')); ?></h4>
                                            <p class="text-muted mb-2"><?php echo @$getitemdata->item_description; ?></p>
                                        </div>
                                    </div>
                                </div>
                            <?php endif; ?>
                        </div>
                        <?php if(@helper::checkaddons('customer_login')): ?>
                            <?php if(@helper::checkaddons('product_review')): ?>
                                <?php if(helper::appdata()->review_approved_status == 1): ?>
                                    <div class="tab-pane fade" id="pills-review" role="tabpanel"
                                        aria-labelledby="pills-review-tab">
                                        <div class="row gy-4 gy-md-5 g-4 g-xxl-5">
                                            <div class="col-md-12 col-lg-7 col-xxl-6">
                                                <div>
                                                    <!-- Customer rating -->
                                                    <h3 class="heading mb-4 fw-bold color-changer text-dark text-truncate">
                                                        <?php echo e(trans('labels.customer_rating')); ?>

                                                    </h3>
                                                    <div class="card border-0 bg-gray p-4 mb-4 rounded-4">
                                                        <div class="row g-3 align-items-center">
                                                            <!-- Rating info -->
                                                            <div class="col-md-3">
                                                                <div class="text-center">
                                                                    <!-- Info -->
                                                                    <h2 class="mb-0 fw-bold text-dark color-changer">
                                                                        <i class="fa-solid fa-star text-warning"></i>
                                                                        <?php echo e(number_format($averagerating, 1)); ?>

                                                                    </h2>
                                                                    <p class="mb-2 text-muted">
                                                                        <?php echo e(trans('labels.based_on')); ?>

                                                                        <?php echo e($totalreview); ?> <?php echo e(trans('labels.review')); ?>

                                                                    </p>
                                                                </div>
                                                            </div>

                                                            <!-- Progress-bar START -->
                                                            <div class="col-md-9">
                                                                <div class="card-body p-0">
                                                                    <div class="row gx-3 g-2 align-items-center">
                                                                        <div
                                                                            class="d-flex align-items-center justify-content-between">
                                                                            <div class="d-flex align-items-center">
                                                                                <i
                                                                                    class="fa-solid fa-star text-warning"></i>
                                                                                <span
                                                                                    class="px-1 cp color-changer">5</span>
                                                                            </div>
                                                                            <!-- Progress bar and Rating -->
                                                                            <div class="mt-xs-0 mx-3 w-100">
                                                                                <?php
                                                                                    if ($totalreview != 0) {
                                                                                        $five =
                                                                                            ($fivestaraverage /
                                                                                                $totalreview) *
                                                                                            100;
                                                                                    } else {
                                                                                        $five = 0;
                                                                                    }
                                                                                ?>
                                                                                <!-- Progress item -->
                                                                                <div
                                                                                    class="progress progress-sm bg-warning <?php echo e($five != 0 ? '' : 'bg-opacity-15'); ?>">
                                                                                    <div class="progress-bar bg-warning"
                                                                                        role="progressbar"
                                                                                        style="width: <?php echo e($five); ?>%"
                                                                                        aria-valuenow="<?php echo e($five); ?>"
                                                                                        aria-valuemin="0"
                                                                                        aria-valuemax="100">
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <!-- Percentage -->
                                                                            <div
                                                                                class="<?php echo e(session()->get('direction') == '2' ? 'text-start' : 'text-end'); ?> col-custom">
                                                                                <span
                                                                                    class="h6 fw-semibold mb-0 color-changer"><?php echo e(number_format($five, 1)); ?>%</span>
                                                                            </div>
                                                                        </div>
                                                                        <!-- Progress bar and Rating -->


                                                                        <div
                                                                            class="d-flex align-items-center justify-content-between">
                                                                            <div class="d-flex align-items-center">
                                                                                <i
                                                                                    class="fa-solid fa-star text-warning"></i>
                                                                                <span
                                                                                    class="px-1 cp color-changer">4</span>
                                                                            </div>
                                                                            <!-- Progress bar and Rating -->
                                                                            <div class="mt-xs-0 mx-3 w-100">
                                                                                <?php
                                                                                    if ($totalreview != 0) {
                                                                                        $four =
                                                                                            ($fourstaraverage /
                                                                                                $totalreview) *
                                                                                            100;
                                                                                    } else {
                                                                                        $four = 0;
                                                                                    }
                                                                                ?>
                                                                                <!-- Progress item -->
                                                                                <div
                                                                                    class="progress progress-sm bg-warning <?php echo e($four != 0 ? '' : 'bg-opacity-15'); ?>">

                                                                                    <div class="progress-bar bg-warning"
                                                                                        role="progressbar"
                                                                                        style="width: <?php echo e($four); ?>%"
                                                                                        aria-valuenow="<?php echo e($four); ?>"
                                                                                        aria-valuemin="0"
                                                                                        aria-valuemax="100">
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <!-- Percentage -->
                                                                            <div
                                                                                class="<?php echo e(session()->get('direction') == '2' ? 'text-start' : 'text-end'); ?> col-custom">
                                                                                <span
                                                                                    class="h6 fw-semibold mb-0 color-changer"><?php echo e(number_format($four, 1)); ?>%</span>
                                                                            </div>
                                                                        </div>

                                                                        <div
                                                                            class="d-flex align-items-center justify-content-between">
                                                                            <div class="d-flex align-items-center">
                                                                                <i
                                                                                    class="fa-solid fa-star text-warning"></i>
                                                                                <span
                                                                                    class="px-1 cp color-changer">3</span>
                                                                            </div>
                                                                            <!-- Progress bar and Rating -->
                                                                            <div class="mt-xs-0 mx-3 w-100">
                                                                                <?php
                                                                                    if ($totalreview != 0) {
                                                                                        $three =
                                                                                            ($threestaraverage /
                                                                                                $totalreview) *
                                                                                            100;
                                                                                    } else {
                                                                                        $three = 0;
                                                                                    }
                                                                                ?>
                                                                                <!-- Progress item -->
                                                                                <div
                                                                                    class="progress progress-sm bg-warning <?php echo e($three != 0 ? '' : 'bg-opacity-15'); ?>">
                                                                                    <div class="progress-bar bg-warning"
                                                                                        role="progressbar"
                                                                                        style="width: <?php echo e($three); ?>%"
                                                                                        aria-valuenow="<?php echo e($three); ?>"
                                                                                        aria-valuemin="0"
                                                                                        aria-valuemax="100">
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <!-- Percentage -->
                                                                            <div
                                                                                class="<?php echo e(session()->get('direction') == '2' ? 'text-start' : 'text-end'); ?> col-custom">
                                                                                <span
                                                                                    class="h6 fw-semibold mb-0 color-changer"><?php echo e(number_format($three, 1)); ?>%</span>
                                                                            </div>
                                                                        </div>



                                                                        <div
                                                                            class="d-flex align-items-center justify-content-between">
                                                                            <div class="d-flex align-items-center">
                                                                                <i
                                                                                    class="fa-solid fa-star text-warning"></i>
                                                                                <span
                                                                                    class="px-1 cp color-changer">2</span>
                                                                            </div>
                                                                            <!-- Progress bar and Rating -->
                                                                            <div class="mt-xs-0 mx-3 w-100">
                                                                                <?php
                                                                                    if ($totalreview != 0) {
                                                                                        $two =
                                                                                            ($twostaraverage /
                                                                                                $totalreview) *
                                                                                            100;
                                                                                    } else {
                                                                                        $two = 0;
                                                                                    }
                                                                                ?>
                                                                                <!-- Progress item -->
                                                                                <div
                                                                                    class="progress progress-sm bg-warning <?php echo e($two != 0 ? '' : 'bg-opacity-15'); ?>">
                                                                                    <div class="progress-bar bg-warning"
                                                                                        role="progressbar"
                                                                                        style="width: <?php echo e($two); ?>%"
                                                                                        aria-valuenow="<?php echo e($two); ?>"
                                                                                        aria-valuemin="0"
                                                                                        aria-valuemax="100">
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <!-- Percentage -->
                                                                            <div
                                                                                class="<?php echo e(session()->get('direction') == '2' ? 'text-start' : 'text-end'); ?> col-custom">
                                                                                <span
                                                                                    class="h6 fw-semibold mb-0 color-changer"><?php echo e(number_format($two, 1)); ?>%</span>
                                                                            </div>
                                                                        </div>


                                                                        <div
                                                                            class="d-flex align-items-center justify-content-between">
                                                                            <div class="d-flex align-items-center">
                                                                                <i
                                                                                    class="fa-solid fa-star text-warning"></i>
                                                                                <span
                                                                                    class="px-1 cp color-changer">1</span>
                                                                            </div>
                                                                            <!-- Progress bar and Rating -->
                                                                            <div class="mt-xs-0 mx-3 w-100">
                                                                                <?php
                                                                                    if ($totalreview != 0) {
                                                                                        $one =
                                                                                            ($onestaraverage /
                                                                                                $totalreview) *
                                                                                            100;
                                                                                    } else {
                                                                                        $one = 0;
                                                                                    }
                                                                                ?>
                                                                                <!-- Progress item -->
                                                                                <div
                                                                                    class="progress progress-sm bg-warning <?php echo e($one != 0 ? '' : 'bg-opacity-15'); ?>">
                                                                                    <div class="progress-bar bg-warning"
                                                                                        role="progressbar"
                                                                                        style="width: <?php echo e($one); ?>%"
                                                                                        aria-valuenow="<?php echo e($one); ?>"
                                                                                        aria-valuemin="0"
                                                                                        aria-valuemax="100">
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <!-- Percentage -->
                                                                            <div
                                                                                class="<?php echo e(session()->get('direction') == '2' ? 'text-start' : 'text-end'); ?> col-custom">
                                                                                <span
                                                                                    class="h6 fw-semibold mb-0 color-changer"><?php echo e(number_format($one, 1)); ?>%</span>
                                                                            </div>
                                                                        </div>

                                                                    </div> <!-- Row END -->
                                                                </div>
                                                            </div>
                                                            <!-- Progress-bar END -->
                                                        </div>
                                                    </div>
                                                    <!-- Customer rating -->
                                                    <?php if(@helper::checkaddons('customer_login')): ?>
                                                        <?php if(@helper::checkaddons('product_review')): ?>
                                                            <?php if(helper::appdata()->login_required == 1): ?>
                                                                <?php if($orders > 0 && $rattingcount == 0): ?>
                                                                    <div class="d-grid justify-items-center mt-4 mb-3">
                                                                        <button class="btn btn-primary px-4"
                                                                            onclick="postreview()"
                                                                            data-bs-toggle="modal"><?php echo e(trans('labels.write_review')); ?></button>
                                                                    </div>
                                                                <?php endif; ?>
                                                            <?php endif; ?>
                                                        <?php endif; ?>
                                                    <?php endif; ?>
                                                </div>
                                            </div>

                                            <div class="col-md-12 col-lg-5 col-xxl-6">
                                                <div class="pt-4 p-md-0">

                                                    <!-- Customer Review -->
                                                    <h3 class="heading mb-3 fw-bold text-dark color-changer text-truncate">
                                                        <?php echo e(trans('labels.customer_reviews')); ?>

                                                    </h3>

                                                    <?php if($testimonials->count() == 0): ?>
                                                        <div class="d-grid justify-items-center mt-5 mb-3">
                                                            <p class="color-changer"><?php echo e(trans('labels.no_reviews')); ?></p>
                                                        </div>
                                                    <?php else: ?>
                                                        <?php $__currentLoopData = $testimonials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $testimonial): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <div class="py-2">
                                                                <div class="card rounded-4">
                                                                    <div class="card-body">
                                                                        <div class="d-md-flex align-items-center">
                                                                            <!-- review avatar -->
                                                                            <div
                                                                                class="avatar avatar-lg me-sm-3 mb-md-0 mb-2 flex-shrink-0">
                                                                                <img class="avatar-img rounded-circle w-100 h-100 object-fit-cover"
                                                                                    src="<?php echo e(@$testimonial->user_info->profile_image); ?>"
                                                                                    alt="avatar">
                                                                            </div>
                                                                            <!-- review avatar -->

                                                                            <!-- review-content -->
                                                                            <div class="w-100">
                                                                                <div
                                                                                    class="d-flex flex-wrap gap-2 justify-content-between mt-1 mt-md-0 mb-2">
                                                                                    <div>
                                                                                        <h6
                                                                                            class="me-3 mb-0 color-changer fw-600">
                                                                                            <?php echo e(@$testimonial->user_info->name); ?>

                                                                                        </h6>
                                                                                        <!-- Info -->
                                                                                        <p
                                                                                            class="text-muted fs-7 fw-500 mt-1 mb-0">
                                                                                            <?php echo e(helper::date_format($testimonial->created_at)); ?>

                                                                                        </p>
                                                                                    </div>
                                                                                    <!-- Review star -->
                                                                                    <span
                                                                                        class="fw-600 fs-6 color-changer"><i
                                                                                            class="fas fa-star fa-fw text-warning fs-7"></i>
                                                                                        <?php echo e(number_format($testimonial->star, 1)); ?></span>
                                                                                </div>

                                                                                <p
                                                                                    class="text-muted fs-7 fw-normal line-2">
                                                                                    <?php echo e($testimonial->description); ?></p>
                                                                            </div>
                                                                            <!-- review-content -->
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>
                        <?php endif; ?>
                        <?php if(@helper::checkaddons('product_inquiry')): ?>
                            <div class="tab-pane fade" id="pills-product_inquiry" role="tabpanel"
                                aria-labelledby="pills-product_inquiry-tab">
                                <div class="card sevirce-trued">
                                    <div class="card-body">
                                        <form action="<?php echo e(URL::to('product_inquiry')); ?>" method="POST">
                                            <?php echo csrf_field(); ?>
                                            <input type="hidden" name="product_id" value="<?php echo e($getitemdata->id); ?>">
                                            <div class="row g-3">
                                                <div class="col-md-6">
                                                    <label for="first_name" class="form-label d-flex gap-1">
                                                        <?php echo e(trans('labels.first_name')); ?>

                                                        <div aria-hidden="true" class="text-danger">*</div>
                                                    </label>
                                                    <input type="text" class="form-control input-h" id="first_name"
                                                        name="first_name" placeholder="<?php echo e(trans('labels.first_name')); ?>"
                                                        required>
                                                </div>
                                                <div class="col-md-6">
                                                    <label for="last_name" class="form-label d-flex gap-1">
                                                        <?php echo e(trans('labels.last_name')); ?>

                                                        <div aria-hidden="true" class="text-danger">*</div>
                                                    </label>
                                                    <input type="text" class="form-control input-h" name="last_name"
                                                        placeholder="<?php echo e(trans('labels.last_name')); ?>" id="last_name"
                                                        required>
                                                </div>
                                                <div class="col-md-6">
                                                    <label for="email" class="form-label d-flex gap-1">
                                                        <?php echo e(trans('labels.email')); ?>

                                                        <div aria-hidden="true" class="text-danger">*</div>
                                                    </label>
                                                    <input type="email" class="form-control input-h" id="email"
                                                        name="email" placeholder="<?php echo e(trans('labels.email')); ?>"
                                                        required>
                                                </div>
                                                <div class="col-md-6">
                                                    <label for="mobile" class="form-label d-flex gap-1">
                                                        <?php echo e(trans('labels.mobile')); ?>

                                                        <div aria-hidden="true" class="text-danger">*</div>
                                                    </label>
                                                    <input type="text" class="form-control input-h number"
                                                        name="mobile" placeholder="<?php echo e(trans('labels.mobile')); ?>"
                                                        id="mobile" required>
                                                </div>
                                                <div class="col-12">
                                                    <label for="message" class="form-label d-flex gap-1">
                                                        <?php echo e(trans('labels.comment')); ?>

                                                        <div aria-hidden="true" class="text-danger">*</div>
                                                    </label>
                                                    <p class="fs-8 mb-1 text-muted"><?php echo e(trans('labels.note')); ?> :
                                                        <?php echo e(trans('messages.product_inquiry_note')); ?></p>
                                                    <textarea class="form-control m-0" id="message" placeholder="<?php echo e(trans('labels.textarea')); ?>" name="message"
                                                        rows="3" required></textarea>
                                                </div>
                                                <div class="col-12">
                                                    <button type="submit" class="btn btn-primary m-0">
                                                        <?php echo e(trans('labels.submit')); ?>

                                                    </button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>
                        <?php if(@helper::checkaddons('question_answer')): ?>
                            <div class="tab-pane fade" id="pills-quastions" role="tabpanel"
                                aria-labelledby="pills-pills-quastions-tab">
                                <div class="card sevirce-trued">
                                    <div class="card-body">
                                        <div
                                            class="d-flex align-items-center justify-content-between gap-2 mb-2 pb-2 border-bottom">
                                            <p class="fs-7 line-1 color-changer">
                                                <?php echo e(trans('labels.have_doubts_regarding_this_product')); ?></p>
                                            <div class="col-auto">
                                                <a type="button" class="w-100 fw-600 text-secondary rounded-0 p-0"
                                                    data-bs-toggle="modal"
                                                    data-bs-target="#qustions_answer"><?php echo e(trans('labels.post_your_question')); ?></a>
                                            </div>
                                        </div>
                                        <?php if(count($question_answer) > 0): ?>
                                            <?php $__currentLoopData = $question_answer; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <div class="border-bottom p-2">
                                                    <h6 class="fs-7 fw-600 line-2 color-changer"><?php echo e($item->question); ?>

                                                    </h6>
                                                    <p class="fs-13  text-muted"><?php echo e($item->answer); ?>

                                                    </p>
                                                </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php else: ?>
                                            <?php echo $__env->make('web.nodata', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                        <?php endif; ?>

                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>

                    </div>
                <?php else: ?>
                    <?php echo $__env->make('web.nodata', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <?php endif; ?>
            </div>
        </div>
    </section>

   
    <!-- RELATED PRODUCTS Section Start Here -->
    <?php if(count($getrelateditems) > 0): ?>
        <section class="menu my-5">
            <div class="container">
                <div class="row g-2 align-items-center justify-content-between mb-4">
                    <div class="col-auto menu-heading">
                        <h2 class="fw-bold text-capitalize color-changer mb-0"><?php echo e(trans('labels.related_items')); ?></h2>
                    </div>
                    <div class="col-auto"><a
                            href="<?php echo e(URL::to('menu?category=' . @$getitemdata['category_info']->slug)); ?>"
                            class="btn btn-secondary px-4"><?php echo e(trans('labels.view_all')); ?> <i
                                class="fa-regular fa-arrow-right"></i></a>
                    </div>
                </div>

                <div class="menu my-0">
                    <div class="menu my-0">
                        <div class="row row-cols-xl-5 row-cols-lg-4 row-cols-md-3 row-cols-2 g-sm-3 g-2">
                            <?php if(helper::appdata()->product_card_view == 1): ?>
                                <?php $__currentLoopData = $getrelateditems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('web.product_card.grid_view.product_view_1', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php elseif(helper::appdata()->product_card_view == 2): ?>
                                <?php $__currentLoopData = $getrelateditems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('web.product_card.grid_view.product_view_2', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php elseif(helper::appdata()->product_card_view == 3): ?>
                                <?php $__currentLoopData = $getrelateditems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('web.product_card.grid_view.product_view_3', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php elseif(helper::appdata()->product_card_view == 4): ?>
                                <?php $__currentLoopData = $getrelateditems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('web.product_card.grid_view.product_view_4', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php elseif(helper::appdata()->product_card_view == 5): ?>
                                <?php $__currentLoopData = $getrelateditems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('web.product_card.grid_view.product_view_5', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php elseif(helper::appdata()->product_card_view == 6): ?>
                                <?php $__currentLoopData = $getrelateditems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('web.product_card.grid_view.product_view_6', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php elseif(helper::appdata()->product_card_view == 7): ?>
                                <?php $__currentLoopData = $getrelateditems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('web.product_card.grid_view.product_view_7', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php elseif(helper::appdata()->product_card_view == 8): ?>
                                <?php $__currentLoopData = $getrelateditems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('web.product_card.grid_view.product_view_8', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    <?php endif; ?>
    <!-- RELATED PRODUCTS Section End Here -->

    <?php if(@helper::checkaddons('sticky_cart_bar')): ?>
        <?php echo $__env->make('web.view-cart-bar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php endif; ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(url(env('ASSETSPATHURL') . 'web-assets/js/item-image-carousel/main.js')); ?>"></script>
    <script src="<?php echo e(url(env('ASSETSPATHURL') . 'web-assets/js/item-image-carousel/zoom-image.js')); ?>"></script>
    <script src="<?php echo e(url(env('ASSETSPATHURL') . 'web-assets/js/smoothproducts.js')); ?>"></script>
    <script>
        $('.sp-wrap').smoothproducts();
    </script>

    <script>
        $(document).ready(function($) {
            var selected = [];
            $('#oldvariation input[name="skills"]:checked').each(function() {

                var label = $("#oldvariation label[for='" + $(this).attr('id') + "']").attr('id');
                $('#oldvariation' + '#' + label).addClass('active');
                selected.push($(this).attr('value'));
            });

            detail_set_variant_price(selected);
        });
        $(document).on("click", "input[name='skills']", function(event) {

            var selected = [];
            var divselected = [];
            const myArray = this.id.split("-");

            var id = this.id;
            $('#oldvariation .check' + myArray[0] + ' input:checked').each(function() {
                divselected.push($(this).attr('value'));
            });

            if (divselected.length == 0) {
                $(this).prop('checked', true);
            }

            $('#oldvariation .check' + myArray[0] + ' input:checkbox').not(this).prop('checked', false);
            $('#oldvariation .check' + myArray[0]).removeClass('active');
            $("#oldvariation [id='" + 'check_' + this.id + "']").addClass('active');

            $('#oldvariation input:checked').each(function() {
                $('.product-detail-price').addClass('d-none');
                $('#laodertext').removeClass('d-none');
                $('#laodertext').html(
                    '<span class="loader"></span>'
                );
                selected.push($(this).attr('value'));
            });

            detail_set_variant_price(selected);
        });

        function detail_set_variant_price(variants) {

            $.ajax({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                },
                url: variation_route,
                data: {
                    name: variants,
                    item_id: $('#detail_item_id').val(),

                },
                success: function(data) {

                    if (data.status == 1) {
                        $('.detail_item_price').html(data.price);
                        $('#detail_variant_name').val(variants);
                        $('#detail_variant_id').val(data.variant_id);
                        $('#variation_price').html(data.price);
                        $('#detail_item_price').val(data.item_price);
                        $('#detail_original_price').html(data.original_price);
                        $('#variant_id').val(data.variant_id);
                        var off = ((1 - (data.item_price / data.item_original_price)) * 100).toFixed(1);

                        if (data.qty <= 0) {
                            $('.modal-btn-add-to-cart').addClass("disabled").html(product_out_of_stock);
                            $('.modal-btn-add-to-cart').addClass("disabled").html(product_out_of_stock);
                        } else {
                            $('.modal-btn-add-to-cart').removeClass("disabled").html(add_to_cart);
                        }

                        if (data.item_original_price > data.item_price) {

                            $('#off').removeClass('d-none');
                            $('#detail_original_price').removeClass('d-none');
                            $('#detail_original_price').text(data.original_price);
                            $('#off').text('' + $.number(off, 2) + '% OFF');
                        } else {
                            $('#detail_original_price').text('');
                            $('#off').text('');
                            $('#off').addClass('d-none');
                            $('#detail_original_price').addClass('d-none');
                        }
                        if (data.is_available == 2) {

                            $('#variation_price').addClass('d-none');
                            $('#detail_price_section').addClass('d-none');
                            $('.detail_item_price').addClass('d-none');
                            $('#tax').addClass('d-none');
                            $('#not_available').removeClass('d-none');
                            $('#not_available').html(not_available);
                            $('#detail_sku_stock').addClass('d-none');
                            $('#detail_stock').addClass('d-none');
                            $('#addcart').addClass('d-none');
                            $('#buynow').addClass('d-none');
                        } else {
                            $('#variation_price').removeClass('d-none');
                            $('#detail_price_section').removeClass('d-none');
                            $('.detail_item_price').removeClass('d-none');
                            $('#not_available').addClass('d-none');
                            $('#tax').removeClass('d-none');
                            $('#detail_sku_stock').removeClass('d-none');
                            $('#detail_stock').removeClass('d-none');
                            $('#not_available').html('');
                            if (data.stock_management == 1) {
                                $('#detail_stock').removeClass('d-none');
                                $('#detail_out_of_stock1').removeClass('d-none');
                                if (data.quantity > 0) {
                                    $('#detail_out_of_stock1').removeClass('text-danger');
                                    $('#detail_out_of_stock1').addClass('text-success');
                                    $('#detail_out_of_stock1').html(data.quantity + ' ' + in_stock);
                                } else {
                                    $('#detail_out_of_stock1').removeClass('text-dark');
                                    $('#detail_out_of_stock1').addClass('text-danger');
                                    $('#detail_out_of_stock1').html(out_of_stock);
                                }
                            } else {
                                $('#detail_out_of_stock1').addClass('d-none');
                                $('#detail_sku_stock').addClass('d-none');
                            }
                            $('#addcart').removeClass('d-none');
                            $('#buynow').removeClass('d-none');
                        }
                    }
                }
            });
        }

        function detailaddtocart(addcarturl, buynow) {
            "use strict";
            if (buynow == 1) {
                $('.buy_now').prop("disabled", true);
                $('.buy_now_loader').removeClass('d-none');
            } else {
                $('.add_to_cart').prop("disabled", true);
                $('.add_to_cart_loader').removeClass('d-none');
            }
            var slug = $('#detail_slug').val();
            var item_id = $('#detail_item_id').val();
            var item_name = $('#detail_item_name').val();
            var item_type = $('#detail_item_type').val();
            var image_name = $('#detail_image_name').val();
            var item_tax = $('#detail_taxval').val();
            var item_price = $('#detail_item_price').val();
            var variation_id = $("#detail_variant_id").val();
            var variation_name = $("#detail_variant_name").val();
            var is_variation_out_of_stock = $("input[name='variation']:checked").attr('data-out-of-stock');
            var item_qty = $('.detail_item_qty').val();

            var extras_id = $(".extras_Checkbox:checked").map(function() {
                return this.value;
            }).get().join("| ");
            var extras_name = $(".extras_Checkbox:checked").map(function() {
                return $(this).attr("extras_name");
            }).get().join("| ");
            var extras_price = $(".extras_Checkbox:checked").map(function() {
                return $(this).attr("price");
            }).get().join("| ");
            if (is_variation_out_of_stock === true) {
                toastr.error(product_out_of_stock);
                return false;
            } else {
                detailcalladdtocart(slug, item_name, item_type, image_name, item_tax, item_price, variation_id,
                    variation_name, "", "", "", addcarturl, buynow, item_id, item_qty, extras_id, extras_name,
                    extras_price);
            }
        };

        function detailcalladdtocart(slug, item_name, item_type, image_name, item_tax, item_price, variation_id,
            variation_name, addons_id, addons_name, addons_price, addcarturl, buynow, item_id, item_qty, extras_id,
            extras_name, extras_price) {
            "use strict";
            var login_required = $('#login_required').val();
            var checklogin = $('#checklogin').val();
            if ($('#customer_login').val() != null) {
                var customer_login = JSON.parse($('#customer_login').val());
            }
            $.ajax({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                },
                url: addcarturl,
                data: {
                    slug: slug,
                    item_id: item_id,
                    item_name: item_name,
                    item_type: item_type,
                    image_name: image_name,
                    tax: item_tax,
                    item_price: item_price,
                    variation_id: variation_id,
                    variation: variation_name,
                    addons_id: addons_id,
                    addons_name: addons_name,
                    addons_price: addons_price,
                    buynow: buynow,
                    qty: item_qty,
                    extras_id: extras_id,
                    extras_name: extras_name,
                    extras_price: extras_price,
                },
                method: 'POST',
                dataType: 'json',
                success: function(response) {
                    if (response.buynow == 1) {
                        if (customer_login.activated == 1 && customer_login != null) {
                            if (checklogin) {
                                location.href = "\checkout?buynow=1";
                            } else if (login_required == 1) {
                                $('.buy_now').prop("disabled", false);
                                $('.buy_now_loader').addClass('d-none');
                                $('#useroption').modal('show');
                            } else {
                                location.href = "\checkout?buynow=1";
                            }
                        } else {
                            location.href = "\checkout?buynow=1";
                        }
                    } else {
                        $('.add_to_cart').prop("disabled", false);
                        $('.add_to_cart_loader').addClass('d-none');
                        $('.buy_now').prop("disabled", false);
                        $('.buy_now_loader').addClass('d-none');
                        if (response.status == 1) {
                            $('.cart-badge').html(response.data);
                            $('.item-total-qty-' + slug).val(response.total_item_count);
                            toastr.success(response.message);
                            $("input:checkbox").prop('checked', false);
                            // $("#modalitemdetails").modal('hide');
                            return false;
                        } else {
                            toastr.error(response.message);
                            return false;
                        }
                    }
                },
                error: function() {
                    $('.add_to_cart').prop("disabled", false);
                    $('.add_to_cart_loader').addClass('d-none');
                    $('.buy_now').prop("disabled", false);
                    $('.buy_now_loader').addClass('d-none');
                    toastr.error(wrong);
                    $("input:checkbox").prop('checked', false);
                    // $("#modalitemdetails").modal('hide');
                }
            })
        }

        function detailchangeqty(item_id, type) {
            var qtys = parseInt($('.detail_item_qty').val());
            if (type == "minus") {
                qty = qtys - 1;
            } else {
                qty = qtys + 1;
            }
            if (qty >= "1") {
                $('.detail_item_quantity').prop('disabled', true);
                $.ajax({
                    headers: {
                        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                    },
                    url: $('#changeqtyurl').val(),
                    data: {
                        item_id: item_id,
                        type: type,
                        qty: qty,
                        variants_id: $('#detail_variant_id').val(),
                        variants_name: $('#detail_variant_name').val(),
                        stock_management: $('#detail_stock_management').val(),
                    },
                    method: 'POST',
                    success: function(response) {
                        if (response.status == 1) {
                            $('.detail_item_quantity').prop('disabled', false);
                            $('.detail_item_qty').val(response.qty);
                        } else {
                            $('.detail_item_quantity').prop('disabled', false);
                            $('.detail_item_qty').val(response.qty);
                            toastr.error(response.message);
                        }
                    },
                    error: function(error) {
                        $('.detail_item_quantity').prop('disabled', false);
                    }
                });
            }

        }

        function postreview() {
            if ("<?php echo e(Auth::user() && Auth::user()->type == 2); ?>") {
                $('#reviewModal').modal('show');
            } else {
                location.href = "\login";
            }
        }
        $('#post_review_form').submit(function(event) {
            if (!$("input[name='ratting']:checked").val()) {
                event.preventDefault();
                toastr.error("Please select a ratting.");
            }
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('web.layout.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/koreanshop.lk/resources/views/web/productdetails.blade.php ENDPATH**/ ?>
© 2026 GrazzMean