@extends('user.pdf.app') @section('title', str_replace('_', ' ', optional($transaction->transaction_type)->name)) @section('content') @if ($transaction->transaction_type_id == Crypto_Sent)
{{ __('Transaction ID') }}

{{ $transaction->uuid }}

{{ __('Transaction Date') }}

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

{{ __('Status') }}

{{ getStatus($transaction->status) }}

{{ __('Confirmations') }}

{{ $confirmations }}

{{ __('Payment Method Name') }}

{{ $transaction->payment_method?->name }}

{{ __('Transaction type') }}

{{ str_replace('_', '', $transaction->transaction_type?->name) }}

{{ __('Receiver Address') }}

{{ $receiverAddress ?? '-' }}

{{ __('Description') }}

{{ __('Sent Amount') }}

{{ moneyFormat(optional($transaction->currency)->symbol, formatNumber($transaction->subtotal, $transaction->currency_id)) }}

{{ __('Network Fee') }}

{{ moneyFormat(optional($transaction->currency)->symbol, formatNumber($network_fee, $transaction->currency_id)) }}


{{ __('Total') }}

{{ moneyFormat(optional($transaction->currency)->symbol, formatNumber($transaction->total-$network_fee, $transaction->currency_id)) }}

@else
{{ __('Sender Address') }}

{{ $senderAddress ?? '-' }}

{{ __('Confirmations') }}

{{ $confirmations }}

{{ __('Transaction ID') }}

{{ $transaction->uuid }}

{{ __('Transaction Date') }}

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

{{ __('Status') }}

{{ getStatus($transaction->status) }}

{{ __('Transaction type') }}

{{ str_replace('_', ' ', $transaction->transaction_type?->name) }}

{{ __('Description') }}

{{ __('Sent Amount') }}

{{ moneyFormat(optional($transaction->currency)->symbol, formatNumber($transaction->subtotal, $transaction->currency_id)) }}


{{ __('Total') }}

{{ moneyFormat(optional($transaction->currency)->symbol, formatNumber($transaction->total-$network_fee, $transaction->currency_id)) }}

@endif @endsection