{{-- Session Feedback (Admin / Head of Operations only) — every session that has attendee feedback, with response count, average rating, % who'd recommend it, concerns and how many responses still need the quality review. From SessionFeedbackController@index: $rows, $totals, $trainers --}} @extends('layouts.app') @section('title', 'Session Feedback') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); $stars = fn ($s) => $s === null ? '—' : number_format($s, 1); $scoreLabel = fn ($s) => $s === null ? '' : ($s >= 3.5 ? 'Excellent' : ($s >= 2.5 ? 'Good' : ($s >= 1.5 ? 'Satisfactory' : 'Poor'))); $inputCls = 'px-3 py-2.5 bg-surface-container rounded-lg border-none focus:ring-2 focus:ring-primary/20 text-body-md outline-none'; @endphp
What attendees said about each training session. Visible to Admin and Head of Operations only — trainers can’t see it.
| Session | Date | Trainer | Responses | Rating | Would recommend | Review | |
|---|---|---|---|---|---|---|---|
| {{ $r->title }} | {{ \Carbon\Carbon::parse($r->session_date)->format('j M Y') }} | {{ $r->trainer ?? '—' }} | {{ $r->responses }} | star {{ $stars($r->score) }} {{ $scoreLabel($r->score) }} | {{ $rec }}% | @if($r->unreviewed) pending {{ $r->unreviewed }} to review @else task_alt Reviewed @endif @if($r->concerns)flag {{ $r->concerns }}@endif | Open chevron_right |