2017-08-26 12:17:04 -04:00
|
|
|
@extends('sidebar-layout')
|
2016-02-16 16:25:11 -05:00
|
|
|
|
2017-08-26 12:17:04 -04:00
|
|
|
@section('toolbar')
|
|
|
|
<div class="col-sm-6 col-xs-1 faded">
|
|
|
|
<div class="breadcrumbs">
|
2018-02-17 14:49:00 -05:00
|
|
|
<a href="{{ $user->getProfileUrl() }}" class="text-button">@icon('user'){{ $user->name }}</a>
|
2017-08-26 12:17:04 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@stop
|
2016-02-16 16:25:11 -05:00
|
|
|
|
2017-08-26 12:17:04 -04:00
|
|
|
@section('sidebar')
|
|
|
|
<div class="card" id="recent-activity">
|
2018-02-17 08:30:52 -05:00
|
|
|
<h3>@icon('time') {{ trans('entities.recent_activity') }}</h3>
|
2017-08-26 12:17:04 -04:00
|
|
|
@include('partials/activity-list', ['activity' => $activity])
|
|
|
|
</div>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('body')
|
2016-02-16 16:25:11 -05:00
|
|
|
|
2018-05-28 05:33:38 -04:00
|
|
|
<div class="container small">
|
2016-02-16 16:25:11 -05:00
|
|
|
|
2017-08-26 12:17:04 -04:00
|
|
|
<div class="padded-top large"></div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-7">
|
|
|
|
<div class="clearfix">
|
|
|
|
<div class="padded-right float left">
|
|
|
|
<img class="avatar square huge" src="{{ $user->getAvatar(120) }}" alt="{{ $user->name }}">
|
2016-02-17 17:11:48 -05:00
|
|
|
</div>
|
2017-08-26 12:17:04 -04:00
|
|
|
<div>
|
|
|
|
<h3 style="margin-top: 0;">{{ $user->name }}</h3>
|
|
|
|
<p class="text-muted">
|
|
|
|
{{ trans('entities.profile_user_for_x', ['time' => $user->created_at->diffForHumans(null, true)]) }}
|
|
|
|
</p>
|
2016-02-17 17:11:48 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-08-26 12:17:04 -04:00
|
|
|
</div>
|
|
|
|
<div class="col-md-5 text-bigger" id="content-counts">
|
|
|
|
<div class="text-muted">{{ trans('entities.profile_created_content') }}</div>
|
2019-01-05 10:01:16 -05:00
|
|
|
<a href="#recent-books">
|
2018-11-25 19:47:49 -05:00
|
|
|
<div class="text-book">
|
|
|
|
@icon('book') {{ trans_choice('entities.x_books', $assetCounts['books']) }}
|
|
|
|
</div>
|
|
|
|
</a>
|
2019-01-05 10:01:16 -05:00
|
|
|
<a href="#recent-chapters">
|
2018-11-25 19:47:49 -05:00
|
|
|
<div class="text-chapter">
|
|
|
|
@icon('chapter') {{ trans_choice('entities.x_chapters', $assetCounts['chapters']) }}
|
|
|
|
</div>
|
|
|
|
</a>
|
2019-01-05 10:01:16 -05:00
|
|
|
<a href="#recent-pages">
|
2018-11-25 19:47:49 -05:00
|
|
|
<div class="text-page">
|
|
|
|
@icon('page') {{ trans_choice('entities.x_pages', $assetCounts['pages']) }}
|
|
|
|
</div>
|
|
|
|
</a>
|
2017-08-26 12:17:04 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-17 17:11:48 -05:00
|
|
|
|
|
|
|
|
2017-08-26 12:17:04 -04:00
|
|
|
<hr class="even">
|
2019-01-05 10:01:16 -05:00
|
|
|
<h3 id="recent-pages">{{ trans('entities.recently_created_pages') }}</h3>
|
2017-08-26 12:17:04 -04:00
|
|
|
@if (count($recentlyCreated['pages']) > 0)
|
|
|
|
@include('partials/entity-list', ['entities' => $recentlyCreated['pages']])
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ trans('entities.profile_not_created_pages', ['userName' => $user->name]) }}</p>
|
|
|
|
@endif
|
2016-02-17 17:11:48 -05:00
|
|
|
|
2017-08-26 12:17:04 -04:00
|
|
|
<hr class="even">
|
2019-01-05 10:01:16 -05:00
|
|
|
<h3 id="recent-chapters">{{ trans('entities.recently_created_chapters') }}</h3>
|
2017-08-26 12:17:04 -04:00
|
|
|
@if (count($recentlyCreated['chapters']) > 0)
|
|
|
|
@include('partials/entity-list', ['entities' => $recentlyCreated['chapters']])
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ trans('entities.profile_not_created_chapters', ['userName' => $user->name]) }}</p>
|
|
|
|
@endif
|
2016-02-16 16:25:11 -05:00
|
|
|
|
2017-08-26 12:17:04 -04:00
|
|
|
<hr class="even">
|
2019-01-05 10:01:16 -05:00
|
|
|
<h3 id="recent-books">{{ trans('entities.recently_created_books') }}</h3>
|
2017-08-26 12:17:04 -04:00
|
|
|
@if (count($recentlyCreated['books']) > 0)
|
|
|
|
@include('partials/entity-list', ['entities' => $recentlyCreated['books']])
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ trans('entities.profile_not_created_books', ['userName' => $user->name]) }}</p>
|
|
|
|
@endif
|
2016-02-16 16:25:11 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
@stop
|