{{-- resources/views/pages/cart.blade.php --}} @extends('layouts.app') @section('title','Your Cart') @section('content')
@if(session('error'))
{{ session('error') }}
@endif @if(empty($totals['items']))
Your basket is empty

Looks like you haven't added any products to your basket yet.

@else
Continue shopping

Your Basket ({{ $totals['distinct_items'] }})

You have {{ $totals['total_quantity'] }} items in your cart

@foreach($totals['items'] as $ci)
Shopping item
{{ $ci['title'] }}

{{ $ci['front_metal'] ?? '—' }}

@if(!empty($ci['weight_g'])) · {{ number_format($ci['weight_g'],3) }} g @endif

-
+
£{{ number_format($ci['unit'], 2) }}
Line: £{{ number_format($ci['line'], 2) }}
@endforeach

Order Summary

Subtotal ( {{ $totals['total_quantity'] }} )

£{{ number_format($totals['subtotal'], 2) }}
VAT £{{ number_format($totals['vat'], 2) }}

Total

£{{ number_format($totals['total'], 2) }}
{{-- If guest, pressing this will redirect to login (auth middleware on /checkout) --}} @auth @endauth {{-- If the user is a guest, show Login / Register --}} @guest @endguest
@endif
@push('scripts') @endpush @endsection