shell bypass 403
@extends('web.layout.default')
@section('page_title')
| {{ trans('labels.my_cart') }}
@endsection
@section('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 {{ session()->get('direction') == '2' ? 'breadcrumb-item-rtl ps-0' : '' }}">
<a class="text-dark" href="{{ route('home') }}">{{ trans('labels.home') }}</a>
</li>
<li class="breadcrumb-item {{ session()->get('direction') == '2' ? 'breadcrumb-item-rtl ps-0' : '' }} text-primary fw-bold active"
aria-current="page">{{ trans('labels.cart') }}</li>
</ol>
</nav>
</div>
</div>
</div>
<section class="my-4">
<div class="container">
<div class="cart-view">
<h3 class="fw-bold fs-2 mb-1 color-changer truncate-2">{{ trans('labels.cart') }}</h3>
<p class="mb-3 color-changer">
<span class="fw-bold">{{ $cartcount }} items</span> in your cart
</p>
@php
$total_item_qty = 0;
$order_total = 0;
@endphp
@if (count($getcartlist) > 0)
@if (@helper::checkaddons('cart_checkout_countdown'))
@include('web.cart_checkout_countdown')
@endif
<div class="card overflow-hidden border-bottom-0">
<div class="table-responsive cart-view">
<table class="table m-0 rounded-2 overflow-hidden" id="update_qty">
<thead>
<tr>
<th class="p-3 color-changer">{{ trans('labels.items') }}</th>
<th class="p-3 color-changer">{{ trans('labels.price') }}</th>
<th class="p-3 color-changer">{{ trans('labels.qty') }}</th>
<th class="p-3 color-changer">{{ trans('labels.total') }}</th>
<th class="p-3 color-changer">{{ trans('labels.action') }}</th>
</tr>
</thead>
<tbody class="order-list">
@foreach ($getcartlist as $item)
<tr class="align-middle">
<td class="p-3">
<div class="tbl_cart_product gap-3">
<div class="item-img d-lg-block d-none">
<img src="{{ helper::image_path($item->item_image) }}"
alt="item-image">
</div>
<div class="row flex-column">
<div class="item-title mb-0">
<p class="text-dark color-changer text-capitalize m-0">
{{ $item->item_name }}
</p>
</div>
@if ($item->variation != '' || $item['extras_id'] != '')
<li class="m-0">
<span type="button" class="text-muted text-capitalize fs-7"
onclick="showaddons('{{ $item['item_id'] }}','{{ $item['item_name'] }}','{{ $item['extras_name'] }}','{{ $item['extras_price'] }}','{{ $item['variation'] }}','{{ $item['variation_price'] }}')">
{{ trans('labels.customize') }}
</span>
</li>
@endif
</div>
</div>
</td>
@if ($item['extras_id'] != '')
@php
$extras_id = explode('|', $item['extras_id']);
$extras_name = explode('|', $item['extras_name']);
$extras_price = explode('|', $item['extras_price']);
$extras_total_price = 0;
@endphp
@foreach ($extras_id as $key => $addons)
@php
$extras_total_price += $extras_price[$key];
@endphp
@endforeach
@else
@php
$extras_total_price = 0;
@endphp
@endif
<td class="p-3">
<p
class="item-price color-changer {{ session()->get('direction') == '2' ? 'text-end' : 'text-start' }}">
{{ helper::currency_format($item['item_price'] + $extras_total_price) }}
</p>
</td>
<td class="p-3">
@php
$total_price =
($item['item_price'] + $extras_total_price) * $item['qty'];
$order_total += (float) $total_price;
$total_item_qty += $item['qty'];
@endphp
<div class="item-quantity">
<button class="btn btn-sm item-quantity-minus mb-0 item_quantity"
onclick="qtyupdate('{{ $item['id'] }}','minus','{{ URL::to('/cart/qtyupdate') }}')">
<i class="fa-solid fa-minus fs-10 color-changer"></i>
</button>
<input class="item-quantity-input color-changer mb-0" name="number"
value="{{ $item['qty'] }}" id="item_qty_{{ $item['id'] }}"
readonly>
<button class="btn btn-sm item-quantity-plus mb-0 item_quantity"
onclick="qtyupdate('{{ $item['id'] }}','plus','{{ URL::to('/cart/qtyupdate') }}')">
<i class="fa-solid fa-plus fs-10 color-changer"></i>
</button>
</div>
</td>
<td class="p-3">
<p class="fs-15 color-changer">{{ helper::currency_format($total_price) }}</p>
</td>
<td class="p-3">
<button href="javascript:void(0)"
onclick="deletecartitem('{{ $item['id'] }}','{{ URL::to('/cart/deleteitem') }} ') "
class="btn delete-icon" tooltip="Remove">
<i class="fa-solid fa-trash-can text-light"></i>
</button>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<p class="text-muted text-end fs-7 line-2 mt-2">{{ trans('labels.cart_text_message') }}</p>
@if (@helper::checkaddons('cart_checkout_progressbar'))
@include('web.cart_checkout_progressbar')
@endif
<div class="row g-3 justify-content-between mb-xl-0 mb-3">
<div class="col-lg-3 col-md-4 col-sm-6">
<a href="{{ route('home') }}" type="button"
class="btn fs-15 fw-500 btn-outline-primary w-100">
<i
class="fa-light {{ session('direction') == 2 ? 'fa-arrow-right-long' : 'fa-arrow-left-long' }} fw-600"></i>
<span class="fw-600 px-1">{{ trans('labels.return_to_shop') }}</span>
</a>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<button
class="btn btn-primary px-sm-4 fs-15 w-100 d-flex gap-3 justify-content-center align-items-center cart_checkout"
onclick="isopenclose('{{ URL::to('/isopenclose') }}','{{ $total_item_qty }}','{{ $order_total }}')">
<span class="fw-600 px-1">{{ trans('labels.continue') }}</span>
<i
class="fa-light {{ session('direction') == 2 ? 'fa-arrow-left-long' : 'fa-arrow-right-long' }} fw-600"></i>
<div class="loader d-none cart_checkout_loader"></div>
</button>
</div>
</div>
@else
@include('web.nodata')
@endif
</div>
</div>
</section>
@endsection
@section('scripts')
<script src="{{ url(env('ASSETSPATHURL') . 'web-assets/js/custom/cart.js') }}"></script>
@endsection