48 lines
1.7 KiB
PHP
48 lines
1.7 KiB
PHP
<x-layouts.app :title="__('Dashboard')">
|
|
<div class="flex h-full w-full flex-1 flex-col gap-4 rounded-xl">
|
|
<div class="flex justify-end">
|
|
<button
|
|
class="bg-gray-600 p-2 text-white rounded-lg cursor-pointer"
|
|
wire:navigate
|
|
href="{{ route('bots.create') }}"
|
|
>
|
|
{{ __('Add Bot') }}
|
|
</button>
|
|
</div>
|
|
<div class="grid auto-rows-min gap-4 md:grid-cols-3">
|
|
<div
|
|
class="relative aspect-video overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-700"
|
|
>
|
|
<div class="p-4">
|
|
<h2>Active Bots</h2>
|
|
</div>
|
|
@foreach ($bots->where('enabled', 1) as $bot)
|
|
<div class="px-4 py-1">
|
|
<p>{{ $bot->name }}</p>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
<div
|
|
class="relative aspect-video overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-700"
|
|
>
|
|
<div class="p-4"></div>
|
|
</div>
|
|
<div
|
|
class="relative aspect-video overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-700"
|
|
>
|
|
<div class="p-4"></div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="relative h-full flex-1 overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-700"
|
|
>
|
|
<div class="p-4">
|
|
<h2>All Bots</h2>
|
|
</div>
|
|
<div class="p-4">
|
|
@livewire('bots-list')
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-layouts.app>
|