@extends('layouts.main-app') @section('title', 'Cart') @section('content') @include('layouts.navbar')

Cart


@foreach ($cartItems as $id => $item) @endforeach
Product Price Quantity Subtotal
{{-- {{ $item['name'] }} --}} {{ $item['name'] }} ₱{{ number_format($item['price'], 2) }}
@csrf @method('PUT')
₱{{ number_format($item['price'] * $item['quantity'], 2) }}
@csrf @method('DELETE')

Cart Total

Subtotal

₱{{ number_format($total, 2) }}


Shipping

Discount

Tax

TBD

-₱0.00

₱0.00


Estimated Total

₱{{ number_format($total, 2) }}

@php $isCartEmpty = session()->get('cart', []) === []; // Check if the cart is empty @endphp PROCEED TO CHECKOUT CONTINUE SHOPPING
@endsection