refactor: Improve code formatting and readability in FeedResource form and table schemas
This commit is contained in:
parent
33634cf470
commit
ce313889bc
@ -105,7 +105,10 @@ public static function table(Table $table): Table
|
|||||||
|
|
||||||
TextColumn::make('price')
|
TextColumn::make('price')
|
||||||
->label('Harga')
|
->label('Harga')
|
||||||
->money('IDR', decimalPlaces: 0),
|
->formatStateUsing(
|
||||||
|
fn ($state, $record) => 'Rp '.number_format($state, 0, ',', '.').' / '.($record->unit?->alias ?? '-')
|
||||||
|
)
|
||||||
|
->sortable(),
|
||||||
|
|
||||||
...TimestampColumns::make(),
|
...TimestampColumns::make(),
|
||||||
])
|
])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user