@if(!empty($permissions) || !empty($chcked_permissions))
@php $oldName = ''; @endphp
@foreach($permissions as $key => $permission)
@php $module = explode('_', $permission->name);
$moduleName = !empty($module[0]) ? ucfirst($module[0]) : '';
$inputClass = str_replace(' ', '_', $moduleName);
@endphp
@if(empty($moduleName))
Fristly, please create permissions
@endif
@php $oldName = $moduleName; @endphp
@endforeach
@endif