You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
3.4 KiB
61 lines
3.4 KiB
<div class="d-flex gap-4 flex-column">
|
|
<x-card>
|
|
<x-slot:actions>
|
|
<x-button :label="__('domains/system/pages.backup.backup_button')" class="btn-sm" wire:click="backup" wire:loading wire:target="backup"
|
|
theme="primary" :icon-property="[
|
|
'width' => 16,
|
|
'height' => 16,
|
|
]" icon="tabler-database-export" />
|
|
<x-button :label="__('domains/system/pages.backup.upload_button')" class="btn-sm" :icon-property="[
|
|
'width' => 16,
|
|
'height' => 16,
|
|
]" theme="info" icon="tabler-cloud-upload"
|
|
data-bs-toggle="modal" data-bs-target="#backup-file-upload-modal" />
|
|
</x-slot:actions>
|
|
<div class="list-group">
|
|
@forelse($this->backups_data as $backup)
|
|
<x-link href="#" class="list-group-item list-group-item-action" aria-current="true">
|
|
<div class="d-flex w-100 justify-content-between">
|
|
<h5 class="mb-1">{{ $backup->file_name }}</h5>
|
|
<div class="btn-group btn-group-sm">
|
|
<x-button icon="tabler-download" wire:click="download({{ $backup->id }})" theme="primary"
|
|
:icon-property="[
|
|
'width' => 16,
|
|
'height' => 16,
|
|
]" wire:loading wire:target="download({{ $backup->id }})" />
|
|
<x-button icon="tabler-restore" wire:click="restore({{ $backup->id }})" theme="warning"
|
|
:icon-property="[
|
|
'width' => 16,
|
|
'height' => 16,
|
|
]" wire:loading wire:target="restore({{ $backup->id }})" />
|
|
<x-button icon="tabler-trash" theme="danger" :icon-property="[
|
|
'width' => 16,
|
|
'height' => 16,
|
|
]"
|
|
x-on:click="$ask.livewire('delete-data', {
|
|
title: '{{ __('ui.button.delete') }}',
|
|
textMessage: '{{ __('domains/system/pages.backup.confirmation.delete') }}',
|
|
confirmText: '{{ __('ui.button.yes') }}',
|
|
cancelText: '{{ __('ui.button.no') }}',
|
|
successMessage: '{{ __('domains/system/messages.backup.delete_success') }}',
|
|
id: '{{ $backup->id }}',
|
|
onSuccess: () => {
|
|
$dispatch('$refresh')
|
|
}
|
|
})" />
|
|
</div>
|
|
</div>
|
|
<p class="mb-1">{{ $backup->type }} (<small>{{ $backup->size }}</small>)</p>
|
|
</x-link>
|
|
@empty
|
|
|
|
<x-link href="#" class="list-group-item list-group-item-action" aria-current="true">
|
|
<div class="d-flex w-100 justify-content-center">
|
|
<p class="mb-1">{{ __('domains/system/pages.backup.empty_state') }}</p>
|
|
</div>
|
|
</x-link>
|
|
@endforelse
|
|
</div>
|
|
</x-card>
|
|
<livewire:pages::system.backups.upload-backup-modal />
|
|
</div>
|
|
|