This commit is contained in:
40
resources/views/livewire/bot-logs.blade.php
Normal file
40
resources/views/livewire/bot-logs.blade.php
Normal 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>
|
||||
Reference in New Issue
Block a user