@lang('lang_v1.view_payment') @if (!empty($single_payment_line->payment_ref_no)) ( @lang('purchase.ref_no'): {{ $single_payment_line->payment_ref_no }} ) @endif

@if (!empty($single_payment_line->payment_ref_no)) ( @lang('purchase.ref_no'): {{ $single_payment_line->payment_ref_no }} ) @endif

@if (!empty($transaction))
@if (in_array($transaction->type, ['purchase', 'purchase_return']))
@lang('purchase.supplier'):
{{ $transaction->contact->supplier_business_name }} {{ $transaction->contact->name }} {!! $transaction->contact->contact_address !!} @if (!empty($transaction->contact->tax_number))
@lang('contact.tax_no'): {{ $transaction->contact->tax_number }} @endif @if (!empty($transaction->contact->mobile))
@lang('contact.mobile'): {{ $transaction->contact->mobile }} @endif @if (!empty($transaction->contact->email))
@lang('business.email'): {{ $transaction->contact->email }} @endif
@lang('business.business'):
@if ($result['role'] != 'Admin' && !empty($result['location_business_name'])) {{ $result['location_business_name'] }} @else {{ $transaction->business->name }} @endif @if (!empty($transaction->location)) {{ $transaction->location->name }} @if (!empty($transaction->location->landmark))
{{ $transaction->location->landmark }} @endif @if ( !empty($transaction->location->city) || !empty($transaction->location->state) || !empty($transaction->location->country))
{{ implode(',', array_filter([$transaction->location->city, $transaction->location->state, $transaction->location->country])) }} @endif @endif @if (!empty($transaction->business->tax_number_1))
{{ $transaction->business->tax_label_1 }}: {{ $transaction->business->tax_number_1 }} @endif @if (!empty($transaction->business->tax_number_2))
{{ $transaction->business->tax_label_2 }}: {{ $transaction->business->tax_number_2 }} @endif @if (!empty($transaction->location)) @if (!empty($transaction->location->mobile))
@lang('contact.mobile'): {{ $transaction->location->mobile }} @endif @if (!empty($transaction->location->email))
@lang('business.email'): {{ $transaction->location->email }} @endif @endif
@else
@if ($transaction->type != 'payroll' && !empty($transaction->contact)) @lang('contact.customer'):
{{ $transaction->contact->name ?? '' }} {!! $transaction->contact->contact_address !!} @if (!empty($transaction->contact->tax_number))
@lang('contact.tax_no'): {{ $transaction->contact->tax_number }} @endif @if (!empty($transaction->contact->mobile))
@lang('contact.mobile'): {{ $transaction->contact->mobile }} @endif @if (!empty($transaction->contact->email))
@lang('business.email'): {{ $transaction->contact->email }} @endif
@else @if (!empty($transaction->transaction_for)) @lang('essentials::lang.payroll_for'):
{{ $transaction->transaction_for->user_full_name }} @if (!empty($transaction->transaction_for->address))
{{ $transaction->transaction_for->address }} @endif @if (!empty($transaction->transaction_for->contact_number))
@lang('contact.mobile'): {{ $transaction->transaction_for->contact_number }} @endif @if (!empty($transaction->transaction_for->email))
@lang('business.email'): {{ $transaction->transaction_for->email }} @endif
@endif @endif
@lang('business.business'):
@if ($result['role'] != 'Admin' && !empty($result['location_business_name'])) {{ $result['location_business_name'] }} @else {{ $transaction->business->name }} @endif @if (!empty($transaction->location)) {{ $transaction->location->name }} @if (!empty($transaction->location->landmark))
{{ $transaction->location->landmark }} @endif @if ( !empty($transaction->location->city) || !empty($transaction->location->state) || !empty($transaction->location->country))
{{ implode(',', array_filter([$transaction->location->city, $transaction->location->state, $transaction->location->country])) }} @endif @endif @if (!empty($transaction->business->tax_number_1))
{{ $transaction->business->tax_label_1 }}: {{ $transaction->business->tax_number_1 }} @endif @if (!empty($transaction->business->tax_number_2))
{{ $transaction->business->tax_label_2 }}: {{ $transaction->business->tax_number_2 }} @endif @if (!empty($transaction->location)) @if (!empty($transaction->location->mobile))
@lang('contact.mobile'): {{ $transaction->location->mobile }} @endif @if (!empty($transaction->location->email))
@lang('business.email'): {{ $transaction->location->email }} @endif @endif
@endif
@endif

@lang('purchase.amount') : @format_currency($single_payment_line->amount)
@lang('lang_v1.payment_method') : {{ $payment_types[$single_payment_line->method] ?? '' }}
@if ($single_payment_line->method == 'card') @lang('lang_v1.card_holder_name') : {{ $single_payment_line->card_holder_name }}
@lang('lang_v1.card_number') : {{ $single_payment_line->card_number }}
@lang('lang_v1.card_transaction_number') : {{ $single_payment_line->card_transaction_number }} @elseif($single_payment_line->method == 'cheque') @lang('lang_v1.cheque_number') : {{ $single_payment_line->cheque_number }} @elseif($single_payment_line->method == 'bank_transfer') @elseif($single_payment_line->method == 'custom_pay_1') @lang('lang_v1.transaction_number') : {{ $single_payment_line->transaction_no }} @elseif($single_payment_line->method == 'custom_pay_2') @lang('lang_v1.transaction_number') : {{ $single_payment_line->transaction_no }} @elseif($single_payment_line->method == 'custom_pay_3') @lang('lang_v1.transaction_number'): {{ $single_payment_line->transaction_no }} @endif @lang('purchase.payment_note') : {{ $single_payment_line->note }}
@lang('purchase.ref_no'): @if (!empty($single_payment_line->payment_ref_no)) {{ $single_payment_line->payment_ref_no }} @else -- @endif
@lang('lang_v1.paid_on'): {{ @format_datetime($single_payment_line->paid_on) }}

@if (!empty($single_payment_line->document_path)) {{ __('purchase.download_document') }} @endif