@extends('reports.pdf.layout') @section('title', $data['meta']['title']) @php $meta = $data['meta']; $kpis = $data['kpis']; $vehicles = $data['vehicles']; $trajectory = $data['trajectory']; $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')
DADYCAR FLEET MANAGER

{{ $meta['title'] }}

Fiscalité {{ $meta['code'] }} {{ $meta['period']['label'] }} · {{ $meta['company_label'] }} · {{ $meta['total_vehicles'] }} véhicules · Généré le {{ $meta['generated_at']->locale('fr')->isoFormat('D MMMM YYYY') }}

Indicateurs LOM

Taux de verdissement réel
{{ $kpis['verdissement_rate']['value'] }}%
{{ $kpis['verdissement_rate']['delta_label'] }}
VFE intégrés (pondérés)
{{ $kpis['vfe_integrated']['value'] }}véh.
{{ $kpis['vfe_integrated']['delta_label'] }}
VFE manquants
{{ $kpis['vfe_missing']['value'] }}véh.
{{ $kpis['vfe_missing']['delta_label'] }}

Trajectoire LOM 2025–2030

@foreach ($trajectory as $t)
{{ $t['year'] }}
{{ $t['quota_pct'] }}%
@endforeach

Synthèse

@if (!empty($vehicles)) @foreach (array_slice($vehicles, 0, 12) as $v) @endforeach
Immatriculation Énergie CO₂ émission Km Date d'entrée au parc VFE ?
{{ $v['plate'] }} {{ $v['energy'] }} {{ $v['co2'] }} g/km {{ $fmtNum($v['km']) }} km {{ $v['park_entry_date'] }} {{ $v['is_vfe'] ? 'Oui ✓' : 'Non' }}
@if (count($vehicles) > 12)

Extrait des 12 premières lignes ({{ count($vehicles) }} véhicules au total). Liste complète dans l'export XLSX.

@endif @else

Aucun véhicule dans la fenêtre de renouvellement.

@endif @endsection