@extends('reports.pdf.layout') @section('title', $data['meta']['title']) @php $meta = $data['meta']; $kpis = $data['kpis']; $rows = $data['rows']; $fmtNum = function ($v, $unit = '') { if ($v === null) return '—'; $s = is_numeric($v) ? number_format((float) $v, 0, ',', ' ') : (string) $v; return trim($s . ' ' . $unit); }; @endphp @section('content')
| Véhicule | Modèle | Bailleur | Loyer | Fin | Restant | Km contr. | Km réel | Écart | Pénalité |
|---|---|---|---|---|---|---|---|---|---|
| {{ $r['vehicle'] }} | {{ $r['model'] }} | {{ $r['lessor'] }} | {{ $r['rent'] !== null ? $fmtNum($r['rent'], '€') : '—' }} | {{ $r['end_date'] ?? '—' }} | {{ $r['remaining'] }} | {{ $fmtNum($r['km_contract'], 'km') }} | {{ $fmtNum($r['km_actual'], 'km') }} | {{ $r['gap'] !== null ? ($r['gap'] >= 0 ? '+' : '') . $fmtNum($r['gap'], 'km') : '—' }} | {{ $fmtNum($r['penalty'], '€') }} |
Aucun contrat actif pour les filtres choisis.
@endif @endsection