]> BookStack Code Mirror - bookstack/blob - resources/views/errors/404.blade.php
Merge pull request #5668 from bumperbox/patch-1
[bookstack] / resources / views / errors / 404.blade.php
1 @extends('layouts.simple')
2 @inject('popular', \BookStack\Entities\Queries\QueryPopular::class)
3 @section('content')
4     <div class="container mt-l">
5
6         <div class="card mb-xl px-l pb-l pt-l">
7             <div class="grid half v-center">
8                 <div>
9                     @include('errors.parts.not-found-text', [
10                         'title' => $message ?? trans('errors.404_page_not_found'),
11                         'subtitle' => $subtitle ?? trans('errors.sorry_page_not_found'),
12                         'details' => $details ?? trans('errors.sorry_page_not_found_permission_warning'),
13                     ])
14                 </div>
15                 <div class="text-right">
16                     @if(user()->isGuest())
17                         <a href="{{ url('/login') }}" class="button outline">{{ trans('auth.log_in') }}</a>
18                     @endif
19                     <a href="{{ url('/') }}" class="button outline">{{ trans('errors.return_home') }}</a>
20                 </div>
21             </div>
22
23         </div>
24
25         @if (setting('app-public') || !user()->isGuest())
26             <div class="grid third gap-xxl">
27                 <div>
28                     <div class="card mb-xl">
29                         <h3 class="card-title">{{ trans('entities.pages_popular') }}</h3>
30                         <div class="px-m">
31                             @include('entities.list', ['entities' => $popular->run(10, 0, ['page']), 'style' => 'compact'])
32                         </div>
33                     </div>
34                 </div>
35                 <div>
36                     <div class="card mb-xl">
37                         <h3 class="card-title">{{ trans('entities.books_popular') }}</h3>
38                         <div class="px-m">
39                             @include('entities.list', ['entities' => $popular->run(10, 0, ['book']), 'style' => 'compact'])
40                         </div>
41                     </div>
42                 </div>
43                 <div>
44                     <div class="card mb-xl">
45                         <h3 class="card-title">{{ trans('entities.chapters_popular') }}</h3>
46                         <div class="px-m">
47                             @include('entities.list', ['entities' => $popular->run(10, 0, ['chapter']), 'style' => 'compact'])
48                         </div>
49                     </div>
50                 </div>
51             </div>
52         @endif
53     </div>
54
55 @stop
Morty Proxy This is a proxified and sanitized view of the page, visit original site.