@extends('layouts.admin') @section('title', 'Semakan Chat') @section('breadcrumb') @endsection @section('content')

Semakan Log Chat

Ditanda Tidak Terjawab
{{-- Filter --}}
@if(request()->hasAny(['category_id', 'rating', 'is_flagged', 'has_answer'])) Reset @endif
{{-- Table --}}
@forelse($logs as $log) @empty @endforelse
Soalan Kategori Jawapan Feedback Masa Tindakan
{{ $log->question }}
@if($log->is_flagged) Ditanda @endif @if(!$log->has_answer) Tidak Terjawab @endif
@if($log->category) {{ $log->category->name }} @else Semua @endif {{ Str::limit($log->answer, 80) }} @if($log->sources_used) {{ count($log->sources_used) }} sumber @endif @if($log->feedback) @php $ratingMap = [ 'helpful' => ['bg-success', 'Membantu', 'bi-hand-thumbs-up'], 'partially_helpful' => ['bg-warning', 'Separa', 'bi-hand-thumbs-up'], 'not_helpful' => ['bg-danger', 'Tidak Membantu', 'bi-hand-thumbs-down'], ]; $r = $ratingMap[$log->feedback->rating] ?? ['bg-secondary', $log->feedback->rating, 'bi-dash']; @endphp {{ $r[1] }} @if($log->feedback->converted_to_faq)
Dijadikan FAQ @endif @else @endif
{{ $log->created_at->format('d/m/Y H:i') }} @if($log->response_time)
{{ $log->response_time }}s @endif
@csrf @method('PATCH')
Tiada log chat ditemui.
@if($logs->hasPages()) @endif
@endsection