components([ Section::make() ->schema([ TextInput::make('name') ->label('Role Name') ->required() ->maxLength(255) ->unique(ignoreRecord: true), ]), Section::make('Permissions') ->description('Chọn quyền cho role này') ->schema([ CheckboxList::make('permissions') ->label('') ->options(fn () => Permission::orderBy('name')->pluck('name', 'name')->toArray()) ->columns(4) ->columnSpanFull(), ]), ]); } }