<x-admin-app-layout>
    <div class="white-box">
        <x-admin::page-header title="{{ __('FAQs') }}" :buttons="$buttons" />
        <x-admin::table :columns="$columns" :data="$faqs" />
        <x-admin::modal modalId="faq_create_modal" title="Add New FAQ">
            <form class="form-submit-add" method="POST">
                @csrf
                <x-admin::text-input-group name="question" label="Question" placeholder="Enter Your Name" />
                <x-admin::textarea-group name="answer" label="Answer" placeholder="Enter Your Name" />
                <div class="flex items-center justify-end mt-4">
                    <x-admin::primary-button type="submit">
                        {{ __('Save') }}
                    </x-admin::primary-button>
                </div>
            </form>
        </x-admin::modal>
        <x-admin::modal modalId="faq_edit_modal" title="Edit FAQ">
            <form class="form-submit-edit" method="POST">
                @csrf
                <x-admin::text-input-group name="question" label="Question" placeholder="Enter Your Name" />
                <x-admin::textarea-group name="answer" label="Answer" placeholder="Enter Your Name" />
                <div class="flex items-center justify-end mt-4">
                    <x-admin::primary-button>
                        {{ __('Save') }}
                    </x-admin::primary-button>
                </div>
            </form>
        </x-admin::modal>
    </div>
</x-admin-app-layout>
