@extends('layouts.customer') @section('title', 'Shopping Cart - Winery') @section('content')
@if(count($cartItems) > 0)
@foreach($cartItems as $item)
@if($item['wine']->image_url) {{ $item['wine']->wine_name }} @else @endif

{{ $item['wine']->wine_name }}

{{ $item['wine']->grapeVariety->variety_name ?? 'N/A' }}

Vintage: {{ $item['wine']->vintage }}

{{ number_format($item['wine']->price_per_bottle, 2) }} € / pcs

@csrf @method('PATCH')
{{ number_format($item['item_total'], 2) }} €
@csrf @method('DELETE')
@endforeach
@csrf @method('DELETE')

Order Summary

Products {{ array_sum(array_column($cartItems, 'quantity')) }} pcs
Subtotal {{ number_format($total, 2) }} €
Total {{ number_format($total, 2) }} €
@auth

Billing Information

@csrf
@error('full_name') {{ $message }} @enderror
@error('phone') {{ $message }} @enderror
@error('country') {{ $message }} @enderror
@error('street') {{ $message }} @enderror
@error('city') {{ $message }} @enderror
@error('postal_code') {{ $message }} @enderror
@else @endauth Continue Shopping
@else

Your cart is empty

Add wine from our catalog

Go to Shop
@endif
@endsection