@extends('admin.layouts.master') @section('title', __('Transaction List')) @php use \App\Enums\TransactionType as dTType; use \App\Enums\TransactionStatus as dTStatus; use \App\Enums\TransactionCalcType as dTCType; $tnx = (!empty($transaction)) ? $transaction : false; $user = (!empty($profile)) ? $profile : false; @endphp @section('content')

{{ __('Transaction') }} / #{{ the_tnx(data_get($tnx, 'tnx')) }}

  • {{ __('Type:') }} {{ __(ucfirst($tnx->type)) }}
  • {{ __('Status:') }} {{ __(ucfirst($tnx->status)) }}
  • {{ __('Order At:') }} {{ __(show_date($tnx->created_at, true)) }}
{{-- nk-block-head --}} @if(!empty($tnx)) @php $base_currency = base_currency(); $amount = $tnx->amount; $total = $tnx->total; $currency = $tnx->currency; $tnx_currency = $tnx->tnx_currency; $tnx_amount = $tnx->tnx_amount; $tnx_total = $tnx->tnx_amount; $exchange = $tnx->exchange; $completed_by = data_get($tnx, 'completed_by'); @endphp
{{ __('In Account') }}
{{ __('Amount') }} {{ money($amount, $base_currency) }}
{{ __('Total :Type', ['type' => data_get($tnx, 'type')]) }} {{ money($total, $base_currency) }}
{{ __('Fees') }} {{ money(data_get($tnx, 'fees', '-'), $base_currency) }}
{{ __('In Transaction') }}
{{ __('Amount') }} {{ money($tnx_amount, $tnx_currency) }}
{{ __('Total Charge') }} {{ money(data_get($tnx, 'tnx_total', '-'), $tnx_currency) }}
{{ __('Exchange Rate') }} {{ __('1 :from = :rate', ['rate' => money($exchange, $tnx_currency), 'from' => $currency]) }}
{{ __('Order Info') }}
{{ __('Order Date') }} {{ show_date(data_get($tnx, 'created_at')) }}
{{ __('Order By') }} {{ the_uid($tnx->transaction_by->id) }}
@if(data_get($tnx, 'confirmed_at'))
{{ __('Confirmed At') }} {{ show_date(data_get($tnx, 'confirmed_at'), true) }}
{{ __('Confirmed By') }} {{ data_get($tnx, 'confirmed_by', 'Not yet') }}
@endif @if(data_get($tnx, 'completed_at'))
{{ __('Completed At') }} {{ show_date(data_get($tnx, 'completed_at'), true) }}
{{ __('Completed By') }} {!! (isset($completed_by['name']) ? $completed_by['name'] : ''. __('Unknown') .'') !!}
@endif
{{ __('Additional Details') }}
{{ __('Transaction Type') }} {{ ucfirst(data_get($tnx, 'type')) }}
{{ __('Payment Gateway') }} {{ data_get($tnx, 'tnx_method') }} @if(data_get($tnx, 'is_online') == 1) {{ __('Online Gateway') }} @endif
@if(data_get($tnx, 'pay_from'))
{{ __('Payment From') }} {{ data_get($tnx, 'pay_from', '~') }}
@endif @if(data_get($tnx, 'reference'))
{{ __('Reference / Hash') }} {{ data_get($tnx, 'reference', '~') }}
@endif @if(data_get($tnx, 'pay_to'))
{{ __('Payment To') }} ({{ data_get($tnx, 'meta.pay_meta.account_name') ?? data_get($tnx, 'meta.pay_meta.payment.acc_name') }}) {{ data_get($tnx, 'pay_to', '~') }}
@endif @if(data_get($tnx, 'description'))
{{ __('Transaction Details') }} {{ data_get($tnx, 'description') }}
@endif @if(data_get($tnx, 'meta.unote'))
{{ __('Description by User') }} {{ data_get($tnx, 'meta.unote') }}
@endif @if(data_get($tnx, 'note'))
{{ __('Admin Note for User') }} {{ data_get($tnx, 'note') }}
@endif @if(data_get($tnx, 'remark'))
{{ __('Remarks by Admin') }} {{ data_get($tnx, 'remark') }}
@endif @if(data_get($tnx->ledger,'balance'))
{{ __('Updated Balance') }} {{ money(data_get($tnx->ledger, 'balance'),base_currency()) }}
@endif
{{-- .nk-block --}}
@else Not found! @endif
@endsection