refactor: Change record title attribute in FeedPurchaseResource to 'purchase_date' and add 'note' column to FeedPurchasesTable

This commit is contained in:
Yoga Pangestu 2026-02-17 19:46:13 +07:00
parent 0bba1ff53f
commit 282e205ec1
2 changed files with 6 additions and 1 deletions

View File

@ -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';

View File

@ -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')