@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