| {{ __("Réference")}} | #{{$planification->reference??''}} |
| {{ __("Type")}} |
@switch($planification->type)
@case('weekly') {{ __("Weekly")}} : {{ $planification->extend_type_weekly}} @break
@case('daily') {{ __("Daily")}} @break
@case('specific_day') {{ __("Specific day")}} : {{ implode(',', $planification->extend_type_specific_day) }} @break
@default
@endswitch
|
| {{ __("Hour")}} | {{$planification->start_hour}} |
@if ($planification->vehicule)
| {{ __("Véhicule")}} | {{$planification->vehicule ? $planification->vehicule->immatriculation.' | '.$planification->vehicule->marque: ''}} |
@endif
@if ($planification->driver)
| {{ __("Driver")}} |
{{$planification->driver ? '#'.$planification->driver->reference.' '.$planification->driver->first_name.' '.$planification->driver->last_name??'' : ''}}
{!! $planification->driver ? '('.__('Phone').': '.$planification->driver->phone.')'??'' : '' !!}
|
@endif
| {{ __("Status")}} |
@if ($planification->active)
{{ __("Activé")}}
@else
{{ __("Désactivé")}}
@endif
|
@if ($planification->depart_type)
| {{ __("Départ")}} |
@if ($planification->depart_type == 'site')
{{$planification->depart_site->name}}
@elseif($planification->depart_type == 'libre')
{!! $planification->depart !!}
@endif
|
@endif
@if ($planification->destination_type)
| {{ __("Destination")}} |
@if ($planification->destination_type == 'site')
{{$planification->destination_site->name}}
@elseif($planification->destination_type == 'libre')
{!! $planification->destination !!}
@endif
|
@endif
@if ($planification->passagers->count())
| {{ __("Passagers")}} |
@foreach ($planification->passagers as $passager)
{{'#'.$passager->employe->reference.' '.$passager->employe->first_name.' '.$passager->employe->last_name}}
@endforeach
|
@endif