@php use App\Support\PdfText; $logo = \App\Support\Identite::cheminLogo(); $qty = static fn ($q): string => rtrim(rtrim(number_format((float) $q, 2, ',', ' '), '0'), ','); $object = PdfText::clean($deliveryNote->object); @endphp {{-- En-tête : logo + société à gauche, BON DE LIVRAISON à droite --}}
@if ($logo !== null) @endif
{{ $company['name'] }}
@if ($company['phone']){{ $company['phone'] }}@endif @if ($company['email']) · {{ $company['email'] }}@endif @if ($company['address'])
{{ $company['address'] }}@endif
BON DE LIVRAISON
N° {{ $deliveryNote->number }}
Date de livraison : {{ $deliveryNote->date?->format('d/m/Y') }} @if ($deliveryNote->quote)
Devis : {{ $deliveryNote->quote->number }}@endif
 
{{-- Émetteur / Livré à --}}
Émetteur
{{ $company['name'] }}
@if ($company['address']){{ $company['address'] }}
@endif @if ($company['ice'])ICE : {{ $company['ice'] }}@endif @if ($company['if']) · IF : {{ $company['if'] }}@endif
Livré à
{{ $deliveryNote->client_name }}
@if ($deliveryNote->client_address){!! nl2br(e($deliveryNote->client_address)) !!}
@endif @if ($deliveryNote->client_ice)ICE : {{ $deliveryNote->client_ice }}@endif
{{-- Objet --}} @if ($object)
Objet : {{ $object }}
@endif {{-- Désignations + quantités livrées (aucun montant) --}} @foreach ($deliveryNote->lines as $i => $line) @endforeach
N° Désignation Qté livrée Unité
{{ $i + 1 }} {!! nl2br(e(PdfText::clean($line->designation))) !!} {{ $qty($line->quantity) }} {{ $line->unit }}
{{-- Cases signature : prestataire / client (v1.2 §6 : cachet et signature optionnels) --}}
Cachet et signature du prestataire
@if (($stamp ?? null) && is_file($stamp)) Cachet @endif @if (($signature ?? null) && is_file($signature)) Signature @endif @if (! (($stamp ?? null) && is_file($stamp)) && ! (($signature ?? null) && is_file($signature)))
Nom et signature
@endif
Bon pour accord — client
Reçu le … — Nom et signature