@php $form_id = 'contact_add_form'; if(isset($quick_add)){ $form_id = 'quick_add_contact'; } @endphp {!! Form::open(['url' => action('ContactController@store'), 'method' => 'post', 'id' => $form_id ]) !!}

@lang('contact.add_contact')

{!! Form::label('type', __('contact.contact_type') . ':*' ) !!}
{!! Form::select('type', $types, null , ['class' => 'form-control', 'id' => 'contact_type','placeholder' => __('messages.please_select'), 'required']); !!}
{!! Form::label('supplier_business_name', __('business.business_name') . ':*') !!}
{!! Form::text('supplier_business_name', null, ['class' => 'form-control', 'required', 'placeholder' => __('business.business_name')]); !!}
{!! Form::label('name', __('contact.name') . ':*') !!}
{!! Form::text('name', null, ['class' => 'form-control','placeholder' => __('contact.name'), 'required']); !!}
{!! Form::label('contact_id', __('lang_v1.contact_id') . ':') !!}
{!! Form::text('contact_id', null, ['class' => 'form-control','placeholder' => __('lang_v1.contact_id')]); !!}
{!! Form::label('email', __('business.email') . ':') !!}
{!! Form::email('email', null, ['class' => 'form-control','placeholder' => __('business.email')]); !!}
{!! Form::label('tax_number', __('contact.tax_no') . ':') !!}
{!! Form::text('tax_number', null, ['class' => 'form-control', 'placeholder' => __('contact.tax_no')]); !!}
{!! Form::label('pay_term_number', __('contact.pay_term') . '*:') !!} @show_tooltip(__('tooltip.pay_term'))
{!! Form::number('pay_term_number', null, ['class' => 'form-control', 'required', 'placeholder' => __('contact.pay_term')]); !!}
{!! Form::label('pay_term_type', __('contact.pay_term_period') . '*:') !!}
{!! Form::select('pay_term_type', ['months' => __('lang_v1.months'), 'days' => __('lang_v1.days')], '', ['class' => 'form-control','placeholder' => __('messages.please_select'), 'required']); !!}
{!! Form::label('customer_group_id', __('lang_v1.customer_group') . ':') !!}
{!! Form::select('customer_group_id', $customer_groups, '', ['class' => 'form-control']); !!}

{!! Form::label('mobile', __('contact.mobile') . ':*') !!}
{!! Form::text('mobile', null, ['class' => 'form-control', 'required', 'placeholder' => __('contact.mobile')]); !!}
{!! Form::label('landline', __('contact.landline') . ':') !!}
{!! Form::text('landline', null, ['class' => 'form-control', 'placeholder' => __('contact.landline')]); !!}
{!! Form::label('alternate_number', __('contact.alternate_contact_number') . ':') !!}
{!! Form::text('alternate_number', null, ['class' => 'form-control', 'placeholder' => __('contact.alternate_contact_number')]); !!}
{!! Form::label('city', __('business.city') . ':') !!}
{!! Form::text('city', null, ['class' => 'form-control', 'placeholder' => __('business.city')]); !!}
{!! Form::label('state', __('business.state') . ':') !!}
{!! Form::text('state', null, ['class' => 'form-control', 'placeholder' => __('business.state')]); !!}
{!! Form::label('country', __('business.country') . ':') !!}
{!! Form::text('country', null, ['class' => 'form-control', 'placeholder' => __('business.country')]); !!}
{!! Form::label('landmark', __('business.landmark') . ':') !!}
{!! Form::text('landmark', null, ['class' => 'form-control', 'placeholder' => __('business.landmark')]); !!}

{!! Form::label('custom_field1', __('lang_v1.custom_field', ['number' => 1]) . ':') !!} {!! Form::text('custom_field1', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.custom_field', ['number' => 1])]); !!}
{!! Form::label('custom_field2', __('lang_v1.custom_field', ['number' => 2]) . ':') !!} {!! Form::text('custom_field2', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.custom_field', ['number' => 2])]); !!}
{!! Form::label('custom_field3', __('lang_v1.custom_field', ['number' => 3]) . ':') !!} {!! Form::text('custom_field3', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.custom_field', ['number' => 3])]); !!}
{!! Form::label('custom_field4', __('lang_v1.custom_field', ['number' => 4]) . ':') !!} {!! Form::text('custom_field4', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.custom_field', ['number' => 4])]); !!}
{!! Form::close() !!}