@extends('layouts.app') @section('title', 'Keranjang Belanja | Trisna Monel') @section('extra_css') @endsection @section('content')

Keranjang Belanja

Tinjau produk monel premium pilihan Anda sebelum menyelesaikan transaksi

@if(session('success'))
{{ session('success') }}
@endif @if($cartItems->isEmpty())

Keranjang Anda Kosong

Anda belum menambahkan produk monel premium ke keranjang Anda.

Mulai Belanja
@else
@foreach($cartItems as $item)
{{ $item->product->name }}
{{ $item->product->category->name ?? 'Monel Premium' }}

{{ $item->product->name }}

@if($item->variation) Ukuran: {{ $item->variation }} @endif
Rp {{ number_format($item->product->getPriceForVariation($item->variation), 0, ',', '.') }}
Rp {{ number_format($item->product->getPriceForVariation($item->variation) * $item->quantity, 0, ',', '.') }}
@endforeach

Ringkasan Belanja

Total Item {{ $cartItems->sum('quantity') }}
Total Berat {{ $totalWeight }} gram
Subtotal Rp {{ number_format($totalPrice, 0, ',', '.') }}
Lanjutkan ke Checkout
@endif
@endsection @section('extra_js') @endsection