mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 14:00:56 +08:00
bonus log add time field
This commit is contained in:
@@ -55,13 +55,15 @@ class BonusLogResource extends Resource
|
||||
,
|
||||
Tables\Columns\TextColumn::make('old_total_value')
|
||||
->label(__('bonus-log.fields.old_total_value'))
|
||||
->formatStateUsing(fn ($state) => number_format($state))
|
||||
,
|
||||
Tables\Columns\TextColumn::make('value')
|
||||
->formatStateUsing(fn ($record) => $record->old_total_value > $record->new_total_value ? "-" . $record->value : "+" . $record->value)
|
||||
->formatStateUsing(fn ($record) => $record->old_total_value > $record->new_total_value ? "-" . number_format($record->value) : "+" . number_format($record->value))
|
||||
->label(__('bonus-log.fields.value'))
|
||||
,
|
||||
Tables\Columns\TextColumn::make('new_total_value')
|
||||
->label(__('bonus-log.fields.new_total_value'))
|
||||
->formatStateUsing(fn ($state) => number_format($state))
|
||||
,
|
||||
Tables\Columns\TextColumn::make('comment')
|
||||
->label(__('label.comment'))
|
||||
|
||||
Reference in New Issue
Block a user