| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  | @extends('layouts.simple') | 
					
						
							| 
									
										
										
										
											2016-02-17 05:25:11 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-27 00:17:04 +08:00
										 |  |  | @section('body') | 
					
						
							| 
									
										
										
										
											2016-02-17 05:25:11 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-27 05:36:05 +08:00
										 |  |  |     <div class="container medium pt-xl"> | 
					
						
							| 
									
										
										
										
											2016-02-17 05:25:11 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |         <div class="grid right-focus reverse-collapse"> | 
					
						
							| 
									
										
										
										
											2017-08-27 00:17:04 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |             <div> | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 <section id="recent-user-activity" class="mb-xl"> | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |                     <h5>{{ trans('entities.recent_activity') }}</h5> | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |                     @include('common.activity-list', ['activity' => $activity]) | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 </section> | 
					
						
							| 
									
										
										
										
											2017-08-27 00:17:04 +08:00
										 |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |             <div> | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 <section class="card content-wrap auto-height"> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                     <div class="grid half v-center"> | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |                         <div> | 
					
						
							|  |  |  |                             <div class="mr-m float left"> | 
					
						
							|  |  |  |                                 <img class="avatar square huge" src="{{ $user->getAvatar(120) }}" alt="{{ $user->name }}"> | 
					
						
							|  |  |  |                             </div> | 
					
						
							|  |  |  |                             <div> | 
					
						
							|  |  |  |                                 <h4 class="mt-md">{{ $user->name }}</h4> | 
					
						
							|  |  |  |                                 <p class="text-muted"> | 
					
						
							|  |  |  |                                     {{ trans('entities.profile_user_for_x', ['time' => $user->created_at->diffForHumans(null, true)]) }} | 
					
						
							|  |  |  |                                 </p> | 
					
						
							|  |  |  |                             </div> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                         <div id="content-counts"> | 
					
						
							|  |  |  |                             <div class="text-muted">{{ trans('entities.profile_created_content') }}</div> | 
					
						
							| 
									
										
										
										
											2019-04-14 19:04:20 +08:00
										 |  |  |                             <div class="grid half v-center no-row-gap"> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                                 <div class="icon-list"> | 
					
						
							|  |  |  |                                     <a href="#recent-pages" class="text-page icon-list-item"> | 
					
						
							|  |  |  |                                         <span>@icon('page')</span> | 
					
						
							|  |  |  |                                         <span>{{ trans_choice('entities.x_pages', $assetCounts['pages']) }}</span> | 
					
						
							|  |  |  |                                     </a> | 
					
						
							|  |  |  |                                     <a href="#recent-chapters" class="text-chapter icon-list-item"> | 
					
						
							|  |  |  |                                         <span>@icon('chapter')</span> | 
					
						
							|  |  |  |                                         <span>{{ trans_choice('entities.x_chapters', $assetCounts['chapters']) }}</span> | 
					
						
							|  |  |  |                                     </a> | 
					
						
							|  |  |  |                                 </div> | 
					
						
							|  |  |  |                                 <div class="icon-list"> | 
					
						
							|  |  |  |                                     <a href="#recent-books" class="text-book icon-list-item"> | 
					
						
							|  |  |  |                                         <span>@icon('book')</span> | 
					
						
							|  |  |  |                                         <span>{{ trans_choice('entities.x_books', $assetCounts['books']) }}</span> | 
					
						
							|  |  |  |                                     </a> | 
					
						
							|  |  |  |                                     <a href="#recent-shelves" class="text-bookshelf icon-list-item"> | 
					
						
							|  |  |  |                                         <span>@icon('bookshelf')</span> | 
					
						
							|  |  |  |                                         <span>{{ trans_choice('entities.x_shelves', $assetCounts['shelves']) }}</span> | 
					
						
							|  |  |  |                                     </a> | 
					
						
							|  |  |  |                                 </div> | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |                             </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         </div> | 
					
						
							| 
									
										
										
										
											2018-11-26 08:47:49 +08:00
										 |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 </section> | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 <section class="card content-wrap auto-height book-contents"> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                     <h2 id="recent-pages" class="list-heading"> | 
					
						
							|  |  |  |                         {{ trans('entities.recently_created_pages') }} | 
					
						
							|  |  |  |                         @if (count($recentlyCreated['pages']) > 0) | 
					
						
							| 
									
										
										
										
											2021-08-05 04:08:51 +08:00
										 |  |  |                             <a href="{{ url('/search?term=' . urlencode('{created_by:'.$user->slug.'} {type:page}') ) }}" class="text-small ml-s">{{ trans('common.view_all') }}</a> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                         @endif | 
					
						
							|  |  |  |                     </h2> | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |                     @if (count($recentlyCreated['pages']) > 0) | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |                         @include('entities.list', ['entities' => $recentlyCreated['pages'], 'showPath' => true]) | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |                     @else | 
					
						
							|  |  |  |                         <p class="text-muted">{{ trans('entities.profile_not_created_pages', ['userName' => $user->name]) }}</p> | 
					
						
							|  |  |  |                     @endif | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 </section> | 
					
						
							| 
									
										
										
										
											2016-02-18 06:11:48 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 <section class="card content-wrap auto-height book-contents"> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                     <h2 id="recent-chapters" class="list-heading"> | 
					
						
							|  |  |  |                         {{ trans('entities.recently_created_chapters') }} | 
					
						
							|  |  |  |                         @if (count($recentlyCreated['chapters']) > 0) | 
					
						
							| 
									
										
										
										
											2021-08-05 04:08:51 +08:00
										 |  |  |                             <a href="{{ url('/search?term=' . urlencode('{created_by:'.$user->slug.'} {type:chapter}') ) }}" class="text-small ml-s">{{ trans('common.view_all') }}</a> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                         @endif | 
					
						
							|  |  |  |                     </h2> | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |                     @if (count($recentlyCreated['chapters']) > 0) | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |                         @include('entities.list', ['entities' => $recentlyCreated['chapters'], 'showPath' => true]) | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |                     @else | 
					
						
							|  |  |  |                         <p class="text-muted">{{ trans('entities.profile_not_created_chapters', ['userName' => $user->name]) }}</p> | 
					
						
							|  |  |  |                     @endif | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 </section> | 
					
						
							| 
									
										
										
										
											2016-02-18 06:11:48 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 <section class="card content-wrap auto-height book-contents"> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                     <h2 id="recent-books" class="list-heading"> | 
					
						
							|  |  |  |                         {{ trans('entities.recently_created_books') }} | 
					
						
							|  |  |  |                         @if (count($recentlyCreated['books']) > 0) | 
					
						
							| 
									
										
										
										
											2021-08-05 04:08:51 +08:00
										 |  |  |                             <a href="{{ url('/search?term=' . urlencode('{created_by:'.$user->slug.'} {type:book}') ) }}" class="text-small ml-s">{{ trans('common.view_all') }}</a> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                         @endif | 
					
						
							|  |  |  |                     </h2> | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |                     @if (count($recentlyCreated['books']) > 0) | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |                         @include('entities.list', ['entities' => $recentlyCreated['books'], 'showPath' => true]) | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |                     @else | 
					
						
							|  |  |  |                         <p class="text-muted">{{ trans('entities.profile_not_created_books', ['userName' => $user->name]) }}</p> | 
					
						
							|  |  |  |                     @endif | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 </section> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 <section class="card content-wrap auto-height book-contents"> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                     <h2 id="recent-shelves" class="list-heading"> | 
					
						
							|  |  |  |                         {{ trans('entities.recently_created_shelves') }} | 
					
						
							|  |  |  |                         @if (count($recentlyCreated['shelves']) > 0) | 
					
						
							| 
									
										
										
										
											2021-08-05 04:08:51 +08:00
										 |  |  |                             <a href="{{ url('/search?term=' . urlencode('{created_by:'.$user->slug.'} {type:bookshelf}') ) }}" class="text-small ml-s">{{ trans('common.view_all') }}</a> | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                         @endif | 
					
						
							|  |  |  |                     </h2> | 
					
						
							|  |  |  |                     @if (count($recentlyCreated['shelves']) > 0) | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |                         @include('entities.list', ['entities' => $recentlyCreated['shelves'], 'showPath' => true]) | 
					
						
							| 
									
										
										
										
											2019-04-06 23:21:20 +08:00
										 |  |  |                     @else | 
					
						
							|  |  |  |                         <p class="text-muted">{{ trans('entities.profile_not_created_shelves', ['userName' => $user->name]) }}</p> | 
					
						
							|  |  |  |                     @endif | 
					
						
							| 
									
										
										
										
											2019-08-25 22:44:51 +08:00
										 |  |  |                 </section> | 
					
						
							| 
									
										
										
										
											2019-02-02 23:49:57 +08:00
										 |  |  |             </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2016-02-18 06:11:48 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-17 05:25:11 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | @stop |