@extends('admin.layouts.master') @section('title', __('Edit Transaction')) @section('page_content')
{{ __('Transaction Details') }}
@if ($transaction->status)

{{ __('Status') }} : @php $transactionTypes = getPaymoneySettings('transaction_types')['web']; if (in_array($transaction->transaction_type_id, $transactionTypes['all'])) { echo getStatusText($transaction->status); } @endphp

@endif
{{ csrf_field() }}
{{-- User --}}

@if (in_array($transaction->transaction_type_id, getPaymoneySettings('transaction_types')['web']['sent'])) {{ getColumnValue($transaction->user) }} @elseif (in_array($transaction->transaction_type_id, getPaymoneySettings('transaction_types')['web']['received'])) {{ getColumnValue($transaction->end_user) }} @endif

{{-- Receiver --}}

@switch($transaction->transaction_type_id) @case(module('TatumIo') ? Crypto_Sent : false) @case(module('TatumIo') ? Token_Sent : false) {{ getColumnValue($transaction->end_user) }} @break @case(module('TatumIo') ? Crypto_Received : false) @case(module('TatumIo') ? Token_Received : false) {{ getColumnValue($transaction->end_user) }} @break @endswitch

@if (module('TatumIo')) @if (isset($senderAddress))

{{ $senderAddress }}

@endif @if (isset($receiverAddress))

{{ $receiverAddress }}

@endif @if (isset($txId))

{{ wordwrap($txId, 50, "\n", true) }}

@endif @if (isset($confirmations))

{{ $confirmations }}

@endif @endif @if ($transaction->uuid)

{{ $transaction->uuid }}

@endif @if ($transaction->transaction_type_id)

{{ ($transaction->transaction_type?->name == "Withdrawal") ? "Payout" : str_replace('_', ' ', $transaction->transaction_type?->name) }}

@endif @if (($transaction->transaction_type_id == Token_Sent || $transaction->transaction_type_id == Token_Received) ) @if ($transaction->currency)

{{ $transaction->currency?->code }}

@endif @if (isset($network))

{{ $network->code }}

@endif @elseif ($transaction->currency)

{{ $transaction->currency?->code }}

@endif @if (isset($transaction->payment_method_id))
payment_method?->name }}">

{{ ($transaction->payment_method?->name == "Mts") ? settings('name') : $transaction->payment_method?->name }}

@endif @if ($transaction->created_at)

{{ dateFormat($transaction->created_at) }}

@endif @if ($transaction->status)

{{ str_replace('_', ' ', $transaction->transaction_type?->name) }}{{ __(' Status Cannot Be Changed') }}

@endif
@if ($transaction->subtotal)
{{ moneyFormat(optional($transaction->currency)->symbol, formatNumber($transaction->subtotal, $transaction->currency?->id)) }}
@endif
@php $total_transaction_fees = $transaction->charge_percentage + $transaction->charge_fixed; @endphp
@if (module('TatumIo') && ($transaction->currency?->type == 'crypto_asset' || $transaction->currency?->type == 'crypto_token'))

@if ($transaction->transaction_type_id == Crypto_Sent) {{ moneyFormat(optional($transaction->currency)->symbol, formatNumber($network_fee, $transaction->currency_id)) }} @elseif ($transaction->transaction_type_id == Crypto_Received) {{ moneyFormat(optional($transaction->currency)->symbol, formatNumber(0.00000000, $transaction->currency_id)) }} @elseif ($transaction->transaction_type_id == Token_Sent && isset($network)) {{ moneyFormat($network->symbol, formatNumber($network_fee, $network->id)) }} @elseif ($transaction->transaction_type_id == Token_Received && isset($network)) {{ moneyFormat($network->symbol, formatNumber(0.00000000, $network->id)) }} @endif

@endif

@if ($transaction->total)

@if (module('TatumIo') && ($transaction->currency->type == 'crypto_asset') && ($transaction->transaction_type_id == Crypto_Sent)) {{ moneyFormat(optional($transaction->currency)->symbol, formatNumber($transaction->subtotal + $network_fee, $transaction->currency_id)) }} @endif @if (module('TatumIo') && ($transaction->currency->type == 'crypto_token') && ($transaction->transaction_type_id == Token_Sent || $transaction->transaction_type_id == Token_Received)) {{ moneyFormat(optional($transaction->currency)->symbol, formatNumber($transaction->subtotal, $transaction->currency_id)) }} @endif

@endif
@endsection