@extends('layouts.app') @section('content')

Shopping Cart

@if(count($items) > 0)
{{-- Cart Items --}}
@foreach($items as $id => $item)
{{ $item['name'] }}
{{ $item['name'] }}

৳{{ number_format($item['price'], 2) }} each

৳{{ number_format($item['price'] * $item['quantity'], 2) }}

@endforeach
{{-- Order Summary --}}

Order Summary

{{-- Coupon --}}
@csrf
@if($coupon) @method('DELETE') @else @endif
{{-- Totals --}}
Subtotal ৳{{ number_format($subtotal, 2) }}
@if($discount > 0)
Discount -৳{{ number_format($discount, 2) }}
@endif
Shipping Calculated at checkout
Total ৳{{ number_format($subtotal - $discount, 2) }}
Proceed to Checkout Continue Shopping
@else {{-- Empty Cart --}}

Your cart is empty

Looks like you haven't added anything to your cart yet.

Start Shopping
@endif
@push('scripts') @endpush @endsection