@php $items = $items ?? collect(); $cartCount = $cartCount ?? 0; $cartTotal = $cartTotal ?? 0; @endphp
{{ __('messages.cart') }} ({{ $cartCount }} {{ __('messages.product') }})
@if($items->count() > 0) @foreach($items as $item) @if($item->isDish()) @php $dish = $item->dish; $dishThumb = $dish?->firstPhotoPath(); @endphp @continue(!$dish)
@if($dishThumb) {{ $dish->name }} @else {{ $dish->name }} @endif
{{ $dish->name }}
@if(!empty($item->selected_variants) && is_array($item->selected_variants))
    @foreach($item->selected_variants as $supplementLabel => $supplementPrice)
  • {{ label_or_raw($supplementLabel) }} {{ $supplementPrice }}
  • @endforeach
@endif
{{ $item->quantity }} x {{ display_price($item->unitPrice(), $item->currency()) }}
{{-- Mode de livraison choisi pour ce plat. Les frais sont stockés en EUR sur la ligne, comme partout ailleurs. --}} @if($item->delivery_mode === 'click_collect' || $item->delivery_mode === 'restaurant_delivery')
{{ $item->delivery_mode === 'click_collect' ? __('restaurant.delivery_click_collect') : __('restaurant.delivery_by_restaurant') }} : @if($item->hasFreeShipping()) {{ __('messages.free_shipping_offered') }} @else {{ (float) $item->carrier_price > 0 ? display_price($item->carrier_price, 'EUR') : __('messages.free_delivery') }} @endif
@endif
×
@continue @endif @php $product = $item->product; $firstImage = $product?->images?->first(); @endphp @continue(!$product)
@if($firstImage) {{ $product->product_name }} @else {{ $product->product_name }} @endif
{{ $product->product_name }}
    @if(!empty($item->selected_variants)) @php $variantColors = $item->variantColors(); @endphp @foreach($item->selected_variants as $key => $value)
  • {{ label_or_raw($key) }} : @include('front.partials.variant-swatch', ['color' => $variantColors[$key] ?? null, 'size' => 10]) {{ label_or_raw($value) }}
  • @endforeach @endif
{{ $item->quantity }} x {{ display_price($product->final_price, $product->currency) }}
×
@endforeach
{{ __('messages.sub_total') }} {{ number_format((float) ($cartTotal ?? 0), 2, ',', ' ') }} {{ currency_symbol(display_currency()) }}
{{ __('messages.continue_shopping') }} {{ __('messages.view_cart') }}
@else
{{ __('messages.empty_cart') }}
@endif