Open KamranBiglari opened 3 days ago
filament/filament
latest
v3.2.115
No response
PHP 8.3
I have SalesOrderLines which is a HasMany relation. The RepeatableEntry doesn't show the data in infolist.
dd($infolist->record->SalesOrderLines()->get()); // I can confirm that there are items in it and it's not empty
public static function infolist(Infolist $infolist): Infolist { // dd($infolist->record->SalesOrderLines()->get()); return $infolist ->schema([ ...self::getSalesOrderInfoListSchema($infolist), \Filament\Infolists\Components\RepeatableEntry::make('SalesOrderLines') ->columns(5) ->schema([ Infolists\Components\TextEntry::make('ItemCode') ->label(__('panel.itemcode')) ->inlineLabel(), Infolists\Components\TextEntry::make('ItemDescription') ->label(__('panel.itemdescription')) ->inlineLabel(), Infolists\Components\TextEntry::make('Quantity') ->label(__('panel.quantity')) ->inlineLabel(), Infolists\Components\TextEntry::make('AmountDC') ->label(__('panel.amountdc')) ->inlineLabel(), Infolists\Components\TextEntry::make('AmountFC') ->label(__('panel.amountfc')) ->inlineLabel(), ]), ]); }
Show all related data
public function SalesOrderLines(): HasMany { return $this->hasMany(SalesOrderLine::class, 'OrderID', 'OrderID'); }
https://github.com/KamranBiglari/mattech-hub3
@KamranBiglari the repo is not available..
Sorry, but it's not public!
Package
filament/filament
Package Version
latest
Laravel Version
v3.2.115
Livewire Version
No response
PHP Version
PHP 8.3
Problem description
I have SalesOrderLines which is a HasMany relation. The RepeatableEntry doesn't show the data in infolist.
dd($infolist->record->SalesOrderLines()->get()); // I can confirm that there are items in it and it's not empty
Expected behavior
Show all related data
Steps to reproduce
Reproduction repository (issue will be closed if this is not valid)
https://github.com/KamranBiglari/mattech-hub3
Relevant log output
No response
Donate 💰 to fund this issue