id)) action="{{ route('roles.update', ['id' => $role->id]) }}" @else action="{{ route('roles.store') }}" @endif > @csrf @isset($role->id) {{ method_field('PUT') }} @endisset
Basic Details

Permissions

@foreach($moduleListing as $key => $menuItems) @foreach($menuItems as $menuItemList) @foreach($menuItemList['children'] as $menu) @endforeach @endforeach @endforeach
{{ $key }} {{ $menuItemList['label'] }} @php $allChecked = []; if(!empty($permissions)): foreach($menuItemList['children'] as $menu): if(in_array($menu['route'], $permissions)) { $allChecked[] = $menu['route']; } endforeach; $allC = sizeof($menuItemList['children']) == sizeof($allChecked) ? true : false; else: $allC = false; endif; @endphp @if($allC == true) @else @endif
Cancel
@section('extraJs') @endsection