Adding raid controller for administrators
This commit is contained in:
parent
b155248321
commit
9f147821b3
3 changed files with 51 additions and 0 deletions
22
resources/views/admin/raid/index.blade.php
Normal file
22
resources/views/admin/raid/index.blade.php
Normal 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>
|
||||
Reference in a new issue