{!! Form::label('invoice_no', __('models/invoices.fields.invoice_no').':') !!}
{!! Form::text('invoice_no', null, ['class' => ($errors->has('invoice_no')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('invoice_no'))
{{ $errors->first('invoice_no') }}
@endif
{!! Form::label('invoice_type_id', __('models/invoices.fields.invoice_type_id').':') !!}
{!! Form::select('invoice_type_id', $invoice_typeItems, null, ['class' => ($errors->has('invoice_type_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'invoice_type_id']) !!}
@if ($errors->has('invoice_type_id'))
{{ $errors->first('invoice_type_id') }}
@endif
{!! Form::label('delivery_date', __('models/invoices.fields.delivery_date').':') !!}
{!! Form::text('delivery_date', isset($invoice) ? $invoice->delivery_date : $invoiceRequest->delivery_date , ['class' => 'form-control', 'readonly'=> 'readonly' ]) !!}
{{--
--}}
{!! Form::label('currency', __('models/invoices.fields.currency').':') !!}
{!! Form::select('currency',config('enum.currency'), 'AED', ['class' => ($errors->has('currency')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'currency']) !!}
@if ($errors->has('currency'))
{{ $errors->first('currency') }}
@endif
{!! Form::label('quotation_id', __('models/invoices.fields.quotation_id').':') !!}
{!! Form::text('quotation', isset($invoice) ? $invoice->quotation->name : $invoiceRequest->requestable->name , ['class' => 'form-control', 'readonly'=> 'readonly' ]) !!}
{!! Form::label('lpoin_id', __('models/invoices.fields.lpoin_id').':') !!}
{!! Form::text('quotation', isset($invoice) ? $invoice->quotation->lpoins->ref_no : $invoiceRequest->requestable->lpoins->ref_no , ['class' => 'form-control', 'readonly'=> 'readonly' ]) !!}
{!! Form::label('payment_terms', __('models/invoices.fields.payment_terms').':') !!}
{!! Form::text('payment_terms', isset($invoice) ? $invoice->payment_terms : $invoiceRequest->requestable->lpoins->payment_terms , ['class' => 'form-control', 'readonly'=> 'readonly' ]) !!}
{!! Form::label('amount_in_word', __('models/invoices.fields.amount_in_word').':') !!}
{!! Form::text('amount_in_word', null, ['class' => ($errors->has('amount_in_word')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('amount_in_word'))
{{ $errors->first('amount_in_word') }}
@endif
{!! Form::label('invoice_bank_id', __('models/invoices.fields.invoice_bank_id').':') !!}
{!! Form::select('invoice_bank_id', $invoiceBanks, null, ['class' => ($errors->has('invoice_bank_id')) ? 'form-control is-invalid' : 'form-control' ,'id'=>'invoice_bank_id']) !!}
@if ($errors->has('invoice_bank_id'))
{{ $errors->first('invoice_bank_id') }}
@endif
@section('scripts')
@parent
@endsection