{{ Form::open(['method' => 'post', 'route' => $route, 'files' => true]) }}
{{ Form::label('csv_file', 'Chose a CSV file to import') }} {{ Form::file('csv_file', ['accept' => '.csv']) }}

{{ $errors->first('csv_file') }}

{{ Form::button('Start Import', ['type' => 'submit', 'class' => 'btn btn-success']) }}
{{ Form::close() }}
@if($logs['success'])

Logs

@foreach($logs['success'] as $line)

{{ $line }}

@endforeach @endif @if($logs['errors'])

Errors

@foreach($logs['errors'] as $line)

{{ $line }}

@endforeach @endif