Initial work
This commit is contained in:
39
resources/views/livewire/bots-list.blade.php
Normal file
39
resources/views/livewire/bots-list.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<div>
|
||||
<table class="table w-full">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="border px-4 py-2">Name</th>
|
||||
<th class="border px-4 py-2">Class</th>
|
||||
<th class="border px-4 py-2">Schedule</th>
|
||||
<th class="border px-4 py-2">Next due</th>
|
||||
<th class="border px-4 py-2">Enabled</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="text-center">
|
||||
@foreach ($bots as $bot)
|
||||
<tr>
|
||||
<td class="border px-4 py-2">
|
||||
<a href="{{ route('bots.edit', $bot) }}" class="text-blue-500">
|
||||
{{ $bot->name }}
|
||||
</a>
|
||||
</td>
|
||||
<td class="border px-4 py-2">{{ $bot->class }}</td>
|
||||
<td class="border px-4 py-2">
|
||||
{{ $bot->schedule }}
|
||||
<span class="text-gray-300">
|
||||
({{ $bot->cron_to_human }})
|
||||
</span>
|
||||
</td>
|
||||
<td class="border px-4 py-2">{{ $bot->next_due }}</td>
|
||||
<td class="border px-4 py-2">
|
||||
<input
|
||||
type="checkbox"
|
||||
@checked($bot->enabled)
|
||||
wire:click="toggleBot({{ $bot->id }})"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user