{{ $menu->menu_name }}

@if (session('status')) @endif

{{ $editingRole ? 'แก้ไขข้อมูล' : 'แบบฟอร์มการบันทึกข้อมูล' }}

@csrf @if ($editingRole) @method('PUT') @endif
@if ($editingRole) ยกเลิก @endif

รายการ

@foreach ($roles as $role) @endforeach
ลำดับ ชื่อ สถานะ *
{{ $role->role_id }} {{ $role->role_name }}
@csrf @method('PATCH')
@if ($roles->isEmpty())

{{ $search !== '' ? 'ไม่พบรายการที่ค้นหา' : 'ยังไม่มีข้อมูล' }}

@endif @include('shell.partials.pagination', ['paginator' => $roles])
@if ($errors->any()) @endif