@extends('admin.layout') @section('title') Absences @endsection @section('content')

Liste des Absences

Ce mois
Période affichée: {{ Carbon\Carbon::parse($start_date)->format('d/m/Y') }} au {{ Carbon\Carbon::parse($end_date)->format('d/m/Y') }}
@foreach($absences as $absence) @endforeach
Salarié Type Date de début Date de fin Jours absents Statut Raison Actions
{{ $absence->employee->prenom ?? '' }} {{ $absence->employee->name ?? '' }} @php $typeLabels = [ 'absence' => 'Autre', 'conge_individuel' => 'Congé payé', 'conge_collectif' => 'Congé collectif' ]; @endphp {{ $typeLabels[$absence->type] ?? $absence->category ?? 'N/A' }} {{ $absence->date_debut->format('d/m/Y') ?? '' }} {{ $absence->date_fin ? $absence->date_fin->format('d/m/Y') : 'En cours' }} {{ $absence->jours_absence ?? '' }} @if($absence->statut === 'approved') Approuvé @elseif($absence->statut === 'rejected') Rejeté @else En attente @endif {{ $absence->reason ?? 'N/A' }}
@endsection @section('script') @endsection