@extends('reports.pdf.layout') @section('title', $data['meta']['title']) @php $meta = $data['meta']; $kpis = $data['kpis']; $limit = \App\Services\Api\V1\Fleet\Reports\Generators\Telematique\TL08Generator::PDF_DETAIL_LIMIT; $alerts = array_values(array_filter($data['lines'], fn ($l) => $l['level_key'] >= \App\Services\Api\V1\Fleet\Reports\Generators\Telematique\TL08Generator::LEVEL_WATCH)); $shown = array_slice($alerts, 0, $limit); $hidden = count($alerts) - count($shown); $fmt = function ($v, $decimals = 0, $unit = '') { if ($v === null || !is_numeric($v)) return '—'; return trim(number_format((float) $v, $decimals, ',', ' ') . ' ' . $unit); }; $euro = fn ($v) => $v > 0 ? $fmt($v, 2, '€') : '—'; @endphp @section('content')
| Filiale | Conducteurs | Journées | Trajets WE | Km WE | Alertes fortes | À surveiller | Carte WE | Péage WE |
|---|---|---|---|---|---|---|---|---|
| {{ $s['subsidiary'] }} | {{ $s['drivers'] }} | {{ $s['days'] }} | {{ $s['trips'] }} | {{ $fmt($s['km'], 0) }} | {{ $s['strong'] }} | {{ $s['watch'] }} | {{ $euro($s['card']) }} | {{ $euro($s['toll']) }} |
Aucune activité le week-end sur la période.
@endif| Type | Paiements | Jeudi | Vendredi | Week-end | Lundi | Nuits en semaine | Autres moments | Total |
|---|---|---|---|---|---|---|---|---|
| @if ($t['type'] === 'Total')Total@else{{ $t['type'] }}@endif | {{ $t['count'] }} | {{ $euro($t['thu']) }} | {{ $euro($t['fri']) }} | {{ $euro($t['we']) }} | {{ $euro($t['mon']) }} | {{ $euro($t['night']) }} | {{ $euro($t['other']) }} | {{ $euro($t['total']) }} |
| Niveau | Week-end | Conducteur | Véhicule | Filiale | Carte jeu. | Carte ven. | Trajets ven. | Carte WE | Trajets WE | Km WE | Péage | Carte lun. | Motifs |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $l['level'] }} | {{ $l['weekend'] }} | {{ $l['driver'] }} | {{ $l['plate'] }} | {{ $l['subsidiary'] }} | {{ $euro($l['card_thu']) }} | {{ $euro($l['card_fri']) }} | {{ $l['fri_trips'] }} | {{ $euro($l['we_card']) }} | {{ $l['we_trips'] }} | {{ $fmt($l['we_km'], 1) }} | {{ $euro($l['toll']) }} | {{ $euro($l['card_mon']) }} | {{ $l['reasons'] }} |
{{ $hidden }} autres lignes : la liste complète est dans l'export Excel.
@endif @elseAucun week-end à surveiller sur la période.
@endif| Conducteur affecté | Véhicule | Filiale | Nuits | Trajets | Km | Carte de nuit | Dernier trajet |
|---|---|---|---|---|---|---|---|
| {{ $n['driver'] }} | {{ $n['plate'] }} | {{ $n['subsidiary'] }} | {{ $n['nights'] }} | {{ $n['trips'] }} | {{ $fmt($n['km'], 1) }} | {{ $euro($n['card']) }} | {{ $n['last'] }} |
Aucun trajet de nuit en semaine.
@endifAlerte forte : carte utilisée pendant le week-end, ou véhicule roulant le week-end avec un plein jeudi/vendredi et moins de {{ $meta['settings']['min_friday_trips'] }} trajets le vendredi, ou avec un plein le lundi. À surveiller : véhicule roulant le week-end, télépéage le week-end, ou l'un de ces pleins. Les heures sont celles de Paris.
@endsection