@extends('frontendLayout') @section('frontend_layout') @push('frontend_css') Your Cart – ShopSphere @endpush

Your Cart

{{ count($cartItems) }} {{ count($cartItems) === 1 ? 'item' : 'items' }}  ·  Continue Shopping

@if (session('error'))
{{ session('error') }}
@endif @if (empty($cartItems))

Your cart is empty.

Browse Shops
@else
{{-- Items Table --}}
@foreach ($cartItems as $key => $item) @php $cartKey = $item['cart_item_key'] ?? $item['product_id']; @endphp @endforeach
Product Qty Price Subtotal
{{ $item['name'] }}

{{ $item['name'] }}

{{ $item['shop_name'] }}
@if (!empty($item['variant_label'])) {{ $item['variant_label'] }} @endif
{{ $item['quantity'] }}
{{ number_format((float) $item['unit_price'], 0) }}৳ {{ number_format(((float) $item['unit_price']) * ((int) $item['quantity']), 0) }}৳
{{-- Checkout Sidebar --}}
@endif
@endsection @push('frontend_js') @endpush