2021-08-22 20:15:58 +08:00
|
|
|
@extends('layouts.simple')
|
2015-08-13 01:48:26 +08:00
|
|
|
|
2017-08-20 20:57:25 +08:00
|
|
|
@section('body')
|
2016-02-20 20:37:06 +08:00
|
|
|
|
2019-04-14 20:01:51 +08:00
|
|
|
<div class="container px-xl py-s">
|
2020-04-13 02:06:34 +08:00
|
|
|
<div class="grid half">
|
|
|
|
<div>
|
|
|
|
<div class="icon-list inline block">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('home.parts.expand-toggle', ['classes' => 'text-muted text-primary', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
|
2020-04-13 02:06:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="text-m-right">
|
|
|
|
<div class="icon-list inline block">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('common.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
|
2020-04-13 02:06:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-04-14 20:01:51 +08:00
|
|
|
</div>
|
2018-10-17 01:49:16 +08:00
|
|
|
</div>
|
2016-02-20 20:37:06 +08:00
|
|
|
|
2019-04-07 16:57:48 +08:00
|
|
|
<div class="container" id="home-default">
|
2019-04-14 19:04:20 +08:00
|
|
|
<div class="grid third gap-xxl no-row-gap" >
|
2019-04-07 16:57:48 +08:00
|
|
|
<div>
|
|
|
|
@if(count($draftPages) > 0)
|
|
|
|
<div id="recent-drafts" class="card mb-xl">
|
2019-05-06 07:15:03 +08:00
|
|
|
<h3 class="card-title">{{ trans('entities.my_recent_drafts') }}</h3>
|
2019-04-07 16:57:48 +08:00
|
|
|
<div class="px-m">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.list', ['entities' => $draftPages, 'style' => 'compact'])
|
2019-04-07 16:57:48 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2021-01-17 21:41:43 +08:00
|
|
|
<div id="{{ auth()->check() ? 'recently-viewed' : 'recent-books' }}" class="card mb-xl">
|
|
|
|
<h3 class="card-title">{{ trans('entities.' . (auth()->check() ? 'my_recently_viewed' : 'books_recent')) }}</h3>
|
2018-12-02 04:28:17 +08:00
|
|
|
<div class="px-m">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.list', [
|
2019-04-07 16:57:48 +08:00
|
|
|
'entities' => $recents,
|
|
|
|
'style' => 'compact',
|
2021-01-17 21:41:43 +08:00
|
|
|
'emptyText' => auth()->check() ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
|
2019-04-07 16:57:48 +08:00
|
|
|
])
|
2018-12-02 04:28:17 +08:00
|
|
|
</div>
|
2016-03-06 06:54:53 +08:00
|
|
|
</div>
|
2017-08-20 20:57:25 +08:00
|
|
|
</div>
|
2016-02-21 02:51:01 +08:00
|
|
|
|
2019-04-07 16:57:48 +08:00
|
|
|
<div>
|
2021-05-22 21:05:28 +08:00
|
|
|
@if(count($favourites) > 0)
|
|
|
|
<div id="top-favourites" class="card mb-xl">
|
2021-05-23 20:34:08 +08:00
|
|
|
<h3 class="card-title">
|
|
|
|
<a href="{{ url('/favourites') }}" class="no-color">{{ trans('entities.my_most_viewed_favourites') }}</a>
|
|
|
|
</h3>
|
2021-05-22 21:05:28 +08:00
|
|
|
<div class="px-m">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.list', [
|
2021-05-22 21:05:28 +08:00
|
|
|
'entities' => $favourites,
|
|
|
|
'style' => 'compact',
|
|
|
|
])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2019-04-07 16:57:48 +08:00
|
|
|
<div id="recent-pages" class="card mb-xl">
|
2019-08-04 21:26:39 +08:00
|
|
|
<h3 class="card-title"><a class="no-color" href="{{ url("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h3>
|
2019-04-07 16:57:48 +08:00
|
|
|
<div id="recently-updated-pages" class="px-m">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.list', [
|
2019-04-07 16:57:48 +08:00
|
|
|
'entities' => $recentlyUpdatedPages,
|
|
|
|
'style' => 'compact',
|
|
|
|
'emptyText' => trans('entities.no_pages_recently_updated')
|
|
|
|
])
|
|
|
|
</div>
|
2016-03-06 06:54:53 +08:00
|
|
|
</div>
|
2015-08-17 03:11:21 +08:00
|
|
|
</div>
|
2015-11-22 01:22:14 +08:00
|
|
|
|
2019-04-07 16:57:48 +08:00
|
|
|
<div>
|
|
|
|
<div id="recent-activity">
|
|
|
|
<div class="card mb-xl">
|
2019-05-06 07:15:03 +08:00
|
|
|
<h3 class="card-title">{{ trans('entities.recent_activity') }}</h3>
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('common.activity-list', ['activity' => $activity])
|
2019-04-07 16:57:48 +08:00
|
|
|
</div>
|
2017-08-20 20:57:25 +08:00
|
|
|
</div>
|
2015-08-31 00:53:30 +08:00
|
|
|
</div>
|
2018-10-17 01:49:16 +08:00
|
|
|
|
2019-04-07 16:57:48 +08:00
|
|
|
</div>
|
2015-08-17 03:11:21 +08:00
|
|
|
</div>
|
2015-08-13 14:44:10 +08:00
|
|
|
|
2017-01-04 00:48:13 +08:00
|
|
|
@stop
|