1 @extends('simple-layout')
5 <div class="container pt-xl">
7 <div class="grid right-focus reverse-collapse">
10 <div id="recent-user-activity" class="mb-xl">
11 <h5>{{ trans('entities.recent_activity') }}</h5>
12 @include('partials.activity-list', ['activity' => $activity])
17 <div class="card content-wrap auto-height">
18 <div class="grid half v-center">
20 <div class="mr-m float left">
21 <img class="avatar square huge" src="{{ $user->getAvatar(120) }}" alt="{{ $user->name }}">
24 <h4 class="mt-md">{{ $user->name }}</h4>
25 <p class="text-muted">
26 {{ trans('entities.profile_user_for_x', ['time' => $user->created_at->diffForHumans(null, true)]) }}
30 <div id="content-counts">
31 <div class="text-muted">{{ trans('entities.profile_created_content') }}</div>
32 <div class="grid half v-center no-row-gap">
33 <div class="icon-list">
34 <a href="#recent-pages" class="text-page icon-list-item">
35 <span>@icon('page')</span>
36 <span>{{ trans_choice('entities.x_pages', $assetCounts['pages']) }}</span>
38 <a href="#recent-chapters" class="text-chapter icon-list-item">
39 <span>@icon('chapter')</span>
40 <span>{{ trans_choice('entities.x_chapters', $assetCounts['chapters']) }}</span>
43 <div class="icon-list">
44 <a href="#recent-books" class="text-book icon-list-item">
45 <span>@icon('book')</span>
46 <span>{{ trans_choice('entities.x_books', $assetCounts['books']) }}</span>
48 <a href="#recent-shelves" class="text-bookshelf icon-list-item">
49 <span>@icon('bookshelf')</span>
50 <span>{{ trans_choice('entities.x_shelves', $assetCounts['shelves']) }}</span>
59 <div class="card content-wrap auto-height book-contents">
60 <h2 id="recent-pages" class="list-heading">
61 {{ trans('entities.recently_created_pages') }}
62 @if (count($recentlyCreated['pages']) > 0)
63 <a href="{{ baseUrl('/search?term=' . urlencode('{created_by:'.$user->id.'} {type:page}') ) }}" class="text-small ml-s">{{ trans('common.view_all') }}</a>
66 @if (count($recentlyCreated['pages']) > 0)
67 @include('partials.entity-list', ['entities' => $recentlyCreated['pages'], 'showPath' => true])
69 <p class="text-muted">{{ trans('entities.profile_not_created_pages', ['userName' => $user->name]) }}</p>
73 <div class="card content-wrap auto-height book-contents">
74 <h2 id="recent-chapters" class="list-heading">
75 {{ trans('entities.recently_created_chapters') }}
76 @if (count($recentlyCreated['chapters']) > 0)
77 <a href="{{ baseUrl('/search?term=' . urlencode('{created_by:'.$user->id.'} {type:chapter}') ) }}" class="text-small ml-s">{{ trans('common.view_all') }}</a>
80 @if (count($recentlyCreated['chapters']) > 0)
81 @include('partials.entity-list', ['entities' => $recentlyCreated['chapters'], 'showPath' => true])
83 <p class="text-muted">{{ trans('entities.profile_not_created_chapters', ['userName' => $user->name]) }}</p>
87 <div class="card content-wrap auto-height book-contents">
88 <h2 id="recent-books" class="list-heading">
89 {{ trans('entities.recently_created_books') }}
90 @if (count($recentlyCreated['books']) > 0)
91 <a href="{{ baseUrl('/search?term=' . urlencode('{created_by:'.$user->id.'} {type:book}') ) }}" class="text-small ml-s">{{ trans('common.view_all') }}</a>
94 @if (count($recentlyCreated['books']) > 0)
95 @include('partials.entity-list', ['entities' => $recentlyCreated['books'], 'showPath' => true])
97 <p class="text-muted">{{ trans('entities.profile_not_created_books', ['userName' => $user->name]) }}</p>
101 <div class="card content-wrap auto-height book-contents">
102 <h2 id="recent-shelves" class="list-heading">
103 {{ trans('entities.recently_created_shelves') }}
104 @if (count($recentlyCreated['shelves']) > 0)
105 <a href="{{ baseUrl('/search?term=' . urlencode('{created_by:'.$user->id.'} {type:bookshelf}') ) }}" class="text-small ml-s">{{ trans('common.view_all') }}</a>
108 @if (count($recentlyCreated['shelves']) > 0)
109 @include('partials.entity-list', ['entities' => $recentlyCreated['shelves'], 'showPath' => true])
111 <p class="text-muted">{{ trans('entities.profile_not_created_shelves', ['userName' => $user->name]) }}</p>