@extends('layouts.app') @section('title', 'Feedback Management') @push('styles') @endpush @section('content')
Review, flag, and score all submitted feedback.
| # | 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 |
No feedback submissions match the current filters.