@lang('app.paymentReceipt')

@if (!is_null($payment->order_id)) @endif @if (!is_null($payment->invoice_id)) @endif
@lang("app.amount") {{ currency_format($payment->amount, $payment->currency_id) }} {{ ($payment->currency ? $payment->currency->currency_code : company()->currency->currency_code) }}
@lang("modules.invoices.paymentMethod") @php $method = '--'; if(!is_null($payment->offline_method_id)) { $method = $payment->offlineMethod->name; } elseif(isset($payment->gateway)){ $method = $payment->gateway; } @endphp {{ $method }}
@lang("app.transactionId") {{ $payment->transaction_id ?? '--' }}
@lang("modules.invoices.paidOn") {{ $payment->paid_on ? $payment->paid_on->translatedFormat(company()->date_format) : '--' }}
@lang("app.order") {{ $payment->order->order_number }}
@lang("app.invoice") {{ $payment->invoice->invoice_number }}