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

{{ __('shop.cart_title') }}

{{-- === Colonne de gauche : Adresses + Panier === --}}
{{-- === Adresses === --}}

{{ __('shop.checkout_address_title') }}

@php $addresses = auth()->user()?->addresses ?? []; @endphp @if ($addresses->count())
@foreach($addresses as $address)
is_default ? $address->id : null) == $address->id ? 'checked' : '' }}>
@endforeach
@else @endif
{{ __('shop.checkout_summary_title') }}
{{ __('shop.cart_subtotal') }} {{ number_format($subtotal, 2, ',', ' ') }} €
@if ($discountAmount > 0) {{-- come from ViewServiceProvider --}}
{{ __('shop.cart_discount_label') }} ({{ $couponCode }}) {{ number_format($discountAmount, 2, ',', ' ') }} €
@endif
{{ __('shop.cart_tva_label') }} ({{ $tvaRate * 100 }}%) {{ number_format($cartTva, 2, ',', ' ') }} €
{{ __('shop.checkout_summary_shipping') }} {{ __('shop.checkout_summary_select_address') }}
Total {{ number_format($totalafterdiscountandtva, 2, ',', ' ') }} €
@csrf
{{ __('shop.checkout_cancel_order') }}

{{ __('shop.cart_free_shipping', ['amount' => $shippingfree_amount]) }}

@endsection @section('scripts') @endsection