formatting for reinvestments

This commit is contained in:
hackerESQ
2024-10-18 22:18:25 -05:00
parent 3cb0ad5c86
commit 074cfa70fb
2 changed files with 7 additions and 3 deletions
@@ -59,7 +59,9 @@ new class extends Component {
<x-badge <x-badge
:value="$transaction->split :value="$transaction->split
? 'SPLIT' ? 'SPLIT'
: $transaction->transaction_type" : ($transaction->reinvested_dividend
? 'REINVEST'
: $transaction->transaction_type)"
class="{{ $transaction->transaction_type == 'BUY' class="{{ $transaction->transaction_type == 'BUY'
? 'badge-success' ? 'badge-success'
: 'badge-error' }} badge-sm mr-3" : 'badge-error' }} badge-sm mr-3"
@@ -94,7 +94,9 @@ new class extends Component {
<x-badge <x-badge
:value="$row->split :value="$row->split
? 'SPLIT' ? 'SPLIT'
: $row->transaction_type" : ($row->reinvested_dividend
? 'REINVEST'
: $row->transaction_type)"
class="{{ $row->transaction_type == 'BUY' class="{{ $row->transaction_type == 'BUY'
? 'badge-success' ? 'badge-success'
: 'badge-error' }} badge-sm mr-3" : 'badge-error' }} badge-sm mr-3"