@extends('layout.app') @section('title') {{ __('Trips') }} @endsection @push('styles') @endpush @section('active_trips', 'active') @section('data_col', '2-columns') @section('body_class', '2-columns') @section('content')
{{ __('Trips') }} @if (count($permissions) > 1) @if(in_array('edit', $permissions)) {{ __('Edit') }} @endif @if(in_array('start', $permissions)) @endif @if(in_array('end', $permissions)) @endif @if(in_array('failed', $permissions)) @endif @if(in_array('overdue', $permissions)) @endif @endif
@if ($trip->start) @endif @if ($trip->end) @endif @if ($trip->status == "failed") @endif @if ($trip->status == "overdue") @endif
{{ __("Réference")}}#{{$trip->reference??''}}
{{ __("Crée par")}} [#{{$trip->employe->reference}}] {{$trip->employe->first_name.' '.$trip->employe->last_name??''}}
{{ __("Description")}}{!! $trip->description??'' !!}
{{ __("Date")}}{{$trip->start_date->format('Y-m-d H:i')??''}}
{{ __("Véhicule")}}{{$trip->vehicule ? $trip->vehicule->immatriculation.' | '.$trip->vehicule->marque: ''}}
{{ __("Driver")}}{{$trip->driver ? '[#'.$trip->driver->reference.'] '.$trip->driver->first_name.' '.$trip->driver->last_name??'' : ''}}
{{ __("Départ")}} @if ($trip->depart_site) {{$trip->depart_site->name}} @elseif($trip->depart) {!! $trip->depart !!} @endif
{{ __("Destination")}} @if ($trip->destination_site) {{$trip->destination_site->name}} @elseif($trip->destination) {!! $trip->destination !!} @endif
{{ __("Status")}} {{ __(ucfirst($trip->status))}}
{{ __("Passagers")}} {{ $trip->nb_places}}
{{ __("Crée le")}}{{$trip->created_at??''}}
{{ __("Démarrer le")}} {{$trip->start}} {!! $trip->note_start ? '
'.$trip->note_start : '' !!}
{{ __("Terminé le")}} {{$trip->end}} {!! $trip->note_end ? '
'.$trip->note_end : '' !!}
{{ __("Failed Note")}} {!! $trip->note_failed !!}
{{ __("Overdue Note")}} {!! $trip->note_overdue !!}
@include('trips.comment') @endsection @section('modals') @endsection @push('scripts') @endpush