@extends('layouts.app') @section('title', 'My Cart - Kita Konbini') @section('content')

My Cart

{{-- LEFT: Cart Items --}}

Cart Items

{{ count($items) }} items
@if(empty($items))
🛒

Your cart is empty

Add some products first!

Shop Now
@else @if(session('success'))
✅ {{ session('success') }}
@endif @foreach($items as $item) @endforeach
Product Qty Price
@if($item['product']->image) @else 🛒 @endif
{{ $item['product']->name }}
Shelf: {{ $item['product']->shelf_code }}
{{ $item['product']->category->name }}
Stock: {{ $item['product']->stock }}
RM {{ number_format($item['subtotal'], 2) }}
{{-- Add More Products --}}
Add More Products
{{-- Loaded via JS --}}
@endif
{{-- RIGHT: Summary + Payment --}} @if(!empty($items))

Order Summary

Subtotal ({{ count($items) }} items) RM {{ number_format($total, 2) }}
Delivery Free
SST (8%) RM {{ number_format($total * 0.08, 2) }}

Total RM {{ number_format($total * 1.08, 2) }}

Secure checkout · Demo mode

← Continue Shopping
@endif
@endsection @push('scripts') @endpush