@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)