{!! Form::label('vendor_id', __('models/payments.fields.vendor_id').':') !!}
{!! Form::select('vendor_id', $vendorItems, null, ['class' => ($errors->has('vendor_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'vendor_id' ,'disabled' => isset($payment) ? true : false]) !!}
@if ($errors->has('vendor_id'))
{{ $errors->first('vendor_id') }}
@endif
@if(!isset($payment) )
@endif
@include('payments.payments_partials.invoice_detail' ,[
'invoice' => isset($payment) ? $payment : null
])
{!! Form::label('expense_account', __('models/payments.fields.expense_account').':') !!}
{!! Form::select('expense_account', $accountItems, null, ['class' => ($errors->has('expense_account')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'expense_account']) !!}
@if ($errors->has('expense_account'))
{{ $errors->first('expense_account') }}
@endif
{!! Form::label('total_amount', __('models/payments.fields.total_amount').':') !!}
{!! Form::text('total_amount', null, ['class' => ($errors->has('total_amount')) ? 'form-control is-invalid' : 'form-control', 'readonly' => true]) !!}
@if ($errors->has('total_amount'))
{{ $errors->first('total_amount') }}
@endif
{!! Form::label('payment_type', __('models/payments.fields.payment_type').':') !!}
{!! Form::select('payment_type', $lookupItems, null, ['class' => ($errors->has('payment_type')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'payment_type']) !!}
@if ($errors->has('payment_type'))
{{ $errors->first('payment_type') }}
@endif
{!! Form::label('payment_no', __('models/payments.fields.payment_no').':') !!}
{!! Form::text('payment_no', null, ['class' => ($errors->has('payment_no')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('payment_no'))
{{ $errors->first('payment_no') }}
@endif
{!! Form::label('bank_name', __('models/payments.fields.bank_name').':') !!}
{!! Form::text('bank_name', null, ['class' => ($errors->has('bank_name')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('bank_name'))
{{ $errors->first('bank_name') }}
@endif
{!! Form::label('account_id', __('models/payments.fields.account_id').':') !!}
{!! Form::select('account_id', $accountItems, null, ['class' => ($errors->has('account_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'account_id']) !!}
@if ($errors->has('account_id'))
{{ $errors->first('account_id') }}
@endif
{!! Form::label('note', __('models/payments.fields.note').':') !!}
{!! Form::textarea('note', null, ['class' => 'form-control']) !!}
@section('scripts')
@parent
@endsection