@php $shipment = $order->shipments->first(); function money($amount) { return number_format((float) $amount, 2, ',', ' ') . ' €'; } $paymentStatusLabel = match($order->payment_status) { 'paid' => 'PAYEE', 'pending' => 'EN ATTENTE', 'failed' => 'ÉCHEC', 'refunded' => 'REMBOURSÉE', default => strtoupper($order->payment_status ?? 'INCONNU'), }; $sellerName = $order->seller->company_name ?? $order->seller->name ?? config('app.name'); @endphp
Logo
{{ __('messages.billing') }} • {{ __('messages.client_document') }}
{{ __('messages.vendor') }}
{{ $sellerName }}
@if(!empty($order->seller?->name) && ($order->seller->company_name ?? null) && $order->seller->name !== $order->seller->company_name)
{{ $order->seller->name }}
@endif @if(!empty($order->seller?->address))
{{ $order->seller->address }}
@endif @if(!empty($order->seller?->postal_code) || !empty($order->seller?->city))
{{ $order->seller->postal_code ?? '' }} {{ $order->seller->city ?? '' }} {{ $order->seller->country }}
@endif @if(!empty($order->seller?->email))
{{ $order->seller->email }}
@endif @if(!empty($order->seller?->phone))
{{ $order->seller->phone }}
@endif @if(!empty($order->seller?->siret))
SIRET : {{ $order->seller->siret }}
@endif @if(!empty($order->seller?->vat_number))
TVA : {{ $order->seller->vat_number }}
@endif
{{ __('messages.accounting_document') }}

{{ __('messages.invoice_invoice') }}

N° INV-{{ $order->order_number }}
{{ __('messages.issued_on') }} {{ $order->created_at?->format('d.m.Y') }}
{{ __('messages.' . strtolower($order->payment_status)) }}
{{ __('messages.client') }}
{{ $order->buyer->name ?? 'Client' }}
@if(!empty($order->buyer->company_name)) {{ $order->buyer->company_name }}
@endif @if(!empty($order->buyer->address)) {{ $order->buyer->address }}
@endif @if(!empty($order->buyer->postal_code) || !empty($order->buyer->city)) {{ $order->buyer->postal_code ?? '' }} {{ $order->buyer->city ?? '' }} {{ $order->buyer->country }}
@endif @if(!empty($order->buyer->email)) {{ $order->buyer->email }} @endif @if(!empty($order->buyer->phone)) {{ $order->buyer->phone }} @endif
{{ __('messages.order') }}
{{ $order->order_number }}
{{ __('messages.date_order_details') }} {{ $order->created_at?->format('d/m/Y') }}
{{ __('messages.regulation') }}
{{ __('messages.total_amount') }} {{ money($order->total) }}
{{ __('messages.statut_order_details') }} {{ __('messages.' . strtolower($order->payment_status)) }}
@foreach($order->items as $item) @php $taxRate = $item->product?->product_tax ?? 0; $ht = $item->subtotal / (1 + $taxRate / 100); @endphp @endforeach
{{ __('messages.designation') }} {{ __('messages.quantity') }} {{ __('messages.unit_price') }} {{ __('messages.tax') }} {{ __('messages.amount') }}
{{ $item->product_name }}
@foreach($item->selected_variants as $variantName => $variantValue)

{{ __('messages.' . $variantName) }} : {{ __('messages.' . $variantValue) }}
@endforeach
@if($item->delivery_mode)
{{ __('messages.shipping') }} {{ __('messages.' . $item->delivery_mode) }} @endif @if($item->relay_point_name)
{{ __('messages.relay_point_invoice') }} {{ $item->relay_point_name }} @endif
{{ $item->quantity }} {{ money($item->unit_price) }} {{ money($ht) }} ({{ number_format($taxRate, 0) }}%) {{ money($item->subtotal) }}
{{ __('messages.note') }}
{{ __('messages.thanks_for_order') }}
{{ __('messages.invoice_to_reference') }} {{ $order->order_number }}.
{{ __('messages.under_total_product') }} {{ money($order->products_total) }}
{{ __('messages.shipping') }} {{ money($order->shipping_total) }}
{{ __('messages.total_ttc') }} {{ money($order->total) }}