Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)
Hello dear i want to create a customer blade which provides users to import and export excel file.
My customers_blade.php looks like this;
@extends('layouts.app')
@section('content')
<div class="panel-heading">Import and Export Data Into Excel File</div>
<div class="panel-body">
{!! Form::open(array('route'=>'customer.import','method'=>'POST','files'=>'true')) !!}
<div class="row">
<div class="col-xs-10 col-sm-10 col-md-10">
@if(Session::has('success'))
<div class="alert alert-success">
</div>
@if(Session::has(warning))
<div class="alert alert-warning">
</div>
@endif
<div class="form-group">
{!! Form::label('sample_file','Select File to Import:',['class'=>'col-md-3']) !!}
<div class="col-md-9">
{!! Form::file('customers',array('class'=>'form-control')) !!}
{!! $error->first('products','<p class="alert alert-danger">:message</p') !!}
</div>
</div>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 text-center">
{!! Form::submit('Upload',['class'=>'btn btn-success']) !!}
</div>
</div>
{!! Form::close() !!}
</div>
@endsection
But when i go to page this error occurs. How can i edit it. Can you please help me?
Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) (View: /home/vagrant/code/excel/resources/views/customers.blade.php)
from Laravel Questions and Answers https://laravelquestions.com/laravel/parse-error-syntax-error-unexpected-end-of-file-expecting-elseif-t_elseif-or-else-t_else-or-endif-t_endif/
via Lzo Media
No comments:
Post a Comment