Chatbot FAQs

{{-- Stats Cards --}}
{{ number_format($totalQuestions) }}
Unique Questions
{{ number_format($answeredCount) }}
Answered
{{ number_format($unansweredCount) }}
Unanswered
{{ number_format($totalAsks) }}
Total Asks
{{-- Filters --}}
{{-- FAQ Table --}}
@if ($faqs->isEmpty())

No questions recorded yet.
The chatbot will start tracking questions once users interact with it.

@else
@foreach ($faqs as $faq) @endforeach
Question Times Asked Category Matched To Status Last Asked Action
{{ Str::limit($faq->question, 80) }} {{ $faq->ask_count }} @if ($faq->matched_category) @php $catColors = [ 'holiday' => 'success', 'event' => 'warning', 'exam' => 'info', 'timing' => 'secondary', 'fee' => 'primary', 'admission' => 'dark', 'contact' => 'danger', 'facility' => 'success', 'date_query' => 'info', ]; $color = $catColors[$faq->matched_category] ?? 'secondary'; @endphp {{ ucfirst($faq->matched_category) }} @else @endif @if ($faq->matched_title) {{ Str::limit($faq->matched_title, 40) }} @else @endif @if ($faq->was_answered) Answered @else Unanswered @endif {{ $faq->last_asked_at->diffForHumans() }}
{{-- Pagination --}} @if ($faqs->hasPages())
{{ $faqs->links() }}
@endif @endif
{{-- Insight Card --}} @if ($unansweredCount > 0)
Insight

You have {{ $unansweredCount }} unanswered question{{ $unansweredCount > 1 ? 's' : '' }}. Consider adding relevant information in School Info to help the chatbot answer these automatically.

@endif
@push('scripts') @endpush