This commit is contained in:
f4ilji
2024-11-20 20:21:16 +05:00
parent 431755ab9b
commit 083a115ada
6 changed files with 149 additions and 1 deletions
@@ -0,0 +1,34 @@
<x-filament-panels::page>
<div class="flex flex-col gap-y-8">
@if($this->shouldDisplayStatusListRecords())
<div class="mb-10">
@livewire(ShuvroRoy\FilamentSpatieLaravelBackup\Components\BackupDestinationStatusListRecords::class)
</div>
@endif
<div>
@livewire(ShuvroRoy\FilamentSpatieLaravelBackup\Components\BackupDestinationListRecords::class)
</div>
<x-filament::modal id="backup-option" width="lg">
<x-slot name="heading">
<h3 class="text-xl">{{ __('filament-spatie-backup::backup.pages.backups.modal.label') }}</h3>
</x-slot>
<x-slot name="footer" >
<div class="flex gap-x-2">
<x-filament::button wire:click="create('only-db')" color="primary" class="w-full">
{{ __('filament-spatie-backup::backup.pages.backups.modal.buttons.only_db') }}
</x-filament::button>
<x-filament::button wire:click="create('only-files')" color="info" class="w-full">
{{ __('filament-spatie-backup::backup.pages.backups.modal.buttons.only_files') }}
</x-filament::button>
<x-filament::button wire:click="create()" color="success" class="w-full">
{{ __('filament-spatie-backup::backup.pages.backups.modal.buttons.db_and_files') }}
</x-filament::button>
</div>
</x-slot>
</x-filament::modal>
</div>
</x-filament-panels::page>