{{ html()->label('Name')->class('form-label') }} {{ html()->text('name')->class('form-control')->placeholder('Enter Role Name')->required() }}
{{ html()->label('Guard Name')->class('form-label') }} {{ html()->text('guard_name', 'web')->class('form-control')->isReadonly($readonly = true) }}
{{ html()->checkbox('all_permissions_check')->class('form-check-input')->id('all-check') }} {{ html()->label('Select All')->class('form-check-label')->for('all-check') }}
{{ html()->p()->text('Enable all Permissions for this role')->class('fs-6 text-muted mt-1') }}
@foreach ($permissionLists as $key => $permission)
{{--

--}}

{{-- {{ Str::ucfirst($key) }}

--}}
Permissions
@foreach ($permission as $index => $item)
{{ html()->checkbox('permissions[]')->id('permission_' . $index)->value($index)->class('form-check-input child-checkbox')->checked($editable && in_array($index, $permissionIDsArray)) }} {{ html()->label(Str::ucfirst($item))->for('permission_' . $index)->class('form-check-label ms-2') }}
@endforeach
@endforeach
@push('js') @endpush