@if(Session::has('error'))
{!! session('error') !!}

@else

An error has occurred.

@endif