2023-10-13 13:45:24 +00:00
|
|
|
<div class="flex flex-col-reverse gap-2">
|
2023-08-10 13:52:54 +00:00
|
|
|
@forelse($executions as $execution)
|
2024-03-21 11:44:32 +00:00
|
|
|
<form wire:key="{{ data_get($execution, 'id') }}"
|
2024-03-28 08:01:40 +00:00
|
|
|
class="relative flex flex-col p-4 bg-white box-without-bg dark:bg-coolgray-100" @class([
|
2023-10-24 12:31:28 +00:00
|
|
|
'border-green-500' => data_get($execution, 'status') === 'success',
|
|
|
|
'border-red-500' => data_get($execution, 'status') === 'failed',
|
|
|
|
])>
|
2023-12-11 09:23:10 +00:00
|
|
|
@if (data_get($execution, 'status') === 'running')
|
2024-03-21 11:44:32 +00:00
|
|
|
<div class="absolute top-2 right-2">
|
|
|
|
<x-loading />
|
|
|
|
</div>
|
2023-12-11 09:23:10 +00:00
|
|
|
@endif
|
2023-10-13 13:45:24 +00:00
|
|
|
<div>Database: {{ data_get($execution, 'database_name', 'N/A') }}</div>
|
2023-08-11 18:19:42 +00:00
|
|
|
<div>Status: {{ data_get($execution, 'status') }}</div>
|
2023-10-13 13:45:24 +00:00
|
|
|
<div>Started At: {{ data_get($execution, 'created_at') }}</div>
|
2023-08-11 18:19:42 +00:00
|
|
|
@if (data_get($execution, 'message'))
|
|
|
|
<div>Message: {{ data_get($execution, 'message') }}</div>
|
2023-08-10 13:52:54 +00:00
|
|
|
@endif
|
2023-08-11 18:19:42 +00:00
|
|
|
<div>Size: {{ data_get($execution, 'size') }} B / {{ round((int) data_get($execution, 'size') / 1024, 2) }}
|
2023-10-13 13:45:24 +00:00
|
|
|
kB / {{ round((int) data_get($execution, 'size') / 1024 / 1024, 3) }} MB
|
2023-08-10 13:52:54 +00:00
|
|
|
</div>
|
2023-10-13 13:45:24 +00:00
|
|
|
<div>Location: {{ data_get($execution, 'filename', 'N/A') }}</div>
|
2023-10-24 12:31:28 +00:00
|
|
|
<div class="flex gap-2">
|
|
|
|
<div class="flex-1"></div>
|
2023-10-25 07:28:26 +00:00
|
|
|
@if (data_get($execution, 'status') === 'success')
|
2024-03-28 08:01:40 +00:00
|
|
|
<x-forms.button class=" dark:hover:bg-coolgray-400"
|
2024-04-10 19:12:50 +00:00
|
|
|
x-on:click="download_file('{{ data_get($execution, 'id') }}')">Download</x-forms.button>
|
2023-10-25 07:28:26 +00:00
|
|
|
@endif
|
2024-03-21 11:44:32 +00:00
|
|
|
<x-modal-confirmation isErrorButton action="deleteBackup({{ data_get($execution, 'id') }})">
|
|
|
|
<x-slot:button-title>
|
|
|
|
Delete
|
|
|
|
</x-slot:button-title>
|
|
|
|
This will delete this backup. It is not reversible.<br>Please think again.
|
|
|
|
</x-modal-confirmation>
|
2023-10-24 12:31:28 +00:00
|
|
|
</div>
|
2023-08-10 13:52:54 +00:00
|
|
|
</form>
|
2024-04-10 19:12:50 +00:00
|
|
|
<script>
|
|
|
|
function download_file(executionId) {
|
|
|
|
window.open('/download/backup/' + executionId, '_blank');
|
|
|
|
}
|
|
|
|
</script>
|
2023-08-10 13:52:54 +00:00
|
|
|
@empty
|
2023-08-10 15:55:03 +00:00
|
|
|
<div>No executions found.</div>
|
2023-08-10 13:52:54 +00:00
|
|
|
@endforelse
|
|
|
|
</div>
|