2018-06-06 14:52:27 +00:00
|
|
|
<div class="bg-white py-5 border-bottom">
|
2018-06-03 16:07:18 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-md-4 d-flex">
|
|
|
|
<div class="profile-avatar mx-auto">
|
|
|
|
<img class="img-thumbnail" src="{{$user->avatarUrl()}}" style="border-radius:100%;" width="172px">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-8 d-flex align-items-center">
|
|
|
|
<div class="profile-details">
|
2018-06-09 23:34:53 +00:00
|
|
|
<div class="username-bar pb-2 d-flex align-items-center">
|
2018-06-03 16:07:18 +00:00
|
|
|
<span class="font-weight-ultralight h1">{{$user->username}}</span>
|
2018-06-09 23:34:53 +00:00
|
|
|
@if($is_admin == true)
|
|
|
|
<span class="pl-4">
|
|
|
|
<span class="btn btn-outline-danger font-weight-bold py-0">ADMIN</span>
|
|
|
|
</span>
|
|
|
|
@endif
|
2018-06-03 16:07:18 +00:00
|
|
|
@if($owner == true)
|
2018-06-09 23:34:53 +00:00
|
|
|
<span class="pl-4">
|
|
|
|
<a class="fas fa-cog fa-lg text-muted" href="{{route('settings')}}"></a>
|
2018-06-03 16:07:18 +00:00
|
|
|
</span>
|
2018-06-05 05:25:34 +00:00
|
|
|
@elseif ($is_following == true)
|
2018-06-03 16:07:18 +00:00
|
|
|
<span class="pl-4">
|
|
|
|
<form class="follow-form" method="post" action="/i/follow" style="display: inline;" data-id="{{$user->id}}" data-action="unfollow">
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="item" value="{{$user->id}}">
|
|
|
|
<button class="btn btn-outline-secondary font-weight-bold px-4 py-0" type="submit">Unfollow</button>
|
|
|
|
</form>
|
|
|
|
</span>
|
2018-06-05 05:25:34 +00:00
|
|
|
@elseif ($is_following == false)
|
2018-06-03 16:07:18 +00:00
|
|
|
<span class="pl-4">
|
|
|
|
<form class="follow-form" method="post" action="/i/follow" style="display: inline;" data-id="{{$user->id}}" data-action="follow">
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="item" value="{{$user->id}}">
|
|
|
|
<button class="btn btn-primary font-weight-bold px-4 py-0" type="submit">Follow</button>
|
|
|
|
</form>
|
|
|
|
</span>
|
|
|
|
@endif
|
|
|
|
{{-- TODO: Implement action dropdown
|
|
|
|
<span class="pl-4">
|
|
|
|
<div class="dropdown">
|
|
|
|
<button class="btn btn-secondary dropdown-toggle py-0" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<i class="icon-options"></i>
|
|
|
|
</button>
|
|
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
|
|
|
<a class="dropdown-item" href="#">Report User</a>
|
|
|
|
<a class="dropdown-item" href="#">Block User</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
--}}
|
|
|
|
</div>
|
|
|
|
<div class="profile-stats pb-3 d-inline-flex lead">
|
|
|
|
<div class="font-weight-light pr-5">
|
2018-06-03 18:44:25 +00:00
|
|
|
<a class="text-dark" href="{{$user->url()}}">
|
2018-08-21 02:46:13 +00:00
|
|
|
<span class="font-weight-bold">{{$user->statuses()->whereNull('reblog_of_id')->whereNull('in_reply_to_id')->count()}}</span>
|
2018-06-03 16:07:18 +00:00
|
|
|
Posts
|
2018-06-03 18:44:25 +00:00
|
|
|
</a>
|
2018-06-03 16:07:18 +00:00
|
|
|
</div>
|
|
|
|
<div class="font-weight-light pr-5">
|
|
|
|
<a class="text-dark" href="{{$user->url('/followers')}}">
|
|
|
|
<span class="font-weight-bold">{{$user->followerCount(true)}}</span>
|
|
|
|
Followers
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="font-weight-light pr-5">
|
|
|
|
<a class="text-dark" href="{{$user->url('/following')}}">
|
|
|
|
<span class="font-weight-bold">{{$user->followingCount(true)}}</span>
|
|
|
|
Following
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-21 02:34:58 +00:00
|
|
|
<p class="lead mb-0">
|
2018-06-03 16:07:18 +00:00
|
|
|
<span class="font-weight-bold">{{$user->name}}</span>
|
|
|
|
@if($user->remote_url)
|
|
|
|
<span class="badge badge-info">REMOTE PROFILE</span>
|
|
|
|
@endif
|
|
|
|
</p>
|
2018-08-21 02:34:58 +00:00
|
|
|
<p class="mb-0 lead">{{$user->bio}}</p>
|
|
|
|
<p class="mb-0"><a href="{{$user->website}}" class="font-weight-bold" rel="external nofollow noopener" target="_blank">{{str_limit($user->website, 30)}}</a></p>
|
2018-06-03 16:07:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|