{{-- resources/views/pdf/devis-equisulky.blade.php --}} @php // Petites aides function date_fr($dmy){ try { return \Carbon\Carbon::parse($dmy)->format('d/m/Y'); } catch(\Exception $e){ return $dmy; } } // Dans $row->date_echeance on a "d-m-Y" (hérité) — on garde tel quel pour placer le mois $echeanceParts = explode('-', (string)$row->date_echeance); $moisEcheance = $echeanceParts[1] ?? ''; @endphp