FilamentF
Filament10mo ago
msalehi

Adding edit and delete actions to items of a RepeatableEntry

i have a RepeatableEntry that loads items of a ticket topic:
return $infolist->schema([
            RepeatableEntry::make('items')
                ->label('')
                ->schema([
                    TextEntry::make('replier_name'),
                    TextEntry::make('created_at')
                        ->jalaliDateTime('l j F Y - H:i:s'),
                    TextEntry::make('body')
                        ->columnSpanFull(),
                    TextEntry::make('read_at')
                        ->jalaliDateTime('l j F Y - H:i:s'),
                ])
                ->columns(2)
                ->columnSpanFull(),
        ]);

How can i add Edit and Delete action to each item ?
Consider that i need body state in Edit action
I prefer to edit items in a modal form.
Was this page helpful?