-
-
{{ trans('entities.pages_popular') }}
- @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Page::class]), 'style' => 'compact'])
-
-
-
{{ trans('entities.books_popular') }}
- @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Book::class]), 'style' => 'compact'])
-
-
-
{{ trans('entities.chapters_popular') }}
- @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Chapter::class]), 'style' => 'compact'])
+
+
+ @if (setting('app-public') || !user()->isDefault())
+
+
+
+
@icon('page') {{ trans('entities.pages_popular') }}
+ @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Page::class]), 'style' => 'compact'])
+
+
+
+
+
@icon('book') {{ trans('entities.books_popular') }}
+ @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Book::class]), 'style' => 'compact'])
+
+
+
+
+
@icon('chapter') {{ trans('entities.chapters_popular') }}
+ @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Chapter::class]), 'style' => 'compact'])
+
+
+
+ @endif
@stop
\ No newline at end of file