{!! Form::open(['url' => action('TransactionPaymentController@update', [$payment_line->id]), 'method' => 'put', 'id' => 'transaction_payment_add_form', 'files' => true ]) !!}
×
@lang( 'purchase.edit_payment' )
@if(!empty($transaction->contact))
@lang('purchase.supplier'):
{{ $transaction->contact->name }}
@lang('business.business'):
{{ $transaction->contact->supplier_business_name }}
@endif @if($transaction->type != 'opening_balance')
@lang('purchase.ref_no'):
{{ $transaction->ref_no }}
@lang('purchase.location'):
{{ $transaction->location->name }}
@lang('purchase.purchase_total'):
{{ $transaction->final_total }}
@lang('purchase.payment_note'):
@if(!empty($transaction->additional_notes)) {{ $transaction->additional_notes }} @else -- @endif
@endif
{!! Form::label("amount" ,'Amount:*') !!}
{!! Form::text("amount", @num_format($payment_line->amount), ['class' => 'form-control input_number', 'required', 'placeholder' => 'Amount']); !!}
{!! Form::label("paid_on" ,'Paid on:*') !!}
{!! Form::text('paid_on', date('m/d/Y', strtotime($payment_line->paid_on) ), ['class' => 'form-control', 'readonly', 'required']); !!}
{!! Form::label("method" ,'Pay Via:*') !!}
{!! Form::select("method", $payment_types, $payment_line->method, ['class' => 'form-control select2 payment_types_dropdown', 'required', 'style' => 'width:100%;']); !!}
{!! Form::label('document', __('purchase.attach_document') . ':') !!} {!! Form::file('document'); !!}
@lang('lang_v1.previous_file_will_be_replaced')
@if(!empty($accounts))
{!! Form::label("account_id" , __('lang_v1.payment_account') . ':') !!}
{!! Form::select("account_id", $accounts, !empty($payment_line->account_id) ? $payment_line->account_id : '' , ['class' => 'form-control select2', 'id' => "account_id", 'style' => 'width:100%;']); !!}
@endif
@include('transaction_payment.payment_type_details')
{!! Form::label("note",'Payment Note:') !!} {!! Form::textarea("note", $payment_line->note, ['class' => 'form-control', 'rows' => 3]); !!}
{!! Form::close() !!}