@extends('admin.layouts.main.admin_theme') @section('admin_content')

Page FAQs

{{-- One tab per page; the hash is the open tab, so a reload after a delete lands on the same page. --}}
@foreach ($pages as $page) {{ $page }} {{ count($faqsByPage[$page] ?? []) }} @endforeach
@foreach ($pages as $page)
@forelse (($faqsByPage[$page] ?? []) as $faq) @empty @endforelse
QUESTION ACTION
☰ {{ $faq->question }}
No FAQs added for this page yet.
@endforeach
@endsection @section('scripts') @endsection