@extends('layouts.admin') @section('content')
@if (session('success')) @endif
Live Polls
Questions
@foreach ($questions as $question) @endforeach
# Name Station Category Question Action
{{ $question->user->name }} {{ $question->user->station->name }} {{ $question->category->name }} {{ $question->question }}
Feedback Analysis
Feedback| Total
{{ $feedback->count() }}
Objectives Rating | Average
{{$averageRating}}
Dealer | Registration
{{$count}}
Rating | Average
@php $components = [ 'content_agenda_rating', 'materials_handouts_rating', 'consultants_rating', 'workshop_length_rating', 'logistical_arrangements_rating', 'venue_rating', 'lunches_tea_breaks_rating' ]; @endphp @foreach ($components as $index => $component) @endforeach
# Workshop Component Rating
{{ $index + 1 }} {{ ucfirst(str_replace('_', ' ', $component)) }} @php $feedbacks = \App\Models\Feedback::whereNotNull($component)->get(); $ratingCount = $feedbacks->count(); $ratingSum = $feedbacks->pluck($component)->map(function ($rating) { return ['Unsatisfactory' => 1, 'Poor' => 2, 'Average' => 3, 'Good' => 4, 'Excellent' => 5][$rating]; })->sum(); $averageRating = ($ratingCount > 0) ? round($ratingSum / $ratingCount, 2) : 0; echo $averageRating; @endphp
Feedback Updates | Live
@foreach($feedback as $item)

{{ $item->user->name }}

Overall Assessment
{{ $item->overall_assessment }}
Interesting Aspect
{{ $item->most_interesting_aspect }}
Liked Most
{{ $item->liked_most }}
Least Liked
{{ $item->liked_least }}
Improvements
{{ $item->improvement_suggestions }}
Workshop Improvements
{{ $item->improvement_suggestions_workshop }}
@endforeach
@endsection @pushOnce('scripts') @endPushOnce