@php
$reservations = \App\Models\Reservation\Reservation::limit(5)->get();
@endphp
@foreach ($reservations as $reservation)
@endforeach
| {{ __("Réference")}} | #{{$reservation->reference??''}} |
| {{ __("Mission")}} | {{$reservation->mission->name??''}} |
| {{ __("Demandeur")}} | [#{{$reservation->employe->reference}}] {{$reservation->employe->first_name.' '.$reservation->employe->last_name??''}} |
| {{ __("Description")}} | {!! $reservation->description??'' !!} |
| {{ __("Date")}} | {{$reservation->date->format('Y-m-d H:i')??''}} |
| {{ __("Round trip")}} | {{$reservation->round_trip ? __('Yes') : __('No')}} |
| {{ __("Date of Round trip")}} | {{$reservation->date_round_trip->format('Y-m-d H:i')??''}} |
| {{ __("Départ")}} | @if ($reservation->depart_site) {{$reservation->depart_site->name}} @else {!! $reservation->depart !!} @endif |
| {{ __("Destination")}} | @if ($reservation->destination_site) {{$reservation->destination_site->name}} @else {!! $reservation->destination !!} @endif |
| {{ __("Status")}} | @switch($reservation->status) @case('pending') {{ __('Pending')}} @break @case('accepted') {{ __('Accepted')}} @break @case('rejected') {{ __('Rejected')}} @break @case('canceled') {{ __('Canceled')}} @break @endswitch |
| {{ __("Priority")}} | @switch($reservation->priority) @case('low') {{ __('Low')}} @break @case('medium') {{ __('Medium')}} @break @case('high') {{ __('High')}} @break @case('urgent') {{ __('Urgent')}} @break @endswitch |
| {{ __("Passagers")}} {{ $reservation->nb_places}} |
|