@extends('layouts.simple') @section('body')
@include('home.parts.expand-toggle', ['classes' => 'text-muted text-primary', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
@include('common.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
@if(count($draftPages) > 0)

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

@include('entities.list', ['entities' => $draftPages, 'style' => 'compact'])
@endif

{{ trans('entities.' . (auth()->check() ? 'my_recently_viewed' : 'books_recent')) }}

@include('entities.list', [ 'entities' => $recents, 'style' => 'compact', 'emptyText' => auth()->check() ? trans('entities.no_pages_viewed') : trans('entities.books_empty') ])
@if(count($favourites) > 0)

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

@include('entities.list', [ 'entities' => $favourites, 'style' => 'compact', ])
{{ trans('common.view_all') }}
@endif

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

@include('entities.list', [ 'entities' => $recentlyUpdatedPages, 'style' => 'compact', 'emptyText' => trans('entities.no_pages_recently_updated'), ])
{{ trans('common.view_all') }}

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

@include('common.activity-list', ['activity' => $activity])
@stop