refactor: Change record title attribute in FeedPurchaseResource to 'purchase_date' and add 'note' column to FeedPurchasesTable
This commit is contained in:
parent
0bba1ff53f
commit
282e205ec1
@ -26,7 +26,7 @@ class FeedPurchaseResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'reference_number';
|
||||
protected static ?string $recordTitleAttribute = 'purchase_date';
|
||||
|
||||
protected static ?string $slug = 'manage/feed-purchases';
|
||||
|
||||
|
||||
@ -70,6 +70,11 @@ public static function configure(Table $table): Table
|
||||
->money('IDR', decimalPlaces: 0)
|
||||
->sortable(),
|
||||
|
||||
TextColumn::make('note')
|
||||
->label('Catatan')
|
||||
->wrap()
|
||||
->toggleable(),
|
||||
|
||||
TextColumn::make('created_at')
|
||||
->label('Dibuat')
|
||||
->dateTime('d/m/Y H:i')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user