| 
									
										
										
										
											2018-05-20 17:11:56 +08:00
										 |  |  | @if(count($draftPages) > 0) | 
					
						
							| 
									
										
										
										
											2019-04-07 00:31:59 +08:00
										 |  |  |     <div id="recent-drafts" class="mb-xl"> | 
					
						
							|  |  |  |         <h5>{{ trans('entities.my_recent_drafts') }}</h5> | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |         @include('entities.list', ['entities' => $draftPages, 'style' => 'compact']) | 
					
						
							| 
									
										
										
										
											2018-05-20 17:11:56 +08:00
										 |  |  |     </div> | 
					
						
							|  |  |  | @endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-22 21:05:28 +08:00
										 |  |  | @if(count($favourites) > 0) | 
					
						
							| 
									
										
										
										
											2021-06-05 05:20:11 +08:00
										 |  |  |     <div id="top-favourites" class="mb-xl"> | 
					
						
							| 
									
										
										
										
											2021-11-24 02:18:49 +08:00
										 |  |  |         <h5>{{ trans('entities.my_most_viewed_favourites') }}</h5> | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |         @include('entities.list', [ | 
					
						
							| 
									
										
										
										
											2021-05-22 21:05:28 +08:00
										 |  |  |             'entities' => $favourites, | 
					
						
							|  |  |  |             'style' => 'compact', | 
					
						
							| 
									
										
										
										
											2021-06-05 05:20:11 +08:00
										 |  |  |         ]) | 
					
						
							| 
									
										
										
										
											2021-11-24 02:18:49 +08:00
										 |  |  |         <a href="{{ url('/favourites')  }}" class="text-muted block py-xs">{{ trans('common.view_all') }}</a> | 
					
						
							| 
									
										
										
										
											2021-05-22 21:05:28 +08:00
										 |  |  |     </div> | 
					
						
							|  |  |  | @endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-07 00:31:59 +08:00
										 |  |  | <div class="mb-xl"> | 
					
						
							| 
									
										
										
										
											2021-01-17 21:41:43 +08:00
										 |  |  |     <h5>{{ trans('entities.' . (auth()->check() ? 'my_recently_viewed' : 'books_recent')) }}</h5> | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |     @include('entities.list', [ | 
					
						
							| 
									
										
										
										
											2018-05-20 17:11:56 +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') | 
					
						
							| 
									
										
										
										
											2018-05-20 17:11:56 +08:00
										 |  |  |         ]) | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-07 00:31:59 +08:00
										 |  |  | <div class="mb-xl"> | 
					
						
							| 
									
										
										
										
											2021-11-24 02:18:49 +08:00
										 |  |  |     <h5>{{ trans('entities.recently_updated_pages') }}</h5> | 
					
						
							| 
									
										
										
										
											2018-05-20 17:11:56 +08:00
										 |  |  |     <div id="recently-updated-pages"> | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |         @include('entities.list', [ | 
					
						
							| 
									
										
										
										
											2018-05-20 17:11:56 +08:00
										 |  |  |         'entities' => $recentlyUpdatedPages, | 
					
						
							|  |  |  |         'style' => 'compact', | 
					
						
							|  |  |  |         'emptyText' => trans('entities.no_pages_recently_updated') | 
					
						
							|  |  |  |         ]) | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2021-11-24 02:18:49 +08:00
										 |  |  |     <a href="{{ url('/pages/recently-updated')  }}" class="text-muted block py-xs">{{ trans('common.view_all') }}</a> | 
					
						
							| 
									
										
										
										
											2018-05-20 17:11:56 +08:00
										 |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-07 00:31:59 +08:00
										 |  |  | <div id="recent-activity" class="mb-xl"> | 
					
						
							|  |  |  |     <h5>{{ trans('entities.recent_activity') }}</h5> | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |     @include('common.activity-list', ['activity' => $activity]) | 
					
						
							| 
									
										
										
										
											2018-05-20 17:11:56 +08:00
										 |  |  | </div> |