{!! Form::open(['url' => action('TransactionPaymentController@store'), 'method' => 'post', 'id' => 'transaction_payment_add_form' ]) !!} {!! Form::hidden('transaction_id', $transaction->id); !!}

@lang( 'purchase.add_payment' )

@if($transaction->type == 'purchase') @lang('purchase.supplier') @elseif($transaction->type == 'sell') @lang('contact.customer') @endif :{{ $transaction->contact->name }}
@if($transaction->type == 'purchase') @lang('business.business'): {{ $transaction->contact->supplier_business_name }} @endif
@if($transaction->type == 'purchase') @lang('purchase.ref_no'): {{ $transaction->ref_no }} @elseif($transaction->type == 'sell') @lang('sale.invoice_no'): {{ $transaction->invoice_no }} @endif
@lang('purchase.location'): {{ $transaction->location->name }}
@lang('sale.total_amount'): {{ $transaction->final_total }}
@lang('purchase.payment_note'): @if(!empty($transaction->additional_notes)) {{ $transaction->additional_notes }} @else -- @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%;']); !!}
@include('transaction_payment.payment_type_details')
{!! Form::label("note",'Payment Note:') !!} {!! Form::textarea("note", $payment_line->note, ['class' => 'form-control', 'rows' => 3]); !!}
{!! Form::close() !!}