{{-- 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

rate_review Session Feedback

What attendees said about each training session. Visible to Admin and Head of Operations only — trainers can’t see it.

{{-- Tiles --}}
@foreach([ ['forum', 'Responses', $totals['responses'], $totals['sessions'].' '.\Illuminate\Support\Str::plural('session', $totals['sessions']), null], ['star', 'Average rating', $stars($totals['score']).($totals['score'] ? ' / 4' : ''), $scoreLabel($totals['score']), null], ['pending_actions', 'Awaiting review', $totals['unreviewed'], 'responses without the quality review', 'unreviewed'], ['flag', 'Concerns', $totals['concerns'], 'flagged for follow-up', 'concerns'], ] as [$icon, $label, $value, $sub, $tile]) @endforeach
{{-- Filters --}}
search
@foreach($rows as $r) @php $rec = $r->responses ? round($r->recommend_yes / $r->responses * 100) : 0; @endphp @endforeach
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
@include('management._datatables') @endsection