@extends('reports.pdf.layout') @section('title', $data['meta']['title']) @php $meta = $data['meta']; $k = $data['kpis']; $rows = $data['rows']; $series = $data['return_series']; $fmtNum = function ($v, $unit = '') { if ($v === null) return '—'; $s = is_numeric($v) ? number_format((float) $v, (is_int($v) || ((float) $v) == (int) $v) ? 0 : 1, ',', ' ') : (string) $v; return trim($s . ' ' . $unit); }; // Bar chart for the next-14-days returns. $barW = 480; $barH = 140; $barPad = 30; $maxBar = max(1, max(array_map(fn ($s) => (int) $s['count'], $series))); $barWidth = (int) (($barW - 2 * $barPad) / max(1, count($series))) - 4; @endphp @section('content')
Aucune restitution prévue.
@endif| Plaque | Véhicule | Garage | Entrée atelier | Restitution prévue | Jours |
|---|---|---|---|---|---|
| {{ $r['plate'] ?? '—' }} | {{ $r['mark_model'] ?? '—' }} | {{ $r['garage'] ?? '—' }} | {{ $r['schedule_date'] ? \Carbon\Carbon::parse($r['schedule_date'])->locale('fr')->isoFormat('D MMM') : '—' }} | {{ $r['expected_return'] ? \Carbon\Carbon::parse($r['expected_return'])->locale('fr')->isoFormat('D MMM') : '—' }} | {{ $r['days_in_workshop'] ?? '—' }} |
Restitution prévue estimée à entrée atelier + 3 jours (cible standard) — module de planification atelier à venir.
@elseAucun véhicule en atelier sur la sélection.
@endif @endsection