@php use App\Support\Money; $countries = config('renard-rouge.shipping.countries'); $format = fn (?array $address) => $address ? collect([$address['company'] ?? null, trim(($address['first_name'] ?? '').' '.($address['last_name'] ?? '')), $address['line1'] ?? null, $address['line2'] ?? null, trim(($address['postcode'] ?? '').' '.($address['city'] ?? '')), isset($address['country']) && $address['country'] !== 'FR' ? ($countries[$address['country']] ?? null) : null])->filter()->all() : []; @endphp

Passée le

{{ $order->created_at->translatedFormat('j F Y') }}

Statut

{{ $order->status->getLabel() }}

Paiement

{{ $order->payment_status->getLabel() }}

Réception

{{ $order->shipping_method }}

@if ($order->pickup_date)

Date prévue

{{ $order->pickup_date->translatedFormat('j F Y') }}

@endif
@foreach ($order->items as $item) @endforeach
{{ $item->product_name }}@if ($item->variant_name){{ $item->variant_name }}@endif {{ $item->quantity }} × {{ Money::format($item->unit_price) }} {{ Money::format($item->total) }}
Produits
{{ Money::format($order->subtotal) }}
Réception
{{ (float) $order->shipping_total > 0 ? Money::format($order->shipping_total) : 'Offert' }}
Dont TVA
{{ Money::format($order->tax_total) }}
Total TTC
{{ Money::format($order->total) }}

{{ $order->is_pickup ? 'Coordonnées' : 'Livraison' }}

{!! implode('
', array_map('e', $format($order->shipping_address))) !!}

Facturation

{!! implode('
', array_map('e', $format($order->billing_address))) !!}

@if ($order->invoice)

Documents

@endif