@extends('layouts.master') @section('title', 'Liste des engagements') @section('content') {{-- /* ===================================================== {{-- pour la consolidation --}} {{-- ===================================================== */ --}}
| Numéro BR | Direction | Centre de responsabilité | Date du besoin | Responsable | Niveau urgence | Voir détails | Actions | Motif retour |
|---|---|---|---|---|---|---|---|---|
| {{ $engagement->numero_br }} | {{-- ================================================= DIRECTION ================================================== --}}{{ optional($engagement->direction)->code }} - {{ optional($engagement->direction)->libelle }} | {{-- ================================================= CENTRE DE RESPONSABILITÉ ================================================== --}}{{ optional($engagement->centrerespo)->code }} - {{ optional($engagement->centrerespo)->libelle_long }} | {{-- ================================================= DATE DU BESOIN ================================================== --}}{{ $engagement->date_besoin }} | {{-- ================================================= RESPONSABLE ================================================== --}}{{ $engagement->responsable }} | {{-- ================================================= NIVEAU D'URGENCE ================================================== --}}{{ $engagement->niveau_urgence }} | {{-- ================================================= VOIR DÉTAILS ================================================== --}}{{-- ================================================= ACTIONS ================================================== --}} | {{-- ================================================= 1. ENGAGEMENT REÇU DU SERVICE DEMANDEUR ================================================== --}} @if($engagement->status === 'transmis_directeur') {{-- ================================================= TRANSMETTRE À L'APPRO ================================================== --}} {{-- ================================================= DIFFÉRER / RETOURNER ================================================== --}} {{-- ================================================= 2. RETOURNÉ PAR LE DIRECTEUR IMPORTANT : Le Directeur ne modifie PAS. La correction se fait sur le premier écran. ================================================== --}} @elseif($engagement->status === 'retour_directeur') Retour pour correction {{-- ================================================= 3. TRANSMIS À L'APPRO ================================================== --}} @elseif( $engagement->status === 'transmis_appro' || $engagement->status === 'transmis_controleur' ) Transmis à l'APPRO {{-- ================================================= 4. RETOURNÉ PAR L'APPRO Le Directeur voit le retour, mais ne modifie pas. ================================================== --}} @elseif($engagement->status === 'retour_appro') Retour pour correction {{-- ================================================= 5. ENGAGEMENT VALIDÉ / FINALISÉ ================================================== --}} @elseif( in_array($engagement->status, [ 'valide', 'complete' ]) ) Engagement finalisé {{-- ================================================= 6. AUTRE STATUT ================================================== --}} @else {{ ucfirst( str_replace( '_', ' ', $engagement->status ) ) }} @endif | {{-- ================================================= MOTIF RETOUR ================================================== --}}@if( $engagement->status === 'retour_directeur' || $engagement->status === 'retour_appro' ) @if($engagement->motif) {{ $engagement->motif }} @else Aucun motif renseigné @endif @else - @endif |
| Aucun engagement trouvé | ||||||||