@extends('reports.pdf.layout')
@section('title', $data['meta']['title'])
@php
$meta = $data['meta'];
$kpis = $data['kpis'];
$top = $data['top'];
$evolution = $data['evolution'];
$fmtNum = function ($v, $unit = '') {
if ($v === null) return '—';
$s = is_numeric($v) ? number_format((float) $v, 0, ',', ' ') : (string) $v;
return trim($s . ' ' . $unit);
};
$barW = 320; $barH = 140; $barPadX = 28; $barPadY = 22;
$maxV = 0;
foreach ($evolution as $e) { $maxV = max($maxV, (float) $e['aen']); }
$maxV = max($maxV, 1);
$bc = count($evolution);
$bs = $bc > 0 ? ($barW - 2 * $barPadX) / $bc : 0;
$bw = $bs * 0.55;
@endphp
@section('content')
DADYCAR FLEET MANAGER
{{ $meta['title'] }}
Fiscalité
{{ $meta['code'] }}
Période : {{ $meta['period']['label'] }} · {{ $meta['site_label'] }} ·
{{ $meta['beneficiaries'] }} bénéficiaires ·
Généré le {{ $meta['generated_at']->locale('fr')->isoFormat('D MMMM YYYY') }}
Indicateurs clés
AEN total mensuel
{{ $fmtNum($kpis['aen_monthly']['value']) }}{{ $kpis['aen_monthly']['unit'] }}
{{ $kpis['aen_monthly']['delta_label'] }}
Cotisations patronales
{{ $fmtNum($kpis['cotisations']['value']) }}{{ $kpis['cotisations']['unit'] }}
{{ $kpis['cotisations']['delta_label'] }}
AEN moyen / cond.
{{ $kpis['aen_avg_driver']['value'] !== null ? number_format($kpis['aen_avg_driver']['value'], 1, ',', ' ') : '—' }}{{ $kpis['aen_avg_driver']['unit'] }}
{{ $kpis['aen_avg_driver']['delta_label'] }}
AEN annuel
{{ $fmtNum($kpis['aen_annual']['value']) }}{{ $kpis['aen_annual']['unit'] }}
{{ $kpis['aen_annual']['delta_label'] }}
Top 6 conducteurs — AEN mensuel
@if (!empty($top))
| Conducteur |
Méthode |
AEN |
Cotis. |
@foreach ($top as $r)
| {{ $r['driver'] }} |
{{ $r['method'] }} |
{{ $fmtNum($r['aen'], '€') }} |
{{ $fmtNum($r['cotis'], '€') }} |
@endforeach
@else
Aucun bénéficiaire.
@endif
Évolution AEN + cotisations (6 mois)
AEN
Cotisations
Note paie
Fichier d'intégration paie disponible le 5 du mois. Données transmises à la DRH le 5e jour ouvré chaque mois pour son intégration URSSAF.
@endsection