<x-filament-panels::page>
    @auth
        @if (auth()->user()->level === 9)
            @livewire('notifications')
            <form wire:submit="save">
                {{ $this->form }}

                <div class="flex justify-end gap-2 mt-6">
                    <x-filament::button type="submit">
                        Save Settings
                    </x-filament::button>
                    <x-filament::button
                        type="button"
                        wire:click="flushCache"
                        color="danger"
                        wire:confirm="Are you sure you want to flush the cache?"
                    >
                        Flush Cache
                    </x-filament::button>
                </div>
            </form>
            <x-filament-actions::modals />
        @else
            @php abort(403); @endphp
        @endif
    @endauth
</x-filament-panels::page>
