Repeater::make('propertyBedrooms')
->collapsed()
->label('')
->relationship()
->createItemButtonLabel('Add a new bedroom')
->columnSpanFull()
->itemLabel(fn (array $state): ?string => Str::of($state['title'])->title()->replace('_', ' ') ?? null)
->schema([
TextInput::make('title'),
RichEditor::make('description'),
CheckboxList::make('amenities')
->relationship('amenities', 'name')
->columns(4)
->options(RoomAmenity::all()->pluck('name', 'id'))
]),
Repeater::make('propertyBedrooms')
->collapsed()
->label('')
->relationship()
->createItemButtonLabel('Add a new bedroom')
->columnSpanFull()
->itemLabel(fn (array $state): ?string => Str::of($state['title'])->title()->replace('_', ' ') ?? null)
->schema([
TextInput::make('title'),
RichEditor::make('description'),
CheckboxList::make('amenities')
->relationship('amenities', 'name')
->columns(4)
->options(RoomAmenity::all()->pluck('name', 'id'))
]),