shell bypass 403
<div class="modal-header align-items-start justify-content-between gap-2">
<div class="d-flex">
<span id="item_type_image"><img class="item-type-image mt-1" src="<?php echo e($getitem['item_type_image']); ?>"></span>
<div class="d-grid ms-2">
<p class="modal-title color-changer fs-5 fw-bold item_name mb-1"><?php echo e($getitem['item_name']); ?></p>
<?php
if ($getitem['variation']->count() > 0) {
if (!request()->is('admin/pos/show-item')) {
if ($getitem['top_deals'] == 1) {
if (@$topdeals['offer_type'] == 1) {
$price = $getitem['variation'][0]->price - @$topdeals->offer_amount;
} else {
$price =
$getitem['variation'][0]->price -
$getitem['variation'][0]->price * (@$topdeals->offer_amount / 100);
}
$original_price = $getitem['variation'][0]->price;
} else {
$price = $getitem['variation'][0]->price;
$original_price = $getitem['variation'][0]->original_price;
}
} else {
$price = $getitem['variation'][0]->price;
$original_price = $getitem['variation'][0]->original_price;
}
} else {
if (!request()->is('admin/pos/show-item')) {
if ($getitem['top_deals'] == 1) {
if (@$topdeals->offer_type == 1) {
$price = $getitem['price'] - @$topdeals->offer_amount;
} else {
$price = $getitem['price'] - $getitem['price'] * (@$topdeals->offer_amount / 100);
}
$original_price = $getitem['price'];
} else {
$price = $getitem['price'];
$original_price = $getitem['original_price'];
}
} else {
$price = $getitem['price'];
$original_price = $getitem['original_price'];
}
}
$off = $original_price > 0 ? number_format(100 - ($price * 100) / $original_price, 1) : 0;
?>
<?php if($getitem['item_status'] != 2 && $getitem['is_deleted'] != 1): ?>
<div class="d-flex" id="price_section">
<p class="text-dark color-changer fw-bold item_price mb-0">
<?php echo e(helper::currency_format($getitem['price'])); ?></p>
<span><del class="text-muted fw-bold fs-7 mx-1 <?php echo e($original_price > $price ? '' : 'd-none'); ?>"
id="original_price"><?php echo e(helper::currency_format($getitem['original_price'])); ?></del></span>
<span
class="badge d-flex align-items-center bg-secondary fw-600 fs-8 text-dark <?php echo e($original_price > $price ? '' : 'd-none'); ?>"
id="off"><?php echo e($off); ?>% <?php echo e(trans('labels.off')); ?></span>
</div>
<?php endif; ?>
<?php if($getitem['item_status'] != 2 && $getitem['is_deleted'] == 1): ?>
<p id="tax" class="responcive-tax text-left border-0 m-0"><span class="text-muted fs-7">
<?php if($getitem['tax'] != null && $getitem['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; ?>
<?php if($getitem['has_variation'] == 2): ?>
<?php if($getitem['item_status'] == 2 || $getitem['is_deleted'] == 1): ?>
<h3 class="text-danger"><?php echo e(trans('labels.not_available')); ?></h3>
<?php endif; ?>
<?php else: ?>
<span class="text-danger" id="not_available"></span>
<?php endif; ?>
</div>
</div>
<button type="button" class="bg-transparent border-0 m-0" data-bs-dismiss="modal" aria-label="Close">
<i class="fa-regular fa-xmark fs-5 color-changer"></i>
</button>
</div>
<div class="modal-body">
<div class="row align-items-center">
<div class="col-12 m-auto">
<div class="border-bottom pb-3 mb-3 <?php echo e($getitem['sku'] != null || $getitem['stock_management'] == 1 ? 'd-block' : 'd-none'); ?>"
id="sku_stock">
<div class="card border px-3 py-2 rounded-2">
<?php if($getitem['sku'] != '' && $getitem['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($getitem['sku']); ?></span>
</span>
</div>
<?php endif; ?>
<div class="meta-content rounded-2">
<?php if($getitem['has_variation'] == 2 && $getitem['stock_management'] == 1): ?>
<div class="sku-wrapper product_meta">
<span class="fs-7"><span
class="fw-bold text-muted"><?php echo e(trans('labels.stock')); ?>:</span>
</span>
<?php if($getitem['qty'] > 0): ?>
<span class="text-success fs-7"><?php echo e($getitem['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($getitem['has_variation'] == 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>
<span class="fs-7" id="detail_out_of_stock"></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>
<div class="item-details">
<?php if($getitem['has_variation'] == 1 && $getitem['variants_json'] != null): ?>
<div class="product-variations-wrapper">
<div class="size-variation" id="newvariation">
<?php for($i = 0; $i < count($getitem['variants_json']); $i++): ?>
<label class="fw-semibold mb-2 color-changer"
for=""><?php echo e($getitem['variants_json'][$i]['variant_name']); ?></label><br>
<div class="d-flex flex-wrap gap-2 border-bottom pb-3 mb-3">
<?php for($t = 0; $t < count($getitem['variants_json'][$i]['variant_options']); $t++): ?>
<label
class="checkbox-inline check<?php echo e(str_replace(' ', '_', $getitem['variants_json'][$i]['variant_name'])); ?><?php echo e($getitem['id']); ?> <?php echo e($t == 0 ? 'active' : ''); ?>"
id="check_<?php echo e(str_replace(' ', '_', $getitem['variants_json'][$i]['variant_name'])); ?><?php echo e($getitem['id']); ?>-<?php echo e(str_replace(' ', '_', $getitem['variants_json'][$i]['variant_options'][$t])); ?>"
for="<?php echo e(str_replace(' ', '_', $getitem['variants_json'][$i]['variant_name'])); ?><?php echo e($getitem['id']); ?>-<?php echo e(str_replace(' ', '_', $getitem['variants_json'][$i]['variant_options'][$t])); ?>">
<input type="checkbox" class="" name="skills"
<?php echo e($t == 0 ? 'checked' : ''); ?>
value="<?php echo e(str_replace(' ', '_', $getitem['variants_json'][$i]['variant_options'][$t])); ?>"
id="<?php echo e(str_replace(' ', '_', $getitem['variants_json'][$i]['variant_name'])); ?><?php echo e($getitem['id']); ?>-<?php echo e(str_replace(' ', '_', $getitem['variants_json'][$i]['variant_options'][$t])); ?>">
<?php echo e($getitem['variants_json'][$i]['variant_options'][$t]); ?>
</label>
<?php endfor; ?>
</div>
<?php endfor; ?>
</div>
</div>
<?php endif; ?>
<?php if(count($getitem['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 = $getitem['extras']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $extras): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li>
<div class="form-check w-100 m-0 p-0 d-flex align-items-center gap-2">
<input class="form-check-input Checkbox m-0 p-0" type="checkbox"
value="<?php echo e($extras->id); ?>" id="addons_<?php echo e($key); ?>"
name="addons[]" price="<?php echo e($extras->price); ?>"
extras_name="<?php echo e($extras->name); ?>">
<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; ?>
<input type="hidden" name="slug" id="slug" value="<?php echo e($getitem['slug']); ?>">
<input type="hidden" name="item_name" id="item_name" value="<?php echo e($getitem['item_name']); ?>">
<input type="hidden" name="item_id" id="item_id" value="<?php echo e($getitem['id']); ?>">
<input type="hidden" name="item_type" id="item_type" value="<?php echo e($getitem['item_type']); ?>">
<input type="hidden" name="image_name" id="image_name" value="<?php echo e($getitem['image_name']); ?>">
<input type="hidden" name="tax" id="item_tax" value="<?php echo e($getitem['tax']); ?>">
<input type="hidden" name="item_price" id="item_price" value="<?php echo e(@$price); ?>">
<input type="hidden" name="variant_name" id="variant_name" value="">
<input type="hidden" name="variant_id" id="variant_id" value="">
<input type="hidden" name="addonstotal" id="addonstotal" value="0">
<input type="hidden" name="subtotal" id="subtotal" value="">
<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="mb-3">
<div class="row g-3 justify-content-center px-0">
<div class="col-4">
<div class="btn item-quantity py-1 w-100 rounded-3" id="detail_plus-minus">
<button class="btn btn-sm item-quantity-minus color-changer mb-0 item_quantity"
id="minus" data-type="minus" data-item_id="<?php echo e($getitem['id']); ?>"
onclick="changeqty($(this).attr('data-item_id'),'minus')"
value="minus value">-</button>
<input class="item-quantity-input color-changer mb-0" value="1"
id="item_qty" readonly="">
<button class="btn btn-sm item-quantity-plus color-changer mb-0 item_quantity"
id="plus" data-item_id="<?php echo e($getitem['id']); ?>"
onclick="changeqty($(this).attr('data-item_id'),'plus')" data-type="plus"
value="plus value">+</button>
</div>
</div>
<div class="<?php echo e(!request()->is('admin/pos/show-item') ? 'col-4' : 'col-8'); ?>">
<button
class="btn btn-outline-primary btn-lg w-100 m-0 fs-6 p-2 d-flex gap-3 justify-content-center align-items-center modal_add_to_cart"
id="addcart"
<?php if(request()->is('admin/pos/show-item')): ?> onclick="addtocart('<?php echo e(URL::to('admin/pos/addtocart')); ?>')" <?php else: ?> onclick="addtocart('<?php echo e(URL::to('addtocart')); ?>','0')" <?php endif; ?>><?php echo e(trans('labels.add_to_cart')); ?>
<div class="loader d-none modal_add_to_cart_loader"></div>
</button>
</div>
<?php if(!request()->is('admin/pos/show-item')): ?>
<div class="col-4">
<?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 p-2 d-flex gap-3 justify-content-center align-items-center modal_buy_now"
id="buynow"
<?php if(helper::appdata()->is_checkout_login_required == 1): ?> onclick="showlogin()" <?php else: ?> onclick="addtocart('<?php echo e(URL::to('addtocart')); ?>','1')" <?php endif; ?>>
<?php echo e(trans('labels.buy_now')); ?>
<div class="loader d-none modal_buy_now_loader"></div>
</button>
<?php else: ?>
<button
class="btn btn-primary btn-lg w-100 m-0 fs-6 p-2 d-flex gap-3 justify-content-center align-items-center modal_buy_now"
id="buynow"
onclick="addtocart('<?php echo e(URL::to('addtocart')); ?>','1')"><?php echo e(trans('labels.buy_now')); ?>
<div class="loader d-none modal_buy_now_loader"></div>
</button>
<?php endif; ?>
<?php else: ?>
<button
class="btn btn-primary btn-lg w-100 m-0 fs-6 p-2 d-flex gap-3 justify-content-center align-items-center modal_buy_now"
id="buynow"
onclick="addtocart('<?php echo e(URL::to('addtocart')); ?>','1')"><?php echo e(trans('labels.buy_now')); ?>
<div class="loader d-none modal_buy_now_loader"></div>
</button>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if(!request()->is('admin/pos/show-item')): ?>
<div class="d-flex flex-wrap gap-sm-2 gap-3 justify-content-between w-100 border-top pt-3">
<div
class="d-flex gap-sm-5 gap-2 justify-content-between align-items-center col-sm-auto col-12">
<div>
<?php if(@helper::checkaddons('customer_login')): ?>
<?php if(helper::appdata()->login_required == 1): ?>
<p class="fs-7 d-flex align-items-center mb-0">
<?php if($getitem['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($getitem['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($getitem['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; ?>
</p>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<div class="d-flex align-items-center justify-content-center gap-2">
<?php if(@helper::appdata()->google_review != '' && @helper::appdata()->google_review != null): ?>
<a href="<?php echo e(@helper::appdata()->google_review); ?>" target="_blank" tooltip="Review"
class=" rounded-circle prod-social fs-7"><i
class="fa-regular fa-star fs-7 text-white"></i></a>
<?php endif; ?>
<a href="tel:<?php echo e(@helper::appdata()->mobile); ?>" class="rounded-circle prod-social"
tooltip="Phone">
<i class="fa-solid fa-phone text-white fs-7"></i>
</a>
<?php if($getitem['video_url'] != '' && $getitem['video_url'] != null): ?>
<a href="<?php echo e($getitem['video_url']); ?>" tooltip="Video"
class="rounded-circle prod-social fs-7" id="btn-video" target="_blank">
<i class="fa-regular fa-video fs-7 text-white"></i></a>
<?php endif; ?>
<?php if(@helper::checkaddons('whatsapp_message')): ?>
<?php if(
@whatsapp_helper::whatsapp_message_config()->whatsapp_number != '' &&
@whatsapp_helper::whatsapp_message_config()->whatsapp_number != null): ?>
<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')); ?> <?php echo e($getitem['item_name']); ?>"
class=" rounded-circle prod-social" id="enquiries" tooltip="Whatsapp"
target="_blank"><i class="fa-brands fa-whatsapp fs-7 text-white"></i></a>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function($) {
var selected = [];
$('.size-variation input:checked').each(function() {
var label = $("#newvariation label[for='" + $(this).attr('id') + "']").attr('id');
$('#newvariation' + '#' + label).addClass('active');
selected.push($(this).attr('value'));
});
set_variant_price(selected);
});
$('#newvariation input:checkbox').click(function() {
var selected = [];
var divselected = [];
const myArray = this.id.split("-");
var id = this.id;
$('#newvariation .check' + myArray[0] + ' input:checked').each(function() {
divselected.push($(this).attr('value'));
});
if (divselected.length == 0) {
$(this).prop('checked', true);
}
$('#newvariation .check' + myArray[0] + ' input:checkbox').not(this).prop('checked', false);
$('#newvariation .check' + myArray[0]).removeClass('active');
var label = $("#newvariation label[for='" + $(this).attr('id') + "']").attr('id');
$("#newvariation [id='" + 'check_' + this.id + "']").addClass('active');
$('#newvariation' + '#' + label).addClass('active');
$('.size-variation 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'));
});
set_variant_price(selected);
});
function set_variant_price(variants) {
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
url: variation_route,
data: {
name: variants,
item_id: $('#item_id').val(),
},
success: function(data) {
if (data.status == 1) {
$('.item_price').html(data.price);
$('#variant_name').val(variants);
$('#variation_price').html(data.price);
$('#item_price').val(data.item_price);
$('#original_price').html(data.original_price);
$('#variant_id').val(data.variant_id);
var off = data.off;
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) {
$('#original_price').removeClass('d-none');
$('#off').removeClass('d-none');
$('#original_price').text(data.original_price);
$('#off').text('' + $.number(off, 1) + '% OFF');
} else {
$('#original_price').addClass('d-none');
$('#off').addClass('d-none');
$('#original_price').text('');
$('#off').text('');
}
if (data.is_available == 2) {
$('#variation_price').addClass('d-none');
$('#price_section').addClass('d-none');
$('.item_price').addClass('d-none');
$('#tax').addClass('d-none');
$('#not_available').removeClass('d-none');
$('#not_available').html(not_available);
$('#sku_stock').addClass('d-none');
$('#stock').addClass('d-none');
$('#addcart').addClass('d-none');
$('#buynow').addClass('d-none');
} else {
$('#variation_price').removeClass('d-none');
$('#price_section').removeClass('d-none');
$('.item_price').removeClass('d-none');
$('#not_available').addClass('d-none');
$('#tax').removeClass('d-none');
$('#sku_stock').removeClass('d-none');
$('#stock').removeClass('d-none');
$('#not_available').html('');
if (data.stock_management == 1) {
$('#stock').removeClass('d-none');
$('#detail_out_of_stock').removeClass('d-none');
if (data.quantity > 0) {
$('#detail_out_of_stock').removeClass('text-danger');
$('#detail_out_of_stock').addClass('text-success');
$('#detail_out_of_stock').html(data.quantity + ' ' + in_stock);
} else {
$('#detail_out_of_stock').removeClass('text-dark');
$('#detail_out_of_stock').addClass('text-danger');
$('#detail_out_of_stock').html(out_of_stock);
}
} else {
$('#detail_out_of_stock').addClass('d-none');
$('#sku_stock').addClass('d-none');
}
$('#addcart').removeClass('d-none');
$('#buynow').removeClass('d-none');
}
}
}
});
}
</script>
<?php /**PATH /www/wwwroot/koreanshop.lk/resources/views/web/detail.blade.php ENDPATH**/ ?>