31 lines
1.0 KiB
PHP
31 lines
1.0 KiB
PHP
@extends('errors::layout')
|
|
|
|
@section('title', trans('app.error_title'))
|
|
|
|
@section('message', trans('app.error_title'))
|
|
|
|
@section('content')
|
|
@if(isset($exception) && $exception->getMessage())
|
|
<p class="message">{{ $exception->getMessage() }}</p>
|
|
@endif
|
|
|
|
@if(Auth::check() && app()->bound('sentry') && config('monica.sentry_support') && ! empty(app('sentry')->getLastEventID()))
|
|
<div class="subtitle">@lang('app.error_id', ['id' => app('sentry')->getLastEventID()])</div>
|
|
|
|
<!-- Sentry JS SDK 2.1.+ required -->
|
|
<script src="https://browser.sentry-cdn.com/4.6.4/bundle.min.js" crossorigin="anonymous"></script>
|
|
<script>
|
|
Sentry.init({ dsn: '{{ config('sentry.dsn') }}' });
|
|
Sentry.showReportDialog({
|
|
eventId: '{{ app('sentry')->getLastEventID() }}',
|
|
user: {
|
|
name: '{{ auth()->user()->name }}',
|
|
email: '{{ auth()->user()->email }}',
|
|
},
|
|
});
|
|
</script>
|
|
@endif
|
|
|
|
<p><a href="">{{ trans('auth.back_homepage') }}</a></p>
|
|
@endsection
|