@if($isDelegation) 🌙 Astreintes de {{ $displayUser->firstname }} {{ $displayUser->name }} @else 🌙 Mes Déclarations d'Astreintes @endif

@if($isDelegation)

⚠️ Mode Délégation Actif

@endif
@include('partials.unprinted_alert') @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- SECTION 1 : NOUVELLE SAISIE --}}

📝 Nouvelle Saisie d'Astreinte

{{-- Sélecteur de mois global --}}
@if($isLocked)

Déclarations Verrouillées

Cette période est désormais close car le document a été imprimé après le 10 du mois.
Veuillez contacter un administrateur pour toute modification.

@else
@csrf
{{-- Form inputs... --}} {{-- 1. Date Début --}}
{{-- 3. Date Fin (Affichage) --}}
{{-- 4. Catégorie --}}
{{-- 5. Type d'astreinte --}}
{{-- 5.5 Motif (Optionnel) --}} {{-- 6. Choix Récup/Paie --}} {{-- Service Info --}} {{-- 7. Majoration --}} {{-- Bouton validation --}}
@endif
{{-- SECTION 2 : LISTE --}}
@if($hasRecup) @endif @forelse($declarations as $decl) @php $isEditable = !\App\Models\Parametre::isLocked($decl->printed_at, $decl->mois_declaration); $isFerieAst = in_array($decl->date_debut->format('Y-m-d'), $joursFeries ?? []) || in_array($decl->date_fin->format('Y-m-d'), $joursFeries ?? []); $isWeekendAst = $decl->date_debut->isWeekend() || $decl->date_fin->isWeekend(); $textClass = 'text-gray-800 dark:text-gray-200'; $bgClass = 'hover:bg-gray-50 dark:hover:bg-gray-750'; if ($isFerieAst) { $textClass = 'text-red-600 font-bold'; $bgClass = 'bg-red-50/50 hover:bg-red-50'; } elseif ($isWeekendAst) { $textClass = 'text-amber-600 font-bold'; $bgClass = 'bg-amber-50/50 hover:bg-amber-50'; } @endphp @if($hasRecup) @endif @empty @endforelse
Mois Déclaration Période Type PaiementRécupérationMotif Actions
{{ $decl->mois_declaration->translatedFormat('F Y') }} du {{ ucfirst(str_replace('.', '', $decl->date_debut->translatedFormat('D d M'))) }} au {{ ucfirst(str_replace('.', '', $decl->date_fin->translatedFormat('D d M'))) }}
@if(!($decl->categorie->ne_pas_afficher_dans_libelle ?? false)) {{ $decl->categorie->libelle_categorie ?? '' }} - @endif {{ $decl->typeAstreinte->libelle_astreinte }} @if($decl->majore) (MAJOREE) @endif
@if($decl->type_demande !== 'recup') 💰 PAYE @else - @endif @if($decl->type_demande === 'recup')
🕒 RÉCUP {{ $decl->heures_recup_fmt }}
@else - @endif
@if($decl->motif) 💬 {{ $decl->motif->libelle_motif }} @else - @endif @if($isEditable)
@else 🔒 @endif
Aucune astreinte déclarée pour ce mois.