shell bypass 403
<div class="col">
<?php
if ($itemdata['variation']->count() > 0) {
if ($itemdata['top_deals'] == 1 && @helper::top_deals() != null) {
if (@helper::top_deals()->offer_type == 1) {
$price = $itemdata['variation'][0]->price - @helper::top_deals()->offer_amount;
} else {
$price =
$itemdata['variation'][0]->price -
$itemdata['variation'][0]->price * (@helper::top_deals()->offer_amount / 100);
}
$original_price = $itemdata['variation'][0]->price;
} else {
$price = $itemdata['variation'][0]->price;
$original_price = $itemdata['variation'][0]->original_price;
}
} else {
if ($itemdata->top_deals == 1 && @helper::top_deals() != null) {
if (@helper::top_deals()->offer_type == 1) {
$price = $itemdata->price - @helper::top_deals()->offer_amount;
} else {
$price = $itemdata->price - $itemdata->price * (@helper::top_deals()->offer_amount / 100);
}
$original_price = $itemdata->price;
} else {
$price = $itemdata->price;
$original_price = $itemdata->original_price;
}
}
$off = $original_price > 0 ? number_format(100 - ($price * 100) / $original_price, 1) : 0;
?>
<div class="card rounded-4 pro-item card-hover overflow-hidden h-100">
<?php if($original_price > $price): ?>
<div class="p-2 item-offer <?php echo e(session()->get('direction') == '2' ? 'rtl' : ''); ?>">
<div class="badge">
<p class="m-0"><?php echo e($off); ?>% OFF</p>
</div>
</div>
<?php endif; ?>
<div class="card-image card-one position-relative">
<a href="<?php echo e(URL::to('item-' . $itemdata->slug)); ?>">
<img src="<?php echo e(helper::image_path($itemdata['item_images'][0]->image_name)); ?>"
class="card-img-top img1 border-0 rounded-0 rounded-top" alt="dishes">
<?php if(count($itemdata['item_images']) > 1): ?>
<img src="<?php echo e(helper::image_path($itemdata['item_images'][1]->image_name)); ?>"
class="card-img-top img2 border-0 rounded-0 rounded-top" alt="dishes">
<?php else: ?>
<img src="<?php echo e(helper::image_path($itemdata['item_images'][0]->image_name)); ?>"
class="card-img-top img2 border-0 rounded-0 rounded-top" alt="dishes">
<?php endif; ?>
</a>
<ul
class="option-wrap p-0 d-flex flex-column gap-sm-2 gap-2 <?php echo e(session()->get('direction') == '2' ? 'rtl' : ''); ?>">
<?php if(Auth::user() && Auth::user()->type == 2): ?>
<li class="option-round m-0" data-bs-toggle="tooltip" data-bs-title="Wishlist"
data-bs-placement="left">
<?php if($itemdata->is_favorite == 1): ?>
<a class="heart-icon btn btn-wishlist p-1 fs-7" href="javascript:void(0)"
onclick="managefavorite('<?php echo e($itemdata->id); ?>',0,'<?php echo e(URL::to('/managefavorite')); ?>','<?php echo e(request()->url()); ?>')"
title="<?php echo e(trans('labels.remove_wishlist')); ?>">
<i class="fa-solid fa-heart"></i>
</a>
<?php else: ?>
<a class="heart-icon btn btn-wishlist p-1 fs-7" href="javascript:void(0)"
onclick="managefavorite('<?php echo e($itemdata->id); ?>',1,'<?php echo e(URL::to('/managefavorite')); ?>','<?php echo e(request()->url()); ?>')"
title="<?php echo e(trans('labels.add_wishlist')); ?>">
<i class="fa-regular fa-heart"></i>
</a>
<?php endif; ?>
</li>
<?php endif; ?>
<li class="option-round m-0" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="View">
<a href="<?php echo e(URL::to('item-' . $itemdata->slug)); ?>" class="wishlist-btn fs-7">
<i class="fa-regular fa-eye"></i>
</a>
</li>
<?php if(@helper::appdata()->online_order == 1): ?>
<li class="option-round m-0" data-bs-toggle="tooltip" data-bs-placement="left"
data-bs-title="Add To Cart">
<a class="addtocart-btn wishlist-btn fs-7"
onclick="showitem('<?php echo e($itemdata->slug); ?>','<?php echo e(URL::to('/show-item')); ?>')">
<i class="fa-solid fa-basket-shopping"></i>
</a>
</li>
<?php endif; ?>
</ul>
</div>
<div class="card-body pb-0">
<div class="pb-1 cat-span d-flex justify-content-between">
<span class="text-muted"><?php echo e(@$itemdata['category_info']->category_name); ?></span>
<?php if(helper::appdata()->review_approved_status == 1): ?>
<div class="d-flex align-items-center gap-1 pro_item_rating">
<i class="fa-solid fa-star text-warning"></i>
<a href="<?php echo e(URL::to('/item-' . $itemdata->slug . '#review-tab')); ?>"
class="cursor-pointer text-dark color-changer">
<p class="m-0 fs-8 fw-600">
<?php echo e(number_format(helper::getavgreviews($itemdata->id)->ratings_average, 1)); ?></p>
</a>
</div>
<?php endif; ?>
</div>
<h5 class="item-card-title color-changer fs-7 fw-600">
<?php if($itemdata->item_type == 1): ?>
<img src="<?php echo e(helper::image_path('veg.svg')); ?>" alt=""
class="<?php echo e(session()->get('direction') == '2' ? 'ms-1' : 'me-1'); ?> mb-1 item-type-img">
<?php else: ?>
<img src="<?php echo e(helper::image_path('nonveg.svg')); ?>"
class="<?php echo e(session()->get('direction') == '2' ? 'ms-1' : 'me-1'); ?> mb-1 item-type-img"
alt="">
<?php endif; ?>
<?php echo e($itemdata->item_name); ?>
</h5>
<?php if($itemdata->stock_management == 1): ?>
<?php if($itemdata->qty <= 0 && $itemdata->has_variation == 2): ?>
<p class="m-0 fs-8 text-danger fw-600"><?php echo e(trans('labels.out_of_stock')); ?></p>
<?php else: ?>
<p class="m-0 fs-8 text-success fw-600"><?php echo e(trans('labels.in_stock')); ?></p>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="card-footer p-3 border-0 bg-transparent pt-0">
<div class="d-flex mt-2 justify-content-between align-items-center pro_price">
<p class="m-0 color-changer"><?php echo e(helper::currency_format($price)); ?>
<?php if($original_price > $price): ?>
<span> <del class="text-muted"><?php echo e(helper::currency_format($original_price)); ?></del></span>
<?php endif; ?>
</p>
</div>
</div>
</div>
</div>
<?php /**PATH /www/wwwroot/koreanshop.lk/resources/views/web/product_card/grid_view/product_view_1.blade.php ENDPATH**/ ?>