@extends('layouts.vertical', ['subtitle' => 'Role']) @section('content') @include('layouts.partials/page-title', ['title' => 'Settings', 'subtitle' => 'Role'])
Manage Permissions for Role: {{ $role->name }}
@csrf @method("put") @foreach($menus->where('parent_id', null) as $parent) @php $role_menu = optional($role_menus->firstWhere('menu_id', $parent->id)); @endphp @foreach($menus->where('parent_id', $parent->id) as $child) @php $child_role_menu = optional($role_menus->firstWhere('menu_id', $child->id)); @endphp @endforeach @endforeach
Menu Show Create Update Destroy
{{ $parent->name }} allow_show ? 'checked' : '' }} readonly>
— {{ $child->name }} allow_show ? 'checked' : '' }}> allow_create ? 'checked' : '' }}> allow_update ? 'checked' : '' }}> allow_destroy ? 'checked' : '' }}>
@endsection @section('scripts') @vite(['resources/js/roles/role_menu.js']) @endsection