@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 }}
{{ $item['qty'] }}
RM {{ number_format($item['subtotal'], 2) }}
{{-- Add More Products --}}
Add More Products
{{-- Loaded via JS --}}
@endif
{{-- ══════════════════════════════════════ --}} {{-- RIGHT: Summary + Payment (merged) --}} {{-- ══════════════════════════════════════ --}} @if(!empty($items))
{{-- ── ORDER SUMMARY PANEL ── --}}

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) }}
{{-- Coupon --}}

Secure checkout · Demo mode

← Continue Shopping
{{-- ── PAYMENT PANEL (hidden initially) ── --}}
@endif
@endsection @push('scripts') @endpush