@if(session()->get('title') == "success")
Success
{{ session()->get('message') }}
@elseif (session()->get('title') == "error")
Something's not quite right
{{ session()->get('message') }}
@elseif($errors->any())
Error
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@else
@endif