@extends('admin.pdf.app') @section('title', __('Transaction List pdf')) @section('content')
| {{ __('Date') }} | {{ __('User') }} | {{ __('Type') }} | {{ __('Amount') }} | {{ __('Fees') }} | {{ __('Total') }} | {{ __('Currency') }} | {{ __('Receiver') }} | {{ __('Status') }} | |||||
| {{ dateFormat($transaction->created_at) }} | @if (in_array($transaction->transaction_type_id, getPaymoneySettings('transaction_types')['web']['sent']))@if (isset($transaction->user)) {{ getColumnValue($transaction->user) }} @elseif (module('CryptoExchange') && isset($transaction->crypto_exchange) && !empty($transaction->crypto_exchange)) {{ optional($transaction->crypto_exchange)->email_phone }} @else {{ __('-') }} @endif | @elseif (in_array($transaction->transaction_type_id, getPaymoneySettings('transaction_types')['web']['received'])){{ getColumnValue($transaction->end_user) }} | @endif{{ transactionTypeName($transaction->transaction_type) }} | {{ formatNumber($transaction->subtotal, $transaction->currency_id) }} | {{ getFormatFee($transaction) }} | {{ $transaction->total > 0 ? '+' . formatNumber($transaction->total, $transaction->currency_id) : formatNumber($transaction->total, $transaction->currency_id) }} | {{ optional($transaction->currency)->code }} | @switch($transaction->transaction_type_id) @case(Deposit) @case(Exchange_From) @case(Exchange_To) @case(module('CryptoExchange') ? Crypto_Buy : false): @case(module('CryptoExchange') ? Crypto_Sell : false): @case(module('CryptoExchange') ? Crypto_Swap : false): @case(Withdrawal) @case(Payment_Sent){{ getColumnValue($transaction->end_user) }} | @break @case(Transferred) @case(Received)@if (optional($transaction->transfer)->receiver) {{ getColumnValue(optional($transaction->transfer)->receiver) }} @elseif (optional($transaction->transfer)->email) {{ optional($transaction->transfer)->email }} @elseif (optional($transaction->transfer)->phone) {{ optional($transaction->transfer)->phone }} @else {{ '-' }} @endif | @break @case(Request_Sent) @case(Request_Received){{ isset($transaction->request_payment?->receiver) ? getColumnValue(optional($transaction->request_payment)->receiver) : optional($transaction->request_payment)->email }} | @break @case(Payment_Received){{ getColumnValue($transaction->user) }} | @break @default{{ getTransactionListUser($transaction, 'receiver', false) ?? '-'}} | @endswitch{{ getStatus($transaction->status) }} |