Initial work

This commit is contained in:
2025-08-30 16:11:06 +02:00
parent 4e5f154492
commit 774d1cf45f
41 changed files with 1217 additions and 281 deletions

View 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>