@php use App\Enums\LedgerTnxType; use App\Enums\TransactionCalcType; $type = data_get($transaction, 'type'); $meta = json_decode(data_get($transaction, 'meta')); $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'; } if(LedgerTnxType::LOSS==$type || LedgerTnxType::PENALTY==$type ) { $badge_class = 'badge-danger'; } if ($transaction->is_manual) { $method = "manual"; } else { $method = ""; } @endphp
{{ the_tnx($transaction->ivx, 'ivx') }}   {{ show_date($transaction->created_at, true) }}
{{ show_date($transaction->created_at, true) }}
{{ data_get($transaction, 'desc', '-') }} @if(data_get($meta, 'mode') == 'auto') @endif @if(!empty($transaction->note) || !empty($transaction->remarks)) remarks) ? __("Remark").": ".$transaction->remarks : "" }}"> @endif
@if(!isset($hide_user))
{{ the_uid($transaction->user_id) }}
@endif
{{ ucfirst(__($type)) }} {{ ($method) ? __("(M)") : "" }}
{{ calc_sign($transaction->calc) }} {{ money($transaction->amount, base_currency()) }} {{ the_uid($transaction->user_id) }}