@extends('layouts.app')
@section('title')问题件-导入@endsection
@section('content')
    <div id="nav2">
        @component('order.issue.menu')@endcomponent
    </div>
    <div class="container-fluid" id="issue_import_div">
        <div class="card col-md-8 offset-md-2">
            <div class="card-body">
                <form action="{{url('order/issue/batchImport')}}" method="post" enctype="multipart/form-data" class="form"  target="_blank">
                    @csrf
                    <div class="form-group row text-center">
                        <div class="col-12 text-danger">
                            注意：请保证表第一行有以下对应的字段名<br>(可不按顺序)：<br>
                            原始订单号，情况说明，问题类别<br>
                            订单问题类别:('拦截', '快递异常', '信息更改', '联系不上', '其他', '错漏发', '仓库问题', '快递丢件', '破损', '撤销丢件', '二次加工', '全检问题', '系统问题', '延迟发货', '仓库丢件', )<br>
                        </div>
                        <div class="col-12 text-info ">
                            导入时间随文件大小可能达数十分钟以上，请耐心等候
                            <hr>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="sku" class="col-2 col-form-label text-right">选择EXCEL</label>
                        <div class="col-8">
                            <div class="form-control">
                                <input type="file" class="form-control-file @error('file') is-invalid @enderror"
                                       name="file" value="{{ old('file') }}" required>
                                @error('file')
                                <span class="invalid-feedback" role="alert">
                                <strong>{{ $message }}</strong>
                            </span>
                                @enderror
                            </div>
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-8 offset-2">
                            <input type="submit" class="btn btn-success form-control" value="执行导入">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
@endsection

@section('lastScript')

@endsection

