@extends('layouts.app') @section('title', 'Feedback Management') @push('styles') @endpush @section('content') {{-- Filters --}}
All Valuable Implementable CEO Choice
@if(request()->hasAny(['project_id','search','flag','source'])) Clear @endif {{ $responses->total() }} result{{ $responses->total() !== 1 ? 's' : '' }}
All Submissions Page {{ $responses->currentPage() }} of {{ $responses->lastPage() }}
@if($responses->count())
@foreach($responses as $i => $response) @endforeach
# Project Respondent Type Source Collected By / Respondent Location Pts Flags Submitted
{{ ($responses->currentPage()-1)*$responses->perPage()+$i+1 }} {{ $response->project->name }} {{ $response->respondentType?->name }} @php $srcMap = [ 'employee_collected' => ['badge-blue', 'fa-id-badge', 'Employee'], 'public_user' => ['badge-green', 'fa-globe', 'Public'], 'qr_campaign' => ['badge-purple', 'fa-qrcode', 'QR'], 'booth_campaign' => ['badge-orange', 'fa-store', 'Booth'], ]; $src = $srcMap[$response->feedback_source] ?? ['badge-gray', 'fa-question', 'Unknown']; @endphp {{ $src[2] }} @if($response->feedback_source === 'employee_collected')
{{ $response->employeeCollector?->employee_name ?? ($response->collector?->name ?? '—') }}
{{ $response->employeeCollector?->department ?? '' }}
@else
{{ $response->employeeCollector?->respondent_name ?? '—' }}
{{ $response->employeeCollector?->respondent_phone ?? '' }}
@endif
{{ $response->employeeCollector?->location ?? '—' }} {{ $response->feedbackScore?->points_awarded ?? 1 }} @php $score = $response->feedbackScore; @endphp @if($score?->is_ceo_choice) CEO @elseif($score?->is_implementable) Impl. @elseif($score?->is_valuable) Valuable @else @endif
{{ $response->submitted_at?->format('d M Y') }}
{{ $response->submitted_at?->format('h:i A') }}
Review
@if($responses->hasPages())
Showing {{ $responses->firstItem() }}–{{ $responses->lastItem() }} of {{ $responses->total() }} {{ $responses->links() }}
@endif @else

No feedback submissions match the current filters.

@endif
@endsection