{{--
--}}
Back
@csrf
@if (isset($selectedCategoryId)) @endif
{{ $orderCode ?? 0 }}
@foreach ($categories as $category)
@csrf
@endforeach
@if ((isset($selectedCategoryId) || request('searchKey')) && $productbyCategory->isNotEmpty())
@foreach ($productbyCategory as $item)
@php $selectedSize = $existingCart->size ?? ($item->sizes[0]->size ?? 'M'); @endphp
@csrf @if(count($item->sizes) === 1) @endif
{{ $item->name }} {{ $item->name }}

Price: {{ number_format($item->sizes[0]->price ?? 0) }}

@if(count($item->sizes) > 0) @endif
@endforeach
@endif
@if (isset($cartItems) && $cartItems->isNotEmpty()) @foreach ($cartItems as $item) @endforeach @else @endif
Items Qty Price Size Discount Amount

{{ $item->name }}

{{ $item->cart_qty }}

{{ number_format($item->price) }}

{{ strtoupper(substr($item->size, 0, 1)) }}

{{ intval($item->discount_percentage) }}%

{{ number_format($item->discountPrice * $item->cart_qty) }}

No items in the cart.
@php $orderType = request('orderType', ''); $deliveryLocationId = request('deliveryLocation'); $deliveryLocations = \App\Models\DeliveryFees::all(); // fetch from DB @endphp
@if ($orderType === 'delivery')
@endif
Subtotal {{ number_format($subTotal ?? 0, 0) }}
Tax {{ number_format($taxAmount ?? 0, 0) }}
@php $orderType = request('orderType', ''); $deliveryLocationId = request('deliveryLocation'); $selectedLocation = \App\Models\DeliveryFees::find($deliveryLocationId); $deliveryFee = $selectedLocation ? $selectedLocation->fees : 0; @endphp @if (!empty($orderType) && $orderType === 'delivery')
Delivery Fee {{ number_format($deliveryFee, 0) }}
@endif
Total {{ number_format($total ?? 0, 0) }} {{-- --}}
Select Payment Method
@csrf
@csrf