wip
This commit is contained in:
@@ -141,7 +141,7 @@ class HoldingsTable extends DataTableComponent
|
|||||||
->html()
|
->html()
|
||||||
->label(fn($row) => Number::currency($row->market_gain_dollars ?? 0, $row->market_data?->currency ?? '') . view('components.ui.gain-loss-arrow-badge', [
|
->label(fn($row) => Number::currency($row->market_gain_dollars ?? 0, $row->market_data?->currency ?? '') . view('components.ui.gain-loss-arrow-badge', [
|
||||||
'costBasis' => $row->average_cost_basis,
|
'costBasis' => $row->average_cost_basis,
|
||||||
'marketValue' => $row->market_data->market_value,
|
'marketValue' => $row->market_data?->market_value,
|
||||||
'small' => true,
|
'small' => true,
|
||||||
]))
|
]))
|
||||||
->sortable(fn (Builder $query, string $direction) => $query->orderBy('market_gain_dollars', $direction)),
|
->sortable(fn (Builder $query, string $direction) => $query->orderBy('market_gain_dollars', $direction)),
|
||||||
|
|||||||
Reference in New Issue
Block a user