<x-admin-app-layout>
    <div class="white-box">
        <x-admin::page-header title="{{ __('Testimonials') }}" :buttons="$buttons" />
        <x-admin::table :columns="$columns" :data="$testimonials" />
        <x-admin::modal modalId="testimonial_create_modal" title="{{ __('Add New Testimonial') }}">
            <form class="form-submit-add" method="POST">
                @csrf
                <x-admin::text-input-group name="name" label="Name" placeholder="Enter Name" />
                <x-admin::text-input-group name="designation" label="Designation" placeholder="Enter Designation" />
                <div>
                    <x-admin::label for="image">{{ __('Image') }}</x-admin::label>
                    <x-admin::file-uploader id="image" type="text" name="image" label="Image" />
                    <x-admin::input-error name="image" />
                </div>
                <x-admin::textarea-group name="description" label="Description"
                    placeholder="{{ __('Enter Description') }}" />
                <div class="input-group">
                    <x-admin::label for="status">{{ __('Status') }}</x-admin::label>
                    <x-admin::switch name="status" />
                </div>
                <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="testimonial_edit_modal" title="{{ __('Edit Testimonial') }}">
            <form class="form-submit-edit" method="POST">
                @csrf
                <x-admin::text-input-group name="name" label="Name" placeholder="Enter Name" />
                <x-admin::text-input-group name="designation" label="Designation" placeholder="Enter Designation" />
                <div>
                    <x-admin::label for="image">{{ __('Image') }}</x-admin::label>
                    <x-admin::file-uploader id="image" type="text" name="image" label="Image" />
                    <x-admin::input-error name="image" />
                </div>
                <x-admin::textarea-group name="description" label="Description"
                    placeholder="{{ __('Enter Description') }}" />
                <div class="input-group">
                    <x-admin::label for="status">{{ __('Status') }}</x-admin::label>
                    <x-admin::switch name="status" />
                </div>
                <div class="flex items-center justify-end mt-4">
                    <x-admin::primary-button>
                        {{ __('Save') }}
                    </x-admin::primary-button>
                </div>
            </form>
        </x-admin::modal>
    </div>
    @push('scripts')
        @vite('resources/admin/js/settings/page-sections/team.js')
    @endpush
</x-admin-app-layout>
