Add importers in console and admin for flights/aircraft/subfleets and airport #194

This commit is contained in:
Nabeel Shahzad
2018-03-20 19:17:11 -05:00
parent 782121829a
commit b9beb6c804
41 changed files with 1270 additions and 225 deletions

View File

@@ -0,0 +1,32 @@
<div class="card border-blue-bottom">
<div class="content">
{{ Form::open(['method' => 'post', 'route' => $route, 'files' => true]) }}
<div class="row">
<div class="form-group col-12">
{{ Form::label('csv_file', 'Chose a CSV file to import') }}
{{ Form::file('csv_file', ['accept' => '.csv']) }}
</div>
<div class="form-group col-md-12">
<div class="text-right">
{{ Form::button('Start Import', ['type' => 'submit', 'class' => 'btn btn-success']) }}
</div>
</div>
{{ Form::close() }}
<div class="form-group col-md-12">
<h4>Logs</h4>
@foreach($logs['success'] as $line)
<p>{{ $line }}</p>
@endforeach
<h4>Errors</h4>
@foreach($logs['failed'] as $line)
<p>{{ $line }}</p>
@endforeach
</div>
</div>
</div>
</div>