2023-11-07 11:11:47 +00:00
|
|
|
<div>
|
|
|
|
<div class="flex flex-wrap gap-2">
|
|
|
|
@forelse($database->scheduledBackups as $backup)
|
|
|
|
@if ($type === 'database')
|
|
|
|
<a class="flex flex-col box"
|
2024-01-07 15:23:41 +00:00
|
|
|
href="{{ route('project.database.backup.execution', [...$parameters, 'backup_uuid' => $backup->uuid]) }}">
|
2023-11-07 11:11:47 +00:00
|
|
|
<div>Frequency: {{ $backup->frequency }}</div>
|
|
|
|
<div>Last backup: {{ data_get($backup->latest_log, 'status', 'No backup yet') }}</div>
|
|
|
|
<div>Number of backups to keep (locally): {{ $backup->number_of_backups_locally }}</div>
|
|
|
|
</a>
|
|
|
|
@else
|
|
|
|
<div @class([
|
|
|
|
'border-coollabs' =>
|
|
|
|
data_get($backup, 'id') === data_get($selectedBackup, 'id'),
|
|
|
|
'flex flex-col box border-l-2 border-transparent',
|
2023-12-07 18:06:32 +00:00
|
|
|
]) wire:click="setSelectedBackup('{{ data_get($backup, 'id') }}')">
|
2023-11-07 11:11:47 +00:00
|
|
|
<div>Frequency: {{ $backup->frequency }}</div>
|
|
|
|
<div>Last backup: {{ data_get($backup->latest_log, 'status', 'No backup yet') }}</div>
|
|
|
|
<div>Number of backups to keep (locally): {{ $backup->number_of_backups_locally }}</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
@empty
|
|
|
|
<div>No scheduled backups configured.</div>
|
|
|
|
@endforelse
|
|
|
|
</div>
|
|
|
|
@if ($type === 'service-database' && $selectedBackup)
|
|
|
|
<div class="pt-10">
|
2023-11-07 13:09:24 +00:00
|
|
|
<livewire:project.database.backup-edit key="{{ $selectedBackup->id }}" :backup="$selectedBackup" :s3s="$s3s"
|
2023-11-07 11:11:47 +00:00
|
|
|
:status="data_get($database, 'status')" />
|
|
|
|
<h3 class="py-4">Executions</h3>
|
|
|
|
<livewire:project.database.backup-executions key="{{ $selectedBackup->id }}" :backup="$selectedBackup"
|
|
|
|
:executions="$selectedBackup->executions" />
|
|
|
|
</div>
|
|
|
|
@endif
|
2023-08-09 15:57:27 +00:00
|
|
|
</div>
|