@php $configData = Helper::appClasses(); $statusColors = [ 'draft' => 'secondary', 'submitted' => 'primary', 'validated' => 'success', ]; $statusLabels = [ 'draft' => 'Brouillon', 'submitted' => 'Soumise', 'validated' => 'Validée', ]; // Chaîne d'ancêtres de la structure (FS → Commune → District → …) $ancestors = $survey->structure ? $survey->structure->ancestors() : []; @endphp @extends('layouts/layoutMaster') @section('title', 'Collecte #' . $survey->id) @section('content')
| Nom | Fonction | Contact | Réponses choix | Réponses précision | @can('update', $survey)Actions | @endcan
|---|---|---|---|---|---|
| {{ $p->last_name }} {{ $p->first_name }} | {{ $p->role ?? '-' }} | {{ $p->contact ?? '-' }} | {{ $p->choice_answers_count }} | {{ $p->precision_answers_count }} | @can('update', $survey)@endcan |
| Dimension | Score | Barre | Recommandations |
|---|---|---|---|
| {{ $ds->dimension?->label }} |
|
{{ $ds->recommendations->count() }} |
Aucun sous-critère scoré pour cette dimension.
@else| Sous-critère | Score | % | MDA (précision) |
|---|---|---|---|
| {{ $sub->subCriterion?->label ?? '-' }} | {{ $sub->value }} / {{ $sub->max_value }} | {{ $subPct }}% | @if ($mda) {{ number_format((float) $mda->mda, 2) }}% · score {{ $mda->score }} @else - @endif |