-
Books
- @if(count($books) > 0)
- @foreach($books as $book)
- @include('books/list-item', ['book' => $book])
-
- @endforeach
- @if(count($books) === 10)
-
View all books »
+
+
+
+ @if(count($draftPages) > 0)
+
My Recent Drafts
+ @include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact'])
@endif
+
+ @if($signedIn)
+
My Recently Viewed
@else
-
No books have been created.
-
Create one now
+
Recent Books
@endif
+ @include('partials/entity-list', [
+ 'entities' => $recents,
+ 'style' => 'compact',
+ 'emptyText' => $signedIn ? 'You have not viewed any pages' : 'No books have been created'
+ ])
-
-
-
Recent Activity
+
+
+
+
+ @include('partials/entity-list', [
+ 'entities' => $recentlyCreatedPages,
+ 'style' => 'compact',
+ 'emptyText' => 'No pages have been recently created'
+ ])
+
+
+
+
+ @include('partials/entity-list', [
+ 'entities' => $recentlyUpdatedPages,
+ 'style' => 'compact',
+ 'emptyText' => 'No pages have been recently updated'
+ ])
+
+
+
+
+
Recent Activity
@include('partials/activity-list', ['activity' => $activity])
+