@extends('reports.pdf.layout') @section('title', $data['meta']['title']) @php $meta = $data['meta']; $kpis = $data['kpis']; $sites = $data['by_site']; $trucks = array_values(array_filter($data['by_vehicle'], fn ($v) => $v['unidentified'] > 0)); $limit = \App\Services\Api\V1\Fleet\Reports\Generators\Telematique\TL07Generator::PDF_DETAIL_LIMIT; $details = array_slice($data['unidentified_trips'], 0, $limit); $hidden = count($data['unidentified_trips']) - count($details); $fmt = function ($v, $decimals = 0, $unit = '') { if ($v === null) return '—'; return trim(number_format((float) $v, $decimals, ',', ' ') . ' ' . $unit); }; @endphp @section('content')
| Site | Camions | Trajets | Par badge | Par affectation | Sans identification | Km sans identification | Identifiés |
|---|---|---|---|---|---|---|---|
| {{ $s['site'] }} | {{ $s['vehicles'] }} | {{ $s['trips'] }} | {{ $s['badge'] }} | {{ $s['assignment'] }} | {{ $s['unidentified'] }} | {{ $fmt($s['km_unidentified'], 1) }} | {{ $fmt($s['identified_pct'], 1, '%') }} |
Aucun trajet sur la période.
@endif| Site | Camion | Modèle | Trajets | Sans identification | Km | Dernier trajet sans identification |
|---|---|---|---|---|---|---|
| {{ $v['site'] }} | {{ $v['plate'] }} | {{ $v['model'] }} | {{ $v['trips'] }} | {{ $v['unidentified'] }} | {{ $fmt($v['km_unidentified'], 1) }} | {{ $v['last_unidentified'] }} |
Tous les trajets de la période sont identifiés.
@endif @if (!empty($details))| Date | Départ | Arrivée | Site | Camion | Km | Durée | Adresse de départ | Adresse d'arrivée | Dernier conducteur identifié |
|---|---|---|---|---|---|---|---|---|---|
| {{ $t['date'] }} | {{ $t['start'] }} | {{ $t['end'] }} | {{ $t['site'] }} | {{ $t['plate'] }} | {{ $fmt($t['km'], 1) }} | {{ $t['duration'] }} | {{ $t['start_address'] }} | {{ $t['end_address'] }} | {{ $t['last_driver'] }} |
{{ $hidden }} autres trajets sans identification : la liste complète est dans l'export Excel.
@endif @endifUn trajet est identifié quand une affectation du camion le couvre : badge lu dans le camion ou affectation manuelle. Les heures sont celles de Paris.
@endsection