@php($euro = fn ($v) => number_format((float) $v, 2, ',', ' ') . ' €')

Commande {{ $order->reference }}

{{ optional($order->created_at)->format('d/m/Y') }}  •  {{ $order->statusMeta()['label'] }}  •  {{ optional($order->company)->name }}
@foreach ($order->lines as $line)
{{ $line->box_name }} — {{ $line->install_mode === 'pro' ? 'Installation professionnelle' : 'Auto-installation' }}
@foreach ($line->vehicles as $v) @endforeach
ImmatriculationModèleSiteStatut
{{ $v->vehicle_plate }} {{ $v->vehicle_model }} {{ $v->site_name }} {{ $v->install_status }}
{{ $line->quantity }} × {{ $euro($line->unit_price) }} = {{ $euro($line->line_total) }}
@endforeach
Livraison
@foreach ($order->shipments as $s) @endforeach
SiteAdresseContactUnités
{{ $s->site_name }} {{ trim($s->address . ' ' . $s->postal_code . ' ' . $s->city) }} {{ $s->contact_name }} — {{ $s->contact_phone }} {{ $s->units }}
Récapitulatif
@if ((float) $order->discount_total > 0) @endif
Sous-total matériel{{ $euro($order->hardware_total) }}
Installation{{ $euro($order->install_total) }}
Livraison{{ $euro($order->delivery_total) }}
Remise flotte- {{ $euro($order->discount_total) }}
Total HT{{ $euro($order->total_ht) }}
TVA ({{ rtrim(rtrim(number_format((float) $order->vat_rate, 2), '0'), '.') }} %){{ $euro($order->vat_amount) }}
Total TTC{{ $euro($order->total_ttc) }}
Abonnement mensuel{{ $euro($order->subscription_monthly) }} / mois