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