@if(empty($payment->parent_id))
0) rowspan="{{$count_child_payments + 1}}" style="vertical-align:middle;" @endif>
{{@format_datetime($payment->paid_on)}}
|
@endif
0) class="bg-gray" @endif>
{{$payment->payment_ref_no}}
@if(!empty($parent_payment_ref_no))
@lang('lang_v1.parent_payment'): {{$parent_payment_ref_no}}
@endif
|
0) class="bg-gray" @endif>
{{$payment->amount}}
|
0) class="bg-gray" @endif>
@php
$method = !empty($payment_types[$payment->method]) ? $payment_types[$payment->method] : '';
if ($payment->method == 'cheque') {
$method .= ' (' . __('lang_v1.cheque_no') . ': ' . $payment->cheque_number . ')';
} elseif ($payment->method == 'card') {
$method .= ' (' . __('lang_v1.card_transaction_no') . ': ' . $payment->card_transaction_number . ')';
} elseif ($payment->method == 'bank_transfer') {
$method .= ' (' . __('lang_v1.bank_account_no') . ': ' . $payment->bank_account_number . ')';
} elseif ($payment->method == 'custom_pay_1') {
$method .= ' (' . __('lang_v1.transaction_no') . ': ' . $payment->transaction_no . ')';
} elseif ($payment->method == 'custom_pay_2') {
$method .= ' (' . __('lang_v1.transaction_no') . ': ' . $payment->transaction_no . ')';
} elseif ($payment->method == 'custom_pay_3') {
$method .= ' (' . __('lang_v1.transaction_no') . ': ' . $payment->transaction_no . ')';
}
if ($payment->is_return == 1) {
$method .= ' (' . __('lang_v1.change_return') . ')';
}
@endphp
{!! $method ?? '' !!}
|
0) class="bg-gray" @endif>
@php
$transaction_type = $payment->transaction->type ?? $payment->transaction_type;
$transaction_id = $payment->transaction->id ?? $payment->transaction_id;
$invoice_no = $payment->transaction->invoice_no ?? $payment->invoice_no;
$return_parent_id = $payment->transaction->return_parent_id ?? $payment->return_parent_id;
$ref_no = $payment->transaction->ref_no ?? $payment->ref_no;
@endphp
@if($transaction_type == 'sell')
{{$invoice_no}} ({{__('sale.sale')}})
@elseif($transaction_type == 'sell_return')
{{$invoice_no }} ({{__('lang_v1.sell_return')}})
@elseif($transaction_type == 'purchase_return')
{{$ref_no}} ({{__('lang_v1.purchase_return')}})
@elseif ($transaction_type == 'purchase')
{{$ref_no}} ({{__('lang_v1.purchase')}})
@else
@if(!empty($transaction_id))
{{$ref_no}} ({{__('lang_v1.' . $transaction_type)}})
@endif
@endif
|
0) class="bg-gray" @endif>
@if(!empty($transaction_id))
@if(( in_array($transaction_type, ['purchase', 'purchase_return']) && auth()->user()->can('edit_purchase_payment')) || (in_array($transaction_type, ['sell', 'sell_return']) && auth()->user()->can('edit_sell_payment')) )
@endif
@endif
@if((in_array($transaction_type, ['purchase', 'purchase_return']) && auth()->user()->can('delete_purchase_payment')) || (in_array($transaction_type, ['sell', 'sell_return']) && auth()->user()->can('delete_sell_payment')) || ((empty($transaction_type)|| $transaction_type=='opening_balance') && (auth()->user()->can('customer.create') || auth()->user()->can('customer.update') || auth()->user()->can('supplier.create') || auth()->user()->can('supplier.update') ) ))
@endif
|