{!! Form::label('name', __('models/vendors.fields.name').':') !!}
{!! Form::text('name', null, ['class' => ($errors->has('name')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{!! Form::label('email', __('models/vendors.fields.email').':') !!}
{!! Form::email('email', null, ['class' => ($errors->has('email')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
{!! Form::label('contact_person', __('models/vendors.fields.contact_person').':') !!}
{!! Form::text('contact_person', null, ['class' => ($errors->has('contact_person')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('contact_person'))
{{ $errors->first('contact_person') }}
@endif
{!! Form::label('contact_no', __('models/vendors.fields.contact_no').':') !!}
{!! Form::text('contact_no', null, ['class' => ($errors->has('contact_no')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('contact_no'))
{{ $errors->first('contact_no') }}
@endif
{!! Form::label('contact_no_two', __('models/vendors.fields.contact_no_two').':') !!}
{!! Form::text('contact_no_two', null, ['class' => ($errors->has('contact_no_two')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('contact_no_two'))
{{ $errors->first('contact_no_two') }}
@endif
{!! Form::label('vat_no', __('models/vendors.fields.vat_no').':') !!}
{!! Form::text('vat_no', null, ['class' => ($errors->has('vat_no')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('vat_no'))
{{ $errors->first('vat_no') }}
@endif
{!! Form::label('payment_terms', __('models/vendors.fields.payment_terms').':') !!}
{!! Form::text('payment_terms', null, ['class' => ($errors->has('payment_terms')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('payment_terms'))
{{ $errors->first('payment_terms') }}
@endif
{!! Form::label('credit_limit', __('models/vendors.fields.credit_limit').':') !!}
{!! Form::text('credit_limit', null, ['class' => ($errors->has('credit_limit')) ? 'form-control is-invalid' : 'form-control']) !!}
@if ($errors->has('credit_limit'))
{{ $errors->first('credit_limit') }}
@endif
{!! Form::label('location', __('models/vendors.fields.location').':') !!}
{!! Form::text('location', null, ['class' => 'form-control']) !!}
{!! Form::label('vendor_specialization', __('models/vendors.fields.vendor_specialization').':') !!}
{!! Form::text('vendor_specialization', null, ['class' => ($errors->has('vendor_specialization')) ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'e.g. Electronics, Machinery, etc.']) !!}
@if ($errors->has('vendor_specialization'))
{{ $errors->first('vendor_specialization') }}
@endif
{!! Form::label('payment_preference', __('models/vendors.fields.payment_preference').':') !!}
{!! Form::select('payment_preference', ['cod' => 'Cash on Delivery', 'pdc' => 'PDC (Post Dated Check)'], null, ['class' => ($errors->has('payment_preference')) ? 'form-control is-invalid' : 'form-control', 'id' => 'payment_preference']) !!}
@if ($errors->has('payment_preference'))
{{ $errors->first('payment_preference') }}
@endif
{!! Form::label('pdc_number_of_days', __('models/vendors.fields.pdc_number_of_days').':') !!}
{!! Form::number('pdc_number_of_days', null, ['class' => ($errors->has('pdc_number_of_days')) ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Number of days']) !!}
@if ($errors->has('pdc_number_of_days'))
{{ $errors->first('pdc_number_of_days') }}
@endif
{!! Form::label('pdc_payment_option', __('models/vendors.fields.pdc_payment_option').':') !!}
{!! Form::select('pdc_payment_option', ['on_delivery_amount' => 'On Delivery', 'on_payment_release_amount' => 'On PO Release '], null, ['class' => ($errors->has('pdc_payment_option')) ? 'form-control is-invalid' : 'form-control', 'id' => 'pdc_payment_option']) !!}
@if ($errors->has('pdc_payment_option'))
{{ $errors->first('pdc_payment_option') }}
@endif
@section('scripts')
@parent
@endsection