mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 20:24:02 +00:00
Add full-width and centered layout preferences across the app shell and workspaces. Replace page-size selects with dropdowns and add searchable breadcrumb switching.
54 lines
2.7 KiB
PHP
54 lines
2.7 KiB
PHP
<div>
|
|
<x-slot:title>
|
|
{{ data_get_str($service, 'name')->limit(10) }} >
|
|
{{ data_get_str($serviceDatabase, 'name')->limit(10) }} > Backups | Coolify
|
|
</x-slot>
|
|
|
|
<livewire:project.service.heading :service="$service" :parameters="$parameters" :query="$query" />
|
|
|
|
<section class="application-settings-workspace mt-4 w-full max-w-none lg:mt-0">
|
|
<div class="grid min-w-0 gap-8 xl:grid-cols-[210px_minmax(0,1fr)] xl:gap-8">
|
|
@if ($backup)
|
|
<x-backup-sidebar context="service" :parameters="$backupParameters" :section="$section" />
|
|
@else
|
|
<x-service-database.sidebar :parameters="$parameters" :serviceDatabase="$serviceDatabase"
|
|
:isImportSupported="$isImportSupported" />
|
|
@endif
|
|
|
|
<div class="min-w-0">
|
|
@if ($backup)
|
|
@if ($section === 'executions')
|
|
<livewire:project.database.backup-executions :backup="$backup"
|
|
:database="$serviceDatabase" />
|
|
@else
|
|
<livewire:project.database.backup-edit :backup="$backup"
|
|
:available-s3-storages="$s3s" :status="data_get($serviceDatabase, 'status')"
|
|
:section="$section"
|
|
wire:key="service-database-backup-{{ $backup->uuid }}-{{ $section }}" />
|
|
@endif
|
|
@else
|
|
<section class="application-settings-section">
|
|
<div class="application-settings-section-header">
|
|
<div>
|
|
<h2>Scheduled backups</h2>
|
|
<p>Automate backups for {{ $serviceDatabase->human_name ?: $serviceDatabase->name }}.</p>
|
|
</div>
|
|
@if (filled($serviceDatabase->custom_type) || ! $serviceDatabase->is_migrated)
|
|
@can('update', $serviceDatabase)
|
|
<x-modal-input buttonTitle="+ Add" title="New Scheduled Backup">
|
|
<livewire:project.database.create-scheduled-backup
|
|
:database="$serviceDatabase" />
|
|
</x-modal-input>
|
|
@endcan
|
|
@endif
|
|
</div>
|
|
<div class="application-settings-section-body p-0!">
|
|
<livewire:project.database.scheduled-backups :database="$serviceDatabase" />
|
|
</div>
|
|
</section>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|