@extends('layouts.simple') @inject('popular', \BookStack\Entities\Queries\QueryPopular::class) @section('content')
@include('errors.parts.not-found-text', [ 'title' => $message ?? trans('errors.404_page_not_found'), 'subtitle' => $subtitle ?? trans('errors.sorry_page_not_found'), 'details' => $details ?? trans('errors.sorry_page_not_found_permission_warning'), ])
@if (setting('app-public') || !user()->isGuest())

{{ trans('entities.pages_popular') }}

@include('entities.list', ['entities' => $popular->run(10, 0, ['page']), 'style' => 'compact'])

{{ trans('entities.books_popular') }}

@include('entities.list', ['entities' => $popular->run(10, 0, ['book']), 'style' => 'compact'])

{{ trans('entities.chapters_popular') }}

@include('entities.list', ['entities' => $popular->run(10, 0, ['chapter']), 'style' => 'compact'])
@endif
@stop