👔 Tableau de bord — Chef de Service & Contrôleur

Mois : {{ ucfirst($activeMois->translatedFormat('F Y')) }}

← Retour
{{-- SECTION CHEF DE SERVICE --}} @if($isChef) @foreach($chefData as $serviceBlock)

🏢 Service : {{ $serviceBlock['service']->libelle_service }}

{{ $serviceBlock['agents']->count() }} agent(s)
@foreach($serviceBlock['agents'] as $row) @php $agent = $row['agent']; $sigAgent = $row['signatureAgent']; $sigChef = $row['signatureChef']; $hasDecl = $row['hasDeclaration']; @endphp @endforeach
Agent Déclarations Signature Agent Validation Chef Actions
{{ $agent->name }} {{ $agent->firstname }} @if($hasDecl) Oui @else — @endif @if($sigAgent)
✔ Soumis

{{ \Carbon\Carbon::parse($sigAgent->signed_at)->format('d/m/Y') }}

@else En attente @endif
@if($sigChef)
✔ Validé

{{ \Carbon\Carbon::parse($sigChef->signed_at)->format('d/m/Y') }}

@else — @endif
{{-- Consulter la synthèse de l'agent --}} 🖨️ Voir {{-- Valider (signer en tant que chef) --}} @if($sigAgent && !$sigChef)
@csrf
@endif {{-- Refuser (supprimer les signatures) --}} @if($sigAgent || $sigChef)
@csrf
@endif
@endforeach @endif {{-- ========== SECTION CONTRÔLEUR ========== --}} @if($isControleur)
🔍

Agents sous votre contrôle

Lecture seule — Vous pouvez consulter les déclarations.

@foreach($controleurData as $row) @endforeach
Agent Service Signature Agent Consulter
{{ $row['agent']->name }} {{ $row['agent']->firstname }} {{ $row['service']?->libelle_service ?? '—' }} @if($row['signatureAgent']) ✔ Soumis @else En attente @endif @if($row['service']) 🔍 Consulter @else Pas de service @endif
@endif