{{ __('Payment Receipt') }}
{{ $company_name }}
{{ $company_street }}
{{ $company_city }}{{!empty($company_state) ? ', ' . $company_state : '' }}
{{ $company_country_name }}{{ !empty($company_zipCode) ? ', ' . $company_zipCode : ''}}
{{ isset($paymentInfo->customer->name) ? $paymentInfo->customer->name : '' }}
{{ isset($paymentInfo->customer->customerBranch) ? $paymentInfo->customer->customerBranch->billing_street : '' }}
{{ isset($paymentInfo->customer->customerBranch) ? $paymentInfo->customer->customerBranch->billing_city : '' }}{{ isset($paymentInfo->customer->customerBranch->billing_state) ? ', ' . $paymentInfo->customer->customerBranch->billing_state : '' }}
{{ isset($paymentInfo->customer->customerBranch->billingCountry) ? $paymentInfo->customer->customerBranch->billingCountry->name : '' }}{{ isset($paymentInfo->customer->customerBranch->billing_zip_code) ? ', ' . $paymentInfo->customer->customerBranch->billing_zip_code : '' }}

{{ __('Payment No') . ' # ' . sprintf("%04d", $paymentInfo->id) }}
{{ __('Payment Date') }} : {{ formatDate($paymentInfo->transaction_date) }}
{{ __('Payment Method') }} : {{ isset($paymentInfo->paymentMethod) && isset($paymentInfo->paymentMethod->name) ? $paymentInfo->paymentMethod->name : __('N/A') }}

{{ __('Invoice No') }} {{ __('Invoice Date') }} {{ __('Invoice Amount') }} {{ __('Paid Amount') }}
{{ $paymentInfo->saleOrder->reference }} {{ formatDate($paymentInfo->saleOrder->order_date) }} {{ formatCurrencyAmount($paymentInfo->saleOrder->total, $paymentInfo->saleOrder->currency->symbol) }} {{ formatCurrencyAmount($paymentInfo->amount, $paymentInfo->currency->symbol) }}
@php if (isset($_GET['type']) && strtolower($_GET['type']) == 'print') $print = 'yes'; else $print = ''; @endphp