@php use App\Enums\LedgerTnxType; use App\Enums\TransactionCalcType; $type = data_get($transaction, 'type'); $badge_class = 'badge-dark'; if(LedgerTnxType::INVEST==$type){ $badge_class = 'badge-info'; } if(LedgerTnxType::CAPITAL==$type){ $badge_class = 'badge-success'; } if(LedgerTnxType::PROFIT==$type){ $badge_class = 'badge-success'; } if(LedgerTnxType::TRANSFER==$type){ $badge_class = 'badge-warning'; } @endphp
{{ the_tnx($transaction->ivx, 'ivx') }}
{{ data_get($transaction, 'desc', '-') }}
{{ the_uid($transaction->user_id) }}
{{ ucfirst(__($type)) }}
{{ calc_sign($transaction->calc) }} {{ money($transaction->amount, base_currency()) }}