refactor: Improve code formatting and readability in FeedResource form and table schemas

This commit is contained in:
Yoga Pangestu 2026-02-19 07:13:14 +07:00
parent 33634cf470
commit ce313889bc

View File

@ -105,7 +105,10 @@ public static function table(Table $table): Table
TextColumn::make('price')
->label('Harga')
->money('IDR', decimalPlaces: 0),
->formatStateUsing(
fn ($state, $record) => 'Rp '.number_format($state, 0, ',', '.').' / '.($record->unit?->alias ?? '-')
)
->sortable(),
...TimestampColumns::make(),
])