@extends('layouts.app') @section('title', __('product.import_products')) @section('content')

@lang('product.import_products')

@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('ImportProductsController@store'), 'method' => 'post', 'enctype' => 'multipart/form-data' ]) !!}
{!! Form::label('name', __( 'product.file_to_import' ) . ':') !!} {!! Form::file('products_csv', ['accept'=> '.xls, .xlsx, .csv', '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('product.product_name') (@lang('lang_v1.required')) @lang('lang_v1.name_ins')
2 @lang('product.brand') (@lang('lang_v1.optional')) @lang('lang_v1.brand_ins')
(@lang('lang_v1.brand_ins2'))
3 @lang('product.unit') (@lang('lang_v1.required')) @lang('lang_v1.unit_ins')
4 @lang('product.category') (@lang('lang_v1.optional')) @lang('lang_v1.category_ins')
(@lang('lang_v1.category_ins2'))
5 @lang('product.sub_category') (@lang('lang_v1.optional')) @lang('lang_v1.sub_category_ins')
({!! __('lang_v1.sub_category_ins2') !!})
6 @lang('product.sku') (@lang('lang_v1.optional')) @lang('lang_v1.sku_ins')
7 @lang('product.barcode_type') (@lang('lang_v1.optional'), @lang('lang_v1.default'): C128) @lang('lang_v1.barcode_type_ins')
@lang('lang_v1.barcode_type_ins2'): C128, C39, EAN-13, EAN-8, UPC-A, UPC-E, ITF-14
8 @lang('product.manage_stock') (@lang('lang_v1.required')) @lang('lang_v1.manage_stock_ins')
1 = @lang('messages.yes')
0 = @lang('messages.no')
9 @lang('product.alert_quantity') (@lang('lang_v1.optional')) @lang('product.alert_quantity')
10 @lang('product.expires_in') (@lang('lang_v1.optional')) @lang('lang_v1.expires_in_ins')
11 @lang('lang_v1.expire_period_unit') (@lang('lang_v1.optional')) @lang('lang_v1.expire_period_unit_ins')
@lang('lang_v1.available_options'): days, months
12 @lang('product.applicable_tax') (@lang('lang_v1.optional')) @lang('lang_v1.applicable_tax_ins') {!! __('lang_v1.applicable_tax_help') !!}
13 @lang('product.selling_price_tax_type') (@lang('lang_v1.required')) @lang('product.selling_price_tax_type')
@lang('lang_v1.available_options'): inclusive, exclusive
14 @lang('product.product_type') (@lang('lang_v1.required')) @lang('product.product_type')
@lang('lang_v1.available_options'): single, variable
15 @lang('product.variation_name') (@lang('lang_v1.variation_name_ins')) @lang('lang_v1.variation_name_ins2')
16 @lang('product.variation_values') (@lang('lang_v1.variation_values_ins')) {!! __('lang_v1.variation_values_ins2') !!}
17 @lang('lang_v1.purchase_price_inc_tax')
(@lang('lang_v1.purchase_price_inc_tax_ins1'))
{!! __('lang_v1.purchase_price_inc_tax_ins2') !!}
18 @lang('lang_v1.purchase_price_exc_tax')
(@lang('lang_v1.purchase_price_exc_tax_ins1'))
{!! __('lang_v1.purchase_price_exc_tax_ins2') !!}
19 @lang('lang_v1.profit_margin') (@lang('lang_v1.optional')) @lang('lang_v1.profit_margin_ins')
{!! __('lang_v1.profit_margin_ins1') !!}
20 @lang('lang_v1.selling_price') (@lang('lang_v1.optional')) @lang('lang_v1.selling_price_ins')
{!! __('lang_v1.selling_price_ins1') !!}
21 @lang('lang_v1.opening_stock') (@lang('lang_v1.optional')) @lang('lang_v1.opening_stock_ins') {!! __('lang_v1.opening_stock_help_text') !!}
22 @lang('lang_v1.opening_stock_location') (@lang('lang_v1.optional'))
@lang('lang_v1.location_ins')
@lang('lang_v1.location_ins1')
23 @lang('lang_v1.expiry_date') (@lang('lang_v1.optional')) {!! __('lang_v1.expiry_date_ins') !!}
24 @lang('lang_v1.enable_imei_or_sr_no') (@lang('lang_v1.optional'), @lang('lang_v1.default'): 0) 1 = @lang('messages.yes')
0 = @lang('messages.no')

25 @lang('lang_v1.weight') (@lang('lang_v1.optional')) @lang('lang_v1.optional')
26 @lang('lang_v1.rack') (@lang('lang_v1.optional')) {!! __('lang_v1.rack_help_text') !!}
27 @lang('lang_v1.row') (@lang('lang_v1.optional')) {!! __('lang_v1.row_help_text') !!}
28 @lang('lang_v1.position') (@lang('lang_v1.optional')) {!! __('lang_v1.position_help_text') !!}
29 @lang('lang_v1.image') (@lang('lang_v1.optional')) {!! __('lang_v1.image_help_text', ['path' => 'public/uploads/'.config('constants.product_img_path')]) !!}
30 @lang('lang_v1.product_description') (@lang('lang_v1.optional'))
31 @lang('lang_v1.product_custom_field1') (@lang('lang_v1.optional'))
32 @lang('lang_v1.product_custom_field2') (@lang('lang_v1.optional'))
33 @lang('lang_v1.product_custom_field3') (@lang('lang_v1.optional'))
34 @lang('lang_v1.product_custom_field4') (@lang('lang_v1.optional'))
35 @lang('lang_v1.not_for_selling') (@lang('lang_v1.optional')) 1 = @lang('messages.yes')
0 = @lang('messages.no')

36 @lang('lang_v1.product_locations') (@lang('lang_v1.optional')) @lang('lang_v1.product_locations_ins')
@endcomponent
@endsection