Archived
1
0
Fork 0

Adding raid controller for administrators

This commit is contained in:
Henrik Hautakoski 2022-01-09 10:44:49 +01:00
parent b155248321
commit 9f147821b3
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,22 @@
<x-layout name="admin">
<div class="mb-4">
<x-button href="{{ route('admin.raid.create') }}" type="info">{{ __('New') }}</x-button>
</div>
@livewire('datatable', [
'model' => \App\Models\Raid::class,
'default_sort' => 'id',
'route_edit' => 'admin.raid.edit',
'route_delete' => 'admin.raid.delete',
'columns' => [
'id' => '#',
'name' => 'Name',
],
'sort_columns' => [
'id' => 'id',
'name' => 'name',
]
])
</x-layout>