@lang('app.payment') @lang('app.receipt')

@if (!is_null($payment->order_id)) @endif @if (!is_null($payment->invoice_id)) @endif
@lang("app.amount") {{ currency_formatter($payment->amount, '') }} {{ ($payment->currency ? $payment->currency->currency_code : global_setting()->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->format(global_setting()->date_format) : '--' }}
@lang("app.order") {{ $payment->order->order_number }}
@lang("app.invoice") {{ $payment->invoice->invoice_number }}