@extends('layouts.app') @section('title', 'Trajets') @section('page-title', 'Trajets') @push('styles') @endpush @section('content') @if(session('success'))
{{ session('success') }}
@endif
Recherche
Nouveau trajet
@forelse($trajets as $t) @php $typeLabel = match($t->type) { 'aller_simple' => ['AS', 'badge-as'], 'retour_simple' => ['RS', 'badge-rs'], default => ['A/R', 'badge-ar'], }; @endphp @empty @endforelse
Date Patient Type Départ Arrivée Total Actions
{{ $t->date_transport?->format('d/m/Y') }} {{ $t->transport_concernant ?? '—' }} {{ $typeLabel[0] }} {{ $t->depart_aller ?? $t->depart_retour ?? '—' }} @if($t->heure_depart_aller) {{ $t->heure_depart_aller }} @endif {{ $t->arrivee_aller ?? $t->arrivee_retour ?? '—' }} @if($t->heure_arrivee_aller) {{ $t->heure_arrivee_aller }} @endif {{ number_format($t->total_transport, 2, ',', ' ') }} €
@csrf @method('DELETE')
Aucun trajet enregistré.
@endsection