@extends('reports.pdf.layout')
@section('title', $data['meta']['title'])
@php
$meta = $data['meta'];
$kpis = $data['kpis'];
$synthesis = $data['synthesis'];
$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 = 480; $barH = 160; $barPadX = 30; $barPadY = 22;
$maxV = 0;
foreach ($evolution as $e) { $maxV = max($maxV, (float) $e['amount']); }
$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['total_vehicles'] }} véhicules ·
Généré le {{ $meta['generated_at']->locale('fr')->isoFormat('D MMMM YYYY') }}
Indicateurs clés
Charge fiscale totale
{{ $fmtNum($kpis['total_tax_load']['value']) }}{{ $kpis['total_tax_load']['unit'] }}
{{ $kpis['total_tax_load']['delta_label'] }}
Taxes récurrentes T1
{{ $fmtNum($kpis['recurring_taxes']['value']) }}{{ $kpis['recurring_taxes']['unit'] }}
{{ $kpis['recurring_taxes']['delta_label'] }}
Taxes ponctuelles T1
{{ $fmtNum($kpis['punctual_taxes']['value']) }}{{ $kpis['punctual_taxes']['unit'] }}
{{ $kpis['punctual_taxes']['delta_label'] }}
Prévision
{{ $fmtNum($kpis['forecast_2026']['value']) }}{{ $kpis['forecast_2026']['unit'] }}
{{ $kpis['forecast_2026']['delta_label'] }}
Synthèse trimestrielle des taxes et redevances (€)
| Poste fiscal |
T1 |
T2 |
T3 |
T4 |
Total annuel |
@foreach ($synthesis as $r)
| {{ $r['item'] }} |
{{ $fmtNum($r['t1'], '€') }} |
{{ $fmtNum($r['t2'], '€') }} |
{{ $fmtNum($r['t3'], '€') }} |
{{ $fmtNum($r['t4'], '€') }} |
{{ $fmtNum($r['total'], '€') }} |
@endforeach
Évolution de la charge fiscale trimestrielle
@if ($maxV > 0)
@endif
@endsection