@extends('master')

@section('content')
  <!-- page content -->
<div class="right_col" role="main">
  <div class="row x_panel">
    <div class="col-md-12 col-sm-12 col-xs-12">
    <h1>Import Products Data</h1>

<form style="margin-top: 15px;padding: 10px;" action="{{ url('importExcel') }}" class="form-horizontal" method="post" enctype="multipart/form-data">
                <input type="hidden" name="_token" value="{{{csrf_token()}}}">
 
                <!-- @if ($errors->any())
                    <div class="alert alert-danger">
                        <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif
 
                @if (Session::has('success'))
                    <div class="alert alert-success">
                        <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
                        <p>{{ Session::get('success') }}</p>
                    </div>
                @endif -->

                <div class="col-md-6">
                  <div class="form-group">
                    <label for="import_file" class="col-md-3 control-label"> Import Exel</label>
                    <div class="col-sm-5">
                      <input type="file" name="import_file" class="form-control" accept=".xlsx, .xls, .csv" />
                      <div class="label label-danger">{{ $errors->first("import_file") }}</div>
                    </div>
                    <div class="col-sm-4">
                      <button class="btn btn-primary">Import File</button>
                    </div>
                  </div>
                </div>
                <!-- <input type="file" name="import_file" /><br>
                <button class="btn btn-primary">Import File</button> -->
            </form>



    </div>
  </div>
</div>
<!-- /page content -->
@endsection

