@extends('admin.layout') @section('title', 'Aprilo AI Escalations') @section('content')
Human review

Escalations

Sensitive or unresolved questions move here for HR review instead of receiving an unsafe automated answer.

@forelse ($escalations as $escalation) @empty @endforelse
Question Employee / User Category Status Actions
{{ $escalation->question?->question_text ?? 'N/A' }}
Asked on {{ $escalation->created_at ? $escalation->created_at->format('M d, Y h:i A') : 'N/A' }}
@if ($escalation->question?->user)
{{ $escalation->question->user->name }}
{{ $escalation->question->user->email }}
@else
Public Visitor
@endif
{{ str_replace('_', ' ', $escalation->category) }} @php $statusStyle = match($escalation->status) { 'open' => 'background: rgba(241, 196, 15, 0.15); color: #b78a05; border: 1px solid rgba(241, 196, 15, 0.3);', 'in_review' => 'background: rgba(52, 152, 219, 0.15); color: #2980b9; border: 1px solid rgba(52, 152, 219, 0.3);', 'resolved' => 'background: rgba(46, 204, 113, 0.15); color: #27ae60; border: 1px solid rgba(46, 204, 113, 0.3);', 'closed' => 'background: rgba(149, 165, 166, 0.15); color: #7f8c8d; border: 1px solid rgba(149, 165, 166, 0.3);', default => 'background: #eef1ea; color: #34413c;' }; @endphp {{ $escalation->status }}
No escalations yet.
@endsection