aliaswpeu
Fill modal infolist from array
this works:
Tables\Actions\Action::make('Adresy')
->modalFooterActions(fn() => [])->hiddenLabel()->tooltip('Adres dostawy')->icon('heroicon-o-map-pin')->infolist(
function (?Model $record, Infolist $infolist) {
$addresses = [ 0 => ['default' => 1, 'adr_Nazwa' => 'test'] ];
return $infolist->state(['addresses' => $addresses])->schema(
[
RepeatableEntry::make('addresses')->schema([
IconEntry::make('default')->boolean()->label('Domyślny'),
TextEntry::make('adr_Nazwa'),
]
)]);})->slideOver(),
6 replies