@if(count($module_permissions) > 0) @php $module_role_permissions = []; if(!empty($role_permissions)) { $module_role_permissions = $role_permissions; } @endphp @foreach($module_permissions as $key => $value)

{{$key}}

@foreach($value as $module_permission) @php if(empty($role_permissions) && $module_permission['default']) { $module_role_permissions[] = $module_permission['value']; } @endphp
@if(isset($module_permission['end_group']) && $module_permission['end_group'])
@endif
@endforeach
@endforeach @endif