Gestion des demande de congé

@if (Auth::user()->role != 'drh') @endif
## @if (in_array(Auth::user()->role, ['n+1', 'drh'])) Agent @endif Type de Congé Durée Date de départ Statut @if (in_array(Auth::user()->role, ['n+1', 'drh'])) Action @endif Imprimer @forelse ($items as $item) {{ $item->id }} @if (in_array(Auth::user()->role, ['n+1', 'drh'])) {{ $item->user->name }} @endif {{ $item->type_conge_text }} {{ $item->duree }} jours {{ $item->depart_fr }} {{ $item->statut_text}} @if (in_array(Auth::user()->role, ['n+1', 'drh'])) @endif @if ( $item->etat == 2) Décision congé @else - @endif @empty
Aucune demande de congé n'a été trouvée...
@endforelse
{{ $items->links() }}
@if ($showForm)
Demande de congé
@error('current_item.type_conge')
{{$message}}
@enderror
type_conge==2 ? 'disabled' : ''}} > @error('current_item.duree')
{{$message}}
@enderror
@error('current_item.depart')
{{$message}}
@enderror
role, ['drh']) ? '' : 'disabled'}} autocomplete="off" > @error('current_item.retour')
{{$message}}
@enderror
@endif @if ($showFormConsulter)
Demande de congé
Demande créée le {{$current_item->created_at_fr}}
@error('current_item.type_conge')
{{$message}}
@enderror
type_conge==2 || Auth::user()->role == 'n+1') ? 'disabled' : ''}} > @error('current_item.duree')
{{$message}}
@enderror
role == 'n+1' ? 'disabled' : ''}} type="date" class="form-control" placeholder="example@gmail.com" autocomplete="off" > @error('current_item.depart')
{{$message}}
@enderror
role, ['drh']) ? '' : 'disabled'}} autocomplete="off" > @error('current_item.retour')
{{$message}}
@enderror
@if (($current_item->etat == 0 && Auth::user()->role == 'n+1') || ($current_item->etat == 1 && Auth::user()->role == 'drh')) @else {{ $current_item->statut_text}} @endif

Notes

@forelse ($current_item->notes as $note) @empty @endforelse
@endif @if ($showModalApprobation) @endif