@extends('layout.app') @section('title', __('Planifications')) @section('active_planifications', 'active') @section('data_col', '2-columns') @section('body_class', '2-columns') @section('content')
@if ($planification->vehicule) @endif @if ($planification->driver) @endif @if ($planification->depart_type) @endif @if ($planification->destination_type) @endif @if ($planification->passagers->count()) @endif
{{ __("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}}
{{ __("Véhicule")}}{{$planification->vehicule ? $planification->vehicule->immatriculation.' | '.$planification->vehicule->marque: ''}}
{{ __("Driver")}} {{$planification->driver ? '#'.$planification->driver->reference.' '.$planification->driver->first_name.' '.$planification->driver->last_name??'' : ''}} {!! $planification->driver ? '('.__('Phone').': '.$planification->driver->phone.')'??'' : '' !!}
{{ __("Status")}} @if ($planification->active) {{ __("Activé")}} @else {{ __("Désactivé")}} @endif
{{ __("Départ")}} @if ($planification->depart_type == 'site') {{$planification->depart_site->name}} @elseif($planification->depart_type == 'libre') {!! $planification->depart !!} @endif
{{ __("Destination")}} @if ($planification->destination_type == 'site') {{$planification->destination_site->name}} @elseif($planification->destination_type == 'libre') {!! $planification->destination !!} @endif
{{ __("Passagers")}} @foreach ($planification->passagers as $passager) {{'#'.$passager->employe->reference.' '.$passager->employe->first_name.' '.$passager->employe->last_name}} @endforeach
@endsection @section('modals') @endsection @push('scripts') @endpush