@extends('layouts.app') @section('title', __('lang_v1.import_contacts')) @section('content')

@lang('lang_v1.import_contacts')

@if (session('notification') || !empty($notification))
@if(!empty($notification['msg'])) {{$notification['msg']}} @elseif(session('notification.msg')) {{ session('notification.msg') }} @endif
@endif
@component('components.widget', ['class' => 'box-primary']) {!! Form::open(['url' => action('ContactController@postImportContacts'), 'method' => 'post', 'enctype' => 'multipart/form-data' ]) !!}
{!! Form::label('name', __( 'product.file_to_import' ) . ':') !!} {!! Form::file('contacts_csv', ['accept'=> '.xls', 'required' => 'required']); !!}

{!! Form::close() !!}

@endcomponent
@component('components.widget', ['class' => 'box-primary', 'title' => __('lang_v1.instructions')]) @lang('lang_v1.instruction_line1')
@lang('lang_v1.instruction_line2')

@lang('lang_v1.col_no') @lang('lang_v1.col_name') @lang('lang_v1.instruction')
1 @lang('contact.contact_type') (@lang('lang_v1.required')) {!! __('lang_v1.import_contact_type_ins') !!}
2 @lang('contact.name') (@lang('lang_v1.required'))  
3 @lang('business.business_name')
(@lang('lang_v1.required_if_supplier'))
 
4 @lang('lang_v1.contact_id') (@lang('lang_v1.optional')) @lang('lang_v1.contact_id_ins')
5 @lang('contact.tax_no') (@lang('lang_v1.optional'))  
6 @lang('lang_v1.opening_balance') (@lang('lang_v1.optional'))  
7 @lang('contact.pay_term')
(@lang('lang_v1.required_if_supplier'))
 
8 @lang('contact.pay_term_period')
(@lang('lang_v1.required_if_supplier'))
@lang('lang_v1.pay_term_period_ins')
9 @lang('lang_v1.credit_limit') (@lang('lang_v1.optional'))  
10 @lang('business.email') (@lang('lang_v1.optional'))  
11 @lang('contact.mobile') (@lang('lang_v1.required'))  
12 @lang('contact.alternate_contact_number') (@lang('lang_v1.optional'))  
13 @lang('contact.landline') (@lang('lang_v1.optional'))  
14 @lang('business.city') (@lang('lang_v1.optional'))  
15 @lang('business.state') (@lang('lang_v1.optional'))  
16 @lang('business.country') (@lang('lang_v1.optional'))  
17 @lang('business.landmark') (@lang('lang_v1.optional'))  
18 @lang('lang_v1.contact_custom_field1') (@lang('lang_v1.optional'))  
19 @lang('lang_v1.contact_custom_field2') (@lang('lang_v1.optional'))  
20 @lang('lang_v1.contact_custom_field3') (@lang('lang_v1.optional'))  
21 @lang('lang_v1.contact_custom_field4') (@lang('lang_v1.optional'))  
@endcomponent
@endsection