@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')

@php $custom_labels = json_decode(session('business.custom_labels'), true); @endphp
@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('business.prefix') (@lang('lang_v1.optional'))  
3 @lang('business.first_name') (@lang('lang_v1.required'))  
4 @lang('lang_v1.middle_name') (@lang('lang_v1.optional'))  
5 @lang('business.last_name') (@lang('lang_v1.optional'))  
6 @lang('business.business_name')
(@lang('lang_v1.required_if_supplier'))
 
7 @lang('lang_v1.contact_id') (@lang('lang_v1.optional')) @lang('lang_v1.contact_id_ins')
8 @lang('contact.tax_no') (@lang('lang_v1.optional'))  
9 @lang('lang_v1.opening_balance') (@lang('lang_v1.optional'))  
10 @lang('contact.pay_term')
(@lang('lang_v1.required_if_supplier'))
 
11 @lang('contact.pay_term_period')
(@lang('lang_v1.required_if_supplier'))
@lang('lang_v1.pay_term_period_ins')
12 @lang('lang_v1.credit_limit') (@lang('lang_v1.optional'))  
13 @lang('business.email') (@lang('lang_v1.optional'))  
14 @lang('contact.mobile') (@lang('lang_v1.required'))  
15 @lang('contact.alternate_contact_number') (@lang('lang_v1.optional'))  
16 @lang('contact.landline') (@lang('lang_v1.optional'))  
17 @lang('business.city') (@lang('lang_v1.optional'))  
18 @lang('business.state') (@lang('lang_v1.optional'))  
19 @lang('business.country') (@lang('lang_v1.optional'))  
20 @lang('lang_v1.address_line_1') (@lang('lang_v1.optional'))  
21 @lang('lang_v1.address_line_2') (@lang('lang_v1.optional'))  
22 @lang('business.zip_code') (@lang('lang_v1.optional'))  
23 @lang('lang_v1.dob') (@lang('lang_v1.optional')) @lang('lang_v1.dob_ins') ({{\Carbon::now()->format('Y-m-d')}})
24 {{ $custom_labels['contact']['custom_field_1'] ?? __('lang_v1.contact_custom_field1') }} (@lang('lang_v1.optional'))  
25 {{ $custom_labels['contact']['custom_field_2'] ?? __('lang_v1.contact_custom_field2') }} (@lang('lang_v1.optional'))  
26 {{ $custom_labels['contact']['custom_field_3'] ?? __('lang_v1.contact_custom_field3') }} (@lang('lang_v1.optional'))  
27 {{ $custom_labels['contact']['custom_field_4'] ?? __('lang_v1.contact_custom_field4') }} (@lang('lang_v1.optional'))  
@endcomponent
@endsection