@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
@endforeach
@endforeach @endif