<div class="row">
<!-- left column -->
<div class="col-md-6">
<!-- general form elements -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Import Data Sales</h3>
<br><br>
@if(session('success'))
<div class="alert alert-success alert-dismissible ">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<i class="icon fa fa-check"></i> Success!
{{ session('success') }}
</div>
@endif
@if(session('error'))
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<i class="icon fa fa-ban"></i> Error!
{{ session('error') }}
</div>
@endif
</div>
<!-- /.box-header -->
<!-- form start -->
<form role="form" action="{{ route('import.sales') }}" method="post" enctype="multipart/form-data">
@csrf
<div class="box-body">
<div class="form-group">
<label for="exampleInputFile" >
Input File
</label>
<input type="file" id="file" name="file">
<p class="text-danger">{{ $errors->first('file') }}</p>
</div>
</div>
<!-- /.box-body -->
<div class="box-footer">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
<div class="box-body">
<a href="{{ asset('xls/example_data.xlsx') }}" download><button class="btn btn-primary">Download example XLSX</button></a><br>
<div class="alert alert-warning alert-dismissible" style="margin-top: 20px;">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<i class="icon fa fa-warning"></i> Warning!
File Data Customer Only Type (.xls, .xlsx)
</div>
</div>
</form>
</div>
<!-- /.box -->
</div>
</div>
|