{!! sprintf(__('sales/customer_invoice.text_modal_payment_history')) !!}

{!! html_entity_decode(Form::label('name', __('sales/customer_invoice.entry_name') . '', ['class' => 'control-label'])) !!} {!! Form::text('name', old('name',$customer_invoice->name), ['class' => 'form-control', 'placeholder' => __('sales/customer_invoice.entry_name'),'readonly']) !!}
{!! html_entity_decode(Form::label('customer', __('sales/customer_invoice.entry_customer_id') . '', ['class' => 'control-label'])) !!} {!! Form::text('customer', old('customer',$customer_invoice->customer->name), ['class' => 'form-control', 'placeholder' => __('sales/customer_invoice.entry_customer_id'),'readonly']) !!}
{!! html_entity_decode(Form::label('branch_office', __('sales/customer_invoice.entry_branch_office_id') . '', ['class' => 'control-label'])) !!} {!! Form::text('branch_office', old('branch_office',$customer_invoice->branchOffice->name), ['class' => 'form-control', 'placeholder' => __('sales/customer_invoice.entry_branch_office_id'),'readonly']) !!}
{!! html_entity_decode(Form::label('currency', __('sales/customer_invoice.entry_currency_id') . '', ['class' => 'control-label'])) !!} {!! Form::text('currency', old('currency',$customer_invoice->currency->name_sat), ['class' => 'form-control', 'placeholder' => __('sales/customer_invoice.entry_currency_id'),'readonly']) !!}
{!! html_entity_decode(Form::label('currency_value', __('sales/customer_invoice.entry_currency_value') . '', ['class' => 'control-label'])) !!} {!! Form::text('currency_value', old('currency_value',round($customer_invoice->currency_value,4)), ['class' => 'form-control text-center', 'placeholder' => __('sales/customer_invoice.entry_currency_value'),'readonly']) !!}
{!! html_entity_decode(Form::label('amount_total', __('sales/customer_invoice.entry_amount_total') . '', ['class' => 'control-label'])) !!} {!! Form::text('amount_total', old('amount_total',money($customer_invoice->amount_total, $customer_invoice->currency->code, true)->format()), ['class' => 'form-control text-right', 'placeholder' => __('sales/customer_invoice.entry_amount_total'),'readonly']) !!}
{!! html_entity_decode(Form::label('balance', __('sales/customer_invoice.entry_balance') . '', ['class' => 'control-label'])) !!} {!! Form::text('balance', old('balance',money($customer_invoice->balance, $customer_invoice->currency->code, true)->format()), ['class' => 'form-control text-right', 'placeholder' => __('sales/customer_invoice.entry_balance'),'readonly']) !!}
{!! html_entity_decode(Form::label('reconciled', __('sales/customer_invoice.entry_reconciled') . '', ['class' => 'control-label'])) !!} {!! Form::text('reconciled', old('reconciled',money($customer_invoice->amount_total-$customer_invoice->balance, $customer_invoice->currency->code, true)->format()), ['class' => 'form-control text-right', 'placeholder' => __('sales/customer_invoice.entry_reconciled'),'readonly']) !!}
  • @lang('sales/customer_invoice.tab_payments')
  • @lang('sales/customer_invoice.tab_credit_notes')
@forelse($customer_invoice->customerPaymentHistory as $result) @empty @endforelse
{{__('sales/customer_payment.column_name')}} {{__('sales/customer_payment.column_currency') }} {{__('sales/customer_payment.column_date') }} {{__('sales/customer_payment.column_payment_way') }} {{__('sales/customer_payment.column_date_payment') }} {{__('sales/customer_payment.column_reconciled_currency_value') }} {{__('sales/customer_payment.column_reconciled_amount_reconciled3') }} {{__('sales/customer_payment.column_reconciled_amount_reconciled') }}
{{$result->customerPayment->name}} {{$result->customerPayment->currency->code}} {{ \App\Helpers\Helper::convertSqlToDateTime($result->customerPayment->date) }} {{ $result->customerPayment->paymentWay->name ?? '' }} {{ $result->customerPayment->date_payment ? \App\Helpers\Helper::convertSqlToDateTime($result->customerPayment->date_payment) : '' }} @if($customer_invoice->currency->code != $result->customerPayment->currency->code) {{ \App\Helpers\Helper::numberFormatMoney($result->currency_value,4) }} @endif @if($customer_invoice->currency->code != $result->customerPayment->currency->code) {{ money($result->amount_reconciled*$result->currency_value,$customer_invoice->currency->code,true) }} @endif {{ money($result->amount_reconciled,$customer_invoice->currency->code,true) }}
@lang('general.text_no_results')
@forelse($customer_invoice->customerCreditNoteHistory as $result) @empty @endforelse
{{__('sales/customer_credit_note.column_name')}} {{__('sales/customer_credit_note.column_currency') }} {{__('sales/customer_credit_note.column_date') }} {{__('sales/customer_credit_note.column_payment_way') }} {{__('sales/customer_credit_note.column_reconciled_amount_reconciled') }}
{{$result->customerInvoice->name}} {{$result->customerInvoice->currency->code}} {{ \App\Helpers\Helper::convertSqlToDateTime($result->customerInvoice->date) }} {{ $result->customerInvoice->paymentWay->name ?? '' }} {{ money($result->amount_reconciled,$customer_invoice->currency->code,true) }}
@lang('general.text_no_results')