@foreach ($breadcrumbs as $crumb) @if (! $loop->first)
/
@endif
{{ $crumb->menu_name }}
@endforeach
/
แก้ไขสิทธิ์ {{ $role->role_name }}
แก้ไขสิทธิ์ {{ $role->role_name }}
@if (session('status')) @endif
@csrf @method('PUT')
เมนู
ทั้งหมด
@foreach ($actions as $label)
{{ $label }}
@endforeach
@foreach ($menuRows as $menuRow)
parent_id) data-parent="{{ $menuRow->parent_id }}" @endif>
{{ $menuRow->menu_name }}
parent_id) data-include-children @endif aria-label="เลือกทั้งหมด {{ $menuRow->menu_name }}" >
@foreach ($actions as $action => $label) @php $permission = $permissions->get($menuRow->id.'|'.$action)?->first(); @endphp
@if ($permission)
contains($permission->id)) class="h-4 w-4 rounded border-slate-300" > @endif
@endforeach
@endforeach
@if ($menuRows->isEmpty())
ยังไม่มีเมนู
@endif @error('permissions')
{{ $message }}
@enderror @error('permissions.*')
{{ $message }}
@enderror
บันทึก
@if ($menu)
กลับ
@endif
@if ($errors->any()) @endif