@extends(BaseHelper::getAdminMasterLayoutTemplate()) @section('content') {!! Form::open(['class' => 'form-import-data', 'files' => 'true']) !!}

{{ trans('plugins/ecommerce::bulk-import.menu') }}

{!! Form::customSelect('type', [ 'all' => trans('plugins/ecommerce::bulk-import.import_types.all'), 'products' => trans('plugins/ecommerce::bulk-import.import_types.products'), 'variations' => trans('plugins/ecommerce::bulk-import.import_types.variations'), ], null, ['required' => true]) !!} {!! Form::error('type', $errors) !!}
{!! Form::file('file', [ 'id' => 'input-group-file', 'class' => 'form-control', 'required' => true, 'aria-describedby' => 'input-group-addon', ]) !!} {!! Form::error('file', $errors) !!}
{!! Form::close() !!}

{{ trans('plugins/ecommerce::bulk-import.template') }}

@foreach ($headings as $heading) @endforeach @foreach ($data as $product) @foreach ($headings as $k => $h) @endforeach @endforeach
{{ $heading }}
{{ Arr::get($product, $k) }}

{{ trans('plugins/ecommerce::bulk-import.rules') }}

@foreach ($rules as $k => $rule) @endforeach
{{ trans('plugins/ecommerce::bulk-import.column') }} {{ trans('plugins/ecommerce::bulk-import.rules') }}
{{ Arr::get($headings, $k) }} ({{ $rule }})
@stop @push('footer') @endpush