{{-- One attendee's feedback (sections 1–4, negative answers highlighted) and the management / quality review — section 5 — completed by Admin / Head of Operations. From SessionFeedbackController@show: $fb (session.trainer, user.location, reviewer), $questions --}} @extends('layouts.app') @section('title', 'Session Feedback') @section('content') @include('partials.flash') @php use App\Support\SessionFeedbackForm as Form; $role = auth()->user()->primaryRole(); $session = $fb->session; $bySection = collect($questions)->groupBy('section', true); $concerns = old('concerns', $fb->concerns === null ? null : ($fb->concerns ? 'yes' : 'no')); @endphp arrow_back {{ $session->title }} — all responses
{{ $fb->user->initials() }}

{{ $fb->user->name }} · {{ $fb->user->location?->name ?? '—' }}

{{ $session->title }} · {{ $session->session_date->format('j M Y') }} · {{ $session->trainerName() ?? 'No trainer' }} · sent {{ $fb->created_at->format('j M Y, H:i') }}

{{ $fb->negativeCount() ? 'error' : 'thumb_up' }} {{ $fb->negativeCount() ? $fb->negativeCount().' '.\Illuminate\Support\Str::plural('issue', $fb->negativeCount()).' raised' : 'No issues raised' }}
@foreach(Form::sections() as $sn => $sec) @continue(! $bySection->has($sn))
{{ $sn }}

{{ $sec['title'] }}

@foreach($bySection[$sn] as $key => $q) @php $a = $fb->answer($key); $neg = Form::isNegative($key, $a); @endphp

{{ $q['q'] }}

@if($q['type'] === 'choice')

{{ Form::label($key, $a) ?? '—' }}

@if($fb->note($key))

“{{ $fb->note($key) }}”

@endif @else

{{ filled($a) ? $a : 'No answer' }}

@endif
@endforeach
@endforeach
{{-- Section 5 --}}
@csrf
5

Management / quality review

@foreach(['provider_suitable' => ['Training provider suitable for future use?', Form::PROVIDER_SUITABLE, old('provider_suitable', $fb->provider_suitable)], 'concerns' => ['Any concerns requiring follow-up?', Form::CONCERNS, $concerns]] as $field => [$label, $opts, $val])

{{ $label }} *

@foreach($opts as $ov => $ol) @endforeach
@error($field)

{{ $message }}

@enderror
@endforeach
@error('follow_up')

{{ $message }}

@enderror

Completed by

{{ $fb->reviewer?->name ?? auth()->user()->name }}

Date

{{ ($fb->reviewed_at ?? now())->format('j M Y') }}

@if($fb->isReviewed())

task_alt Reviewed by {{ $fb->reviewer?->name }} on {{ $fb->reviewed_at->format('j M Y, H:i') }} — saving again updates it.

@endif
@endsection