@extends('layout.app') @section('title') {{ __('Drivers') }} @endsection @push('styles') @endpush @section('active_drivers', 'active') @section('data_col', '2-columns') @section('body_class', '2-columns') @section('content')
{{ $driver->reference ?? 'N/A' }}

{{ $driver->first_name }} {{ $driver->last_name }}

{{ $driver->fonction->name ?? 'N/A' }}

{{ $driver->is_active ? __('Actif') : __('Inactif') }} @if($driver->mediateur) {{ __('Médiateur') }} @else {{ __('Non médiateur') }} @endif
{{ __('Fonction') }}
{{ $driver->fonction->name ?? 'N/A' }}
@if($driver->fonction && $driver->fonction->description) {{ $driver->fonction->description }} @endif
{{ __('Email') }}
{{ $driver->email ?? 'N/A' }}
{{ __('Téléphone') }}
{{ $driver->phone ?? 'N/A' }}
{{ __('Organisation') }}
{{ $driver->organisation->name ?? 'N/A' }}
@if($driver->organisation && $driver->organisation->description) {{ $driver->organisation->description }} @endif
{{ __('Chauffeur') }}
@if($driver->is_driver) {{ __('Oui') }} @else {{ __('Non') }} @endif
@if($driver->superior)
{{ __('Supérieur hiérarchique') }}
{{ $driver->superior->first_name }} {{ $driver->superior->last_name }} {{ $driver->superior->fonction->name ?? '' }}
@endif @if($driver->mediateur)
{{ __('Médiateur') }}
{{ $driver->mediateur->reference ?? 'N/A' }} {{ __('Médiateur actif') }}
@endif @if ($driver->user && count($driver->user->getRoleNames()))
{{ __('System role') }}
{{ $driver->user->getRoleNames()[0] }}
@endif
@endsection @section('modals') @endsection @push('scripts') @endpush