]> BookStack Code Mirror - bookstack/blobdiff - resources/views/errors/404.blade.php
Added migration file.
[bookstack] / resources / views / errors / 404.blade.php
index 0062bb25895ca9f276c3fd9ba89e4657d9a2917b..f6ef850afb2c2375c04109f6c6427ddc02b393d4 100644 (file)
@@ -1,11 +1,43 @@
-@extends('base')
+@extends('simple-layout')
 
 @section('content')
 
 
 <div class="container">
-    <h1>Page Not Found</h1>
-    <p>The page you were looking for could not be found.</p>
+
+    <p>&nbsp;</p>
+
+    <div class="card">
+        <h3><i class="zmdi zmdi-alert-octagon"></i> {{ $message or trans('errors.404_page_not_found') }}</h3>
+        <div class="body">
+            <h5>{{ trans('errors.sorry_page_not_found') }}</h5>
+            <p><a href="{{ baseUrl('/') }}" class="button outline">{{ trans('errors.return_home') }}</a></p>
+        </div>
+    </div>
+
+    @if (setting('app-public') || !user()->isDefault())
+
+        <div class="row">
+            <div class="col-md-4">
+                <div class="card">
+                    <h3 class="text-muted"><i class="zmdi zmdi-file-text"></i> {{ trans('entities.pages_popular') }}</h3>
+                    @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Page::class]), 'style' => 'compact'])
+                </div>
+            </div>
+            <div class="col-md-4">
+                <div class="card">
+                    <h3 class="text-muted"><i class="zmdi zmdi-book"></i> {{ trans('entities.books_popular') }}</h3>
+                    @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Book::class]), 'style' => 'compact'])
+                </div>
+            </div>
+            <div class="col-md-4">
+                <div class="card">
+                    <h3 class="text-muted"><i class="zmdi zmdi-collection-bookmark"></i> {{ trans('entities.chapters_popular') }}</h3>
+                    @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Chapter::class]), 'style' => 'compact'])
+                </div>
+            </div>
+        </div>
+    @endif
 </div>
 
 @stop
\ No newline at end of file