@inject('permission_helper', 'App\Helpers\PermissionHelper') @inject('permission_helper', 'App\Helpers\PermissionHelper') @php $selected = $permission_helper->selected($model->permissions) @endphp @php $permission_helper->getGroups() @endphp @include('admin.layouts.components.forms.input', [ 'label' => __('form.name'), 'type' => 'text', 'name' => 'name', 'required' => true, ])
{{ html()->label(__('form.permissions'))->class('mb-2.5 font-semibold text-black dark:text-white') }} {{ html()->span('*')->class('text-danger') }}
@foreach ($permission_helper->getGroups() as $resultGroup => $rec_group)
{{ strtoupper($rec_group->group_name) }}
@foreach ($permission_helper->dropdown() as $package => $permission) @if ($permission->group_name == $rec_group->group_name) @endif @endforeach
@endforeach
@error('permissions') {{ $message }} @enderror