Commit 06865f7b authored by Nicolas Widart's avatar Nicolas Widart

Adding a 500 error page

parent ca075b6c
......@@ -65,4 +65,7 @@ return [
'error 404' => '404',
'error 404 title' => 'Oops! This page was not found.',
'error 404 description' => 'The page you are looking for was not found.',
'error 500' => '500',
'error 500 title' => 'Oops! Something went wrong',
'error 500 description' => 'An administrator was notified.',
];
@extends('layouts.master')
@section('content-header')
<h1>
{{ trans('core::core.error 500') }}
</h1>
<ol class="breadcrumb">
<li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core::core.breadcrumb.home') }}</a></li>
<li class="current">{{ trans('core::core.error 500') }}</li>
</ol>
@stop
@section('content')
<div class="error-page">
<h2 class="headline text-red" style="line-height: 0.6; margin-top: 0;"> 500</h2>
<div class="error-content">
<h3><i class="fa fa-warning text-red"></i> {{ trans('core::core.error 500 title') }}</h3>
<p>{!! trans('core::core.error 500 description') !!}</p>
</div>
<!-- /.error-content -->
</div>
@stop
......@@ -62,5 +62,7 @@ class Handler extends ExceptionHandler
if ($e instanceof NotFoundHttpException) {
return response()->view('errors.404', [], 404);
}
return response()->view('errors.500', [], 500);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment