@extends('user.pdf.app') @section('title', __('Exchange pdf')) @section('content')
{{ __('Transaction ID') }}

{{ $currencyExchange->uuid }}

{{ __('Transaction Date') }}

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

{{ __('Exchange From') }}

{{ optional(optional($currencyExchange->fromWallet)->currency)->code }}

{{ __('Exchange To') }}

{{ optional(optional($currencyExchange->toWallet)->currency)->code }}

{{ __('Status') }}

{{ $currencyExchange->status }}

{{ __('Transaction Type') }}

{{ ($currencyExchange->type == "Out" ? __('Exchange To') : __('Exchange From')) }}

{{ __('Exchange Amount') }}

{{ moneyFormat(optional(optional($currencyExchange->fromWallet)->currency)->symbol, formatNumber($currencyExchange->amount)) }}

{{ __('Exchange Rate') }}

1 {{ optional(optional($currencyExchange->fromWallet)->currency)->code }} = {{ (float)($currencyExchange->exchange_rate) }} {{ optional(optional($currencyExchange->toWallet)->currency)->code }}

{{ __('Description') }}

{{ __('Sub Total') }}

{{ moneyFormat(optional(optional($currencyExchange->fromWallet)->currency)->symbol, formatNumber($currencyExchange->amount)) }}

{{ __('Fees') }}

{{ moneyFormat(optional(optional($currencyExchange->fromWallet)->currency)->symbol, formatNumber($currencyExchange->fee)) }}


{{ __('Total') }}

{{ moneyFormat(optional(optional($currencyExchange->fromWallet)->currency)->symbol, formatNumber($currencyExchange->amount + $currencyExchange->fee)) }}

@endsection