2024-01-05 05:06:36 +00:00
|
|
|
<div class="flex flex-col-reverse gap-2">
|
|
|
|
@forelse($executions as $execution)
|
2024-01-10 11:41:29 +00:00
|
|
|
@if (data_get($execution, 'id') == $selectedKey)
|
|
|
|
<div class="p-2">
|
|
|
|
@if (data_get($execution, 'message'))
|
|
|
|
<div>
|
|
|
|
<pre>{{ data_get($execution, 'message') }}</pre>
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div>No output was recorded for this execution.</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<a wire:click="selectTask({{ data_get($execution, 'id') }})" @class([
|
2024-05-14 13:19:28 +00:00
|
|
|
'flex flex-col border-l transition-colors box-without-bg bg-coolgray-100 hover:bg-coolgray-200 cursor-pointer',
|
2024-03-24 15:00:25 +00:00
|
|
|
'bg-coolgray-200 dark:text-white hover:bg-coolgray-200' =>
|
2024-01-10 11:41:29 +00:00
|
|
|
data_get($execution, 'id') == $selectedKey,
|
|
|
|
'border-green-500' => data_get($execution, 'status') === 'success',
|
|
|
|
'border-red-500' => data_get($execution, 'status') === 'failed',
|
|
|
|
])>
|
|
|
|
@if (data_get($execution, 'status') === 'running')
|
2024-01-05 05:06:36 +00:00
|
|
|
<div class="absolute top-2 right-2">
|
|
|
|
<x-loading />
|
|
|
|
</div>
|
2024-01-10 11:41:29 +00:00
|
|
|
@endif
|
|
|
|
<div>Status: {{ data_get($execution, 'status') }}</div>
|
|
|
|
<div>Started At: {{ data_get($execution, 'created_at') }}</div>
|
2024-01-05 05:06:36 +00:00
|
|
|
</a>
|
|
|
|
@empty
|
|
|
|
<div>No executions found.</div>
|
|
|
|
@endforelse
|
|
|
|
</div>
|