Add bot logs
All checks were successful
Deploy App / deploy (push) Successful in 11s

This commit is contained in:
2025-08-31 21:54:18 +02:00
parent 77ebc6bce1
commit 378355ad5b
16 changed files with 355 additions and 20 deletions

View File

@@ -0,0 +1,40 @@
<div>
<table class="p-2" wire:poll.5s>
<thead>
<tr>
<th class="px-4 py-2">Bot</th>
<th class="px-4 py-2">Status</th>
<th class="px-4 py-2">Started At</th>
<th class="px-4 py-2">Finished At</th>
</tr>
</thead>
<tbody class="text-center">
@foreach ($logs as $log)
<tr>
<td class="px-4 py-2">
{{ $log->bot->name }}
</td>
<td
@class([
'text-red-400' => $log->status === 'failed',
'text-green-400' => $log->status === 'success',
'text-yellow-400' => $log->status === 'pending',
]),
class="px-4 py-2"
>
{{ $log->status }}
</td>
<td class="px-4 py-2">
{{ $log->started_at ?? '' }}
</td>
<td class="px-4 py-2">
{{ $log->finished_at ?? '' }}
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="mt-4">
{{ $logs->links() }}
</div>
</div>