@extends('admin.layout') @section('title', 'Aprilo AI Interaction Logs') @section('content')
View history of employee questions, AI answers, source citations, confidence scores, and employee rating feedback.
| Question | Employee / User | Sensitivity | Answer Status | Feedback Rating | Actions |
|---|---|---|---|---|---|
|
{{ $log->question_text }}
Asked: {{ $log->created_at ? $log->created_at->format('M d, Y h:i A') : 'N/A' }}
|
@if ($log->user)
{{ $log->user->name }}
{{ $log->user->email }}
@else
Public Visitor
@endif
|
@if ($log->sensitivity_status === 'sensitive') Sensitive @else Normal @endif | @php $statusStyle = match($log->status) { 'answered' => 'background: rgba(46, 204, 113, 0.15); color: #27ae60; border: 1px solid rgba(46, 204, 113, 0.3);', 'fallback' => 'background: rgba(241, 196, 15, 0.15); color: #d35400; border: 1px solid rgba(241, 196, 15, 0.3);', 'escalated' => 'background: rgba(155, 89, 182, 0.15); color: #8e44ad; border: 1px solid rgba(155, 89, 182, 0.3);', default => 'background: #eef1ea; color: #34413c;' }; @endphp {{ $log->status }} | @php $answer = $log->answers->first(); $feedback = $answer ? $answer->feedback->first() : null; @endphp @if ($feedback) @if ($feedback->rating === 'helpful') 👍 Helpful @else 👎 Not Helpful @endif @else No rating @endif | |
| No interaction logs found. | |||||