2017-08-26 21:53:23 +08:00
|
|
|
@extends('simple-layout')
|
2015-09-30 04:25:03 +08:00
|
|
|
|
|
|
|
@section('content')
|
2015-12-29 01:19:23 +08:00
|
|
|
<div class="container">
|
2016-12-03 21:31:54 +08:00
|
|
|
|
2017-08-26 21:53:23 +08:00
|
|
|
<p> </p>
|
2016-12-03 21:31:54 +08:00
|
|
|
|
2017-08-26 21:53:23 +08:00
|
|
|
<div class="card">
|
2018-02-18 03:49:00 +08:00
|
|
|
<h3>@icon('danger') {{ $message or trans('errors.404_page_not_found') }}</h3>
|
2017-08-26 21:53:23 +08:00
|
|
|
<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>
|
2016-12-03 21:31:54 +08:00
|
|
|
|
2017-02-06 05:19:29 +08:00
|
|
|
@if (setting('app-public') || !user()->isDefault())
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
2017-08-26 21:53:23 +08:00
|
|
|
<div class="card">
|
2018-02-17 21:30:52 +08:00
|
|
|
<h3 class="text-muted">@icon('page') {{ trans('entities.pages_popular') }}</h3>
|
2017-08-26 21:53:23 +08:00
|
|
|
@include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Page::class]), 'style' => 'compact'])
|
|
|
|
</div>
|
2017-02-06 05:19:29 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
2017-08-26 21:53:23 +08:00
|
|
|
<div class="card">
|
2018-02-17 21:30:52 +08:00
|
|
|
<h3 class="text-muted">@icon('book') {{ trans('entities.books_popular') }}</h3>
|
2017-08-26 21:53:23 +08:00
|
|
|
@include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Book::class]), 'style' => 'compact'])
|
|
|
|
</div>
|
2017-02-06 05:19:29 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
2017-08-26 21:53:23 +08:00
|
|
|
<div class="card">
|
2018-02-17 21:30:52 +08:00
|
|
|
<h3 class="text-muted">@icon('chapter') {{ trans('entities.chapters_popular') }}</h3>
|
2017-08-26 21:53:23 +08:00
|
|
|
@include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Chapter::class]), 'style' => 'compact'])
|
|
|
|
</div>
|
2017-02-06 05:19:29 +08:00
|
|
|
</div>
|
2016-12-03 21:31:54 +08:00
|
|
|
</div>
|
2017-02-06 05:19:29 +08:00
|
|
|
@endif
|
2015-12-29 01:19:23 +08:00
|
|
|
</div>
|
2015-09-30 04:25:03 +08:00
|
|
|
|
|
|
|
@stop
|