2018-03-23 06:17:37 +08:00
|
|
|
<div class="card border-blue-bottom">
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="content">
|
|
|
|
<div class="row">
|
2018-03-23 06:17:37 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
{{ Form::open(['method' => 'post', 'route' => $route, 'files' => true]) }}
|
|
|
|
<div class="form-group col-12">
|
|
|
|
{{ Form::label('csv_file', 'Choose a CSV file to import') }}
|
|
|
|
{{ Form::file('csv_file', ['accept' => '.csv']) }}
|
|
|
|
<p class="text-danger">{{ $errors->first('csv_file') }}</p>
|
|
|
|
</div>
|
2018-03-23 06:17:37 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="form-group col-md-12">
|
|
|
|
<div class="text-right">
|
|
|
|
{{ Form::button('Start Import', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-23 06:17:37 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
{{ Form::close() }}
|
2018-03-23 06:17:37 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="form-group col-md-12">
|
|
|
|
@if($logs['success'])
|
|
|
|
<h4>Logs</h4>
|
|
|
|
@foreach($logs['success'] as $line)
|
|
|
|
<p>{{ $line }}</p>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
2018-03-23 06:17:37 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
@if($logs['errors'])
|
|
|
|
<h4>Errors</h4>
|
|
|
|
@foreach($logs['errors'] as $line)
|
|
|
|
<p>{{ $line }}</p>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
</div>
|
2018-03-23 06:17:37 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2018-03-23 06:17:37 +08:00
|
|
|
</div>
|