2017-08-28 08:38:32 -04:00
|
|
|
@extends('sidebar-layout')
|
|
|
|
|
|
|
|
@section('toolbar')
|
|
|
|
<div class="col-sm-6 faded">
|
|
|
|
<div class="action-buttons text-left">
|
|
|
|
<a expand-toggle=".entity-list.compact .entity-item-snippet" class="text-primary text-button"><i class="zmdi zmdi-wrap-text"></i>{{ trans('common.toggle_details') }}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('sidebar')
|
|
|
|
@if(count($draftPages) > 0)
|
|
|
|
<div id="recent-drafts" class="card">
|
2018-02-17 08:30:52 -05:00
|
|
|
<h3>@icon('edit') {{ trans('entities.my_recent_drafts') }}</h3>
|
2017-08-28 08:38:32 -04:00
|
|
|
@include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact'])
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<h3><i class="zmdi zmdi-{{ $signedIn ? 'eye' : 'star-circle' }}"></i> {{ trans('entities.' . ($signedIn ? 'my_recently_viewed' : 'books_recent')) }}</h3>
|
|
|
|
@include('partials/entity-list', [
|
|
|
|
'entities' => $recents,
|
|
|
|
'style' => 'compact',
|
|
|
|
'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
|
|
|
|
])
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<h3><i class="zmdi zmdi-file"></i> <a class="no-color" href="{{ baseUrl("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h3>
|
|
|
|
<div id="recently-updated-pages">
|
|
|
|
@include('partials/entity-list', [
|
|
|
|
'entities' => $recentlyUpdatedPages,
|
|
|
|
'style' => 'compact',
|
|
|
|
'emptyText' => trans('entities.no_pages_recently_updated')
|
|
|
|
])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="recent-activity" class="card">
|
2018-02-17 08:30:52 -05:00
|
|
|
<h3>@icon('time') {{ trans('entities.recent_activity') }}</h3>
|
2017-08-28 08:38:32 -04:00
|
|
|
@include('partials/activity-list', ['activity' => $activity])
|
|
|
|
</div>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('body')
|
|
|
|
<div class="page-content" ng-non-bindable>
|
|
|
|
@include('pages/page-display', ['page' => $customHomepage])
|
|
|
|
</div>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('scripts')
|
|
|
|
<script>
|
|
|
|
setupPageShow({{$customHomepage->id}});
|
|
|
|
</script>
|
|
|
|
@stop
|
|
|
|
|