@extends('layouts.layout') @section('content')

FAQ Management

Manage and view frequently asked questions

{{-- Add FAQ Form --}}

Add New FAQ

@csrf
@error('question')
{{ $message }}
@enderror
@error('answer')
{{ $message }}
@enderror
{{-- FAQ List Table --}}

FAQ List

{{ count($faq) }} FAQs
@forelse ($faq as $item) @empty @endforelse
ID QUESTION ANSWER CREATED AT ACTION
{{ $item['id'] }} {{ $item['question'] }} {{ $item['answer'] }} @if (!empty($item['create_at'])) {{ \Carbon\Carbon::parse($item['create_at'])->format('d M Y') }} @else N/A @endif
No FAQs found.
@include('layouts.footer')
{{-- ==================== TOAST NOTIFICATION ==================== --}}
@if (session('success')) @endif @if (session('error')) @endif {{-- ==================== EDIT MODAL ==================== --}} {{-- ==================== END EDIT MODAL ==================== --}} {{-- ==================== DELETE MODAL ==================== --}} {{-- ==================== END DELETE MODAL ==================== --}} @endsection