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

@lang('lang_v1.preview_imported_sales')

{!! Form::open(['url' => action([\App\Http\Controllers\ImportSalesController::class, 'import']), 'method' => 'post', 'id' => 'import_sale_form']) !!} {!! Form::hidden('file_name', $file_name); !!} @component('components.widget')
{!! Form::label('group_by', __('lang_v1.group_sale_line_by') . ':*') !!} @show_tooltip(__('lang_v1.group_by_tooltip')) {!! Form::select('group_by', $parsed_array[0], null, ['class' => 'form-control select2', 'required', 'placeholder' => __('messages.please_select')]); !!}
{!! Form::label('location_id', __('business.business_location') . ':*') !!} {!! Form::select('location_id', $business_locations, null, ['class' => 'form-control', 'required', 'placeholder' => __('messages.please_select')]); !!}
@endcomponent @component('components.widget')
@foreach(array_slice($parsed_array, 0, 101) as $row) @foreach($row as $k => $v) @if($loop->parent->index == 0) @else @endif @endforeach @if($loop->index == 0) @foreach($row as $k => $v) @endforeach @endif @endforeach
@if($loop->index > 0 ){{$loop->index}} @else # @endif{{$v}}{{$v}}
@if($loop->index > 0 ){{$loop->index}}@endif {!! Form::select('import_fields[' . $k . ']', $import_fields, $match_array[$k], ['class' => 'form-control import_fields select2', 'placeholder' => __('lang_v1.skip'), 'style' => 'width: 100%;']); !!}
@endcomponent
{!! Form::close() !!}
@stop @section('javascript') @endsection