2023-08-11 18:19:42 +00:00
|
|
|
<div class="flex flex-col flex-col-reverse gap-2">
|
2023-08-10 13:52:54 +00:00
|
|
|
@forelse($executions as $execution)
|
2023-08-11 18:19:42 +00:00
|
|
|
<form class="flex flex-col p-2 border-dotted border-1 bg-coolgray-300" @class([
|
|
|
|
'border-green-500' => data_get($execution, 'status') === 'success',
|
|
|
|
'border-red-500' => data_get($execution, 'status') === 'failed',
|
|
|
|
])>
|
|
|
|
<div>Started At: {{ data_get($execution, 'created_at') }}</div>
|
|
|
|
<div>Status: {{ data_get($execution, 'status') }}</div>
|
|
|
|
@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) }}
|
|
|
|
kB / {{ round((int) data_get($execution, 'size') / 1024 / 1024, 2) }} MB
|
2023-08-10 13:52:54 +00:00
|
|
|
</div>
|
2023-08-11 18:19:42 +00:00
|
|
|
<div>Location: {{ data_get($execution, 'filename') }}</div>
|
|
|
|
<livewire:project.database.backup-execution :execution="$execution" :wire:key="$execution->id" />
|
2023-08-10 13:52:54 +00:00
|
|
|
</form>
|
|
|
|
@empty
|
2023-08-10 15:55:03 +00:00
|
|
|
<div>No executions found.</div>
|
2023-08-10 13:52:54 +00:00
|
|
|
@endforelse
|
|
|
|
</div>
|