@extends('layouts.app') @section('content') @php $totalQuestions = $questions->count(); $activeQuestions = $questions->where('status', 1)->count(); $inactiveQuestions = $totalQuestions - $activeQuestions; $withActions = $questions->filter(function ($question) { return !empty($question->action_text) && !empty($question->action_url); })->count(); @endphp

Chatbot Questions

Manage quick replies, answers, action buttons, and display order for your portfolio chatbot.

Add New Question
@if(session('success')) @endif
Total Questions

{{ $totalQuestions }}

Active

{{ $activeQuestions }}

Inactive

{{ $inactiveQuestions }}

With Actions

{{ $withActions }}

Question Library
{{ $totalQuestions }} records
@forelse($questions as $question) @php $isActive = (int) $question->status === 1; @endphp @empty @endforelse
Order Question & Answer Action Status Updated Management
{{ $question->sort_order }}
{{ $question->question }}

{{ \Illuminate\Support\Str::limit($question->answer, 115) }}

@if($question->action_text && $question->action_url) {{ $question->action_text }} @else No action @endif {{ $isActive ? 'Active' : 'Inactive' }} {{ $question->updated_at ? $question->updated_at->format('d M, Y') : 'Not updated yet' }} {{ $question->updated_at ? $question->updated_at->diffForHumans() : 'Fresh draft' }}
No Chatbot Questions Yet

Create your first quick reply to help visitors find the right portfolio details faster.

Create First Question
@endsection @section('styles') @endsection @section('scripts') @endsection