Détails de l'activité
{{-- Messages de succès --}}
@if(session('status'))
{{ session('status') }}
@endif
@php
$usergroupId = Auth::user()->usergroup_id;
@endphp
{{-- Informations générales --}}
Détails : {{ $activite->nom }}
Informations générales
- Code : {{ $activite->code }}
- Nom : {{ $activite->nom }}
- Description : {{ $activite->description ?? '-' }}
- Montant : {{ $activite->montant ?? '-' }}
- Date Début : {{ $activite->datedebut }}
- Date Fin : {{ $activite->datefin ?? 'En cours' }}
-
État :
{{ $activite->valide ? 'Validée' : 'Non validée' }} |
{{ $activite->actif ? 'Activée' : 'Non activée' }} |
{{ $activite->ouvert ? 'Révision/Élaboration' : 'Suivi/Évaluation' }}
{{-- Nouvelle évaluation --}}
Nouvelle évaluation
| Extrant |
Date de référence |
Prévision |
Réalisation |
Actions |
@php $grouped = $evalwaitings->groupBy('extrant_id'); @endphp
@foreach($grouped as $extrantId => $items)
| Extrant : {{ $items->first()->extrant->nom ?? '-' }} |
@foreach($items as $toeval)
| {{ $toeval->dateevaluation }} |
{{ $toeval->niveaucible }} |
|
@php $canEvaluate = ($evalwaitings->isNotEmpty() && $activite->valide && $activite->actif && !$activite->ouvert); @endphp
@if($canEvaluate)
@endif
|
@endforeach
@endforeach
{{-- Evaluations effectuées --}}
Anciennes évaluations
| Extrant |
Date de référence |
Date d'évaluation |
Prévision |
Réalisation |
Validé |
|
Commentaire |
@php $groupedOld = $activite->evaluations->groupBy('extrant_id'); @endphp
@foreach($groupedOld as $extrantId => $evaluations)
| Extrant : {{ $evaluations->first()->extrant->nom ?? '-' }} |
@foreach($evaluations as $eval)
| {{ $eval->extrant->nom ?? '-' }} |
{{ $eval->prevision->dateevaluation ?? '-' }} |
{{ $eval->date_evaluation ?? '-' }} |
{{ $eval->prevision->niveaucible ?? '-' }} % |
{{ $eval->taux_realisation ?? '-' }} % |
@if($eval->valide)
@else
NON
@endif
|
@if(in_array($usergroupId, [1,2]))
@if(!$eval->valide && $loop->last)
@endif
@endif
|
{{ $eval->commentaire ?? '-' }} |
@endforeach
@endforeach