2018-05-30 02:32:46 +00:00
|
|
|
<div class="card my-4 status-card">
|
2018-04-17 01:26:38 +00:00
|
|
|
<div class="card-header d-inline-flex align-items-center bg-white">
|
2018-06-06 05:02:28 +00:00
|
|
|
<img src="{{$item->profile->avatarUrl()}}" width="32px" height="32px" style="border-radius: 32px;">
|
2018-05-30 02:32:46 +00:00
|
|
|
<a class="username font-weight-bold pl-2 text-dark" href="{{$item->profile->url()}}">
|
2018-04-17 01:26:38 +00:00
|
|
|
{{$item->profile->username}}
|
2018-05-30 02:32:46 +00:00
|
|
|
</a>
|
2018-04-17 01:26:38 +00:00
|
|
|
<div class="text-right" style="flex-grow:1;">
|
2018-05-30 02:32:46 +00:00
|
|
|
<div class="dropdown">
|
2018-06-06 14:07:43 +00:00
|
|
|
<button class="btn btn-link text-dark no-caret dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Post options">
|
2018-06-09 23:34:53 +00:00
|
|
|
<span class="fas fa-ellipsis-v fa-lg text-muted"></span>
|
2018-05-30 02:32:46 +00:00
|
|
|
</button>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
|
|
|
<a class="dropdown-item" href="{{$item->url()}}">Go to post</a>
|
|
|
|
<a class="dropdown-item" href="{{route('report.form')}}?type=post&id={{$item->id}}">Report Inappropriate</a>
|
|
|
|
<a class="dropdown-item" href="#">Embed</a>
|
2018-06-01 21:04:33 +00:00
|
|
|
@if(Auth::check())
|
|
|
|
@if(Auth::user()->profile->id === $item->profile->id || Auth::user()->is_admin == true)
|
2018-06-14 00:54:27 +00:00
|
|
|
<a class="dropdown-item" href="{{$item->editUrl()}}">Edit</a>
|
2018-06-01 21:04:33 +00:00
|
|
|
<form method="post" action="/i/delete">
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="type" value="post">
|
|
|
|
<input type="hidden" name="item" value="{{$item->id}}">
|
|
|
|
<button type="submit" class="dropdown-item btn btn-link">Delete</button>
|
|
|
|
</form>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
2018-05-30 02:32:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-17 01:26:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-06-09 23:34:53 +00:00
|
|
|
@if($item->is_nsfw)
|
2018-06-10 02:34:52 +00:00
|
|
|
<details class="details-animated">
|
2018-06-09 23:34:53 +00:00
|
|
|
<p>
|
|
|
|
<summary>NSFW / Hidden Image</summary>
|
2018-06-14 00:54:27 +00:00
|
|
|
<a class="max-hide-overflow {{$item->firstMedia()->filter_class}}" href="{{$item->url()}}">
|
2018-06-09 23:34:53 +00:00
|
|
|
<img class="card-img-top" src="{{$item->mediaUrl()}}">
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</details>
|
|
|
|
@else
|
2018-06-14 00:54:27 +00:00
|
|
|
<a class="max-hide-overflow {{$item->firstMedia()->filter_class}}" href="{{$item->url()}}">
|
2018-05-30 02:32:46 +00:00
|
|
|
<img class="card-img-top" src="{{$item->mediaUrl()}}">
|
|
|
|
</a>
|
2018-06-09 23:34:53 +00:00
|
|
|
@endif
|
2018-04-17 01:26:38 +00:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="reactions h3">
|
2018-06-04 02:21:13 +00:00
|
|
|
<form class="like-form pr-3" method="post" action="/i/like" style="display: inline;" data-id="{{$item->id}}" data-action="like" data-count="{{$item->likes_count}}">
|
2018-05-30 02:32:46 +00:00
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="item" value="{{$item->id}}">
|
2018-06-06 14:07:43 +00:00
|
|
|
<button class="btn btn-link text-dark p-0" type="submit" title=""Like!>
|
2018-06-04 02:21:13 +00:00
|
|
|
<span class="far fa-heart status-heart fa-2x"></span>
|
|
|
|
</button>
|
2018-05-30 02:32:46 +00:00
|
|
|
</form>
|
2018-06-06 14:07:43 +00:00
|
|
|
<span class="far fa-comment status-comment-focus" title="Comment"></span>
|
2018-04-17 01:26:38 +00:00
|
|
|
<span class="float-right">
|
2018-05-31 21:56:46 +00:00
|
|
|
<form class="bookmark-form" method="post" action="/i/bookmark" style="display: inline;" data-id="{{$item->id}}" data-action="bookmark">
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="item" value="{{$item->id}}">
|
2018-06-06 14:07:43 +00:00
|
|
|
<button class="btn btn-link text-dark p-0" type="submit" title="Save"><span class="far fa-bookmark" style="font-size:25px;"></span></button>
|
2018-05-31 21:56:46 +00:00
|
|
|
</form>
|
2018-04-17 01:26:38 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="likes font-weight-bold">
|
2018-06-04 02:21:13 +00:00
|
|
|
<span class="like-count">{{$item->likes_count}}</span> likes
|
2018-04-17 01:26:38 +00:00
|
|
|
</div>
|
|
|
|
<div class="caption">
|
2018-05-30 02:32:46 +00:00
|
|
|
<p class="mb-1">
|
2018-04-17 01:26:38 +00:00
|
|
|
<span class="username font-weight-bold">
|
2018-05-30 02:32:46 +00:00
|
|
|
<bdi><a class="text-dark" href="{{$item->profile->url()}}">{{$item->profile->username}}</a></bdi>
|
2018-04-17 01:26:38 +00:00
|
|
|
</span>
|
2018-05-30 02:32:46 +00:00
|
|
|
<span>{!! $item->rendered ?? e($item->caption) !!}</span>
|
2018-04-17 01:26:38 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
2018-05-30 02:32:46 +00:00
|
|
|
@if($item->comments()->count() > 3)
|
|
|
|
<div class="more-comments">
|
2018-06-14 07:42:47 +00:00
|
|
|
<a class="text-muted" href="{{$item->url()}}">Load more comments</a>
|
2018-05-30 02:32:46 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<div class="comments">
|
|
|
|
@if(isset($showSingleComment) && $showSingleComment === true)
|
|
|
|
<p class="mb-0">
|
2018-06-01 21:04:33 +00:00
|
|
|
<span class="font-weight-bold pr-1">
|
|
|
|
<bdi>
|
|
|
|
<a class="text-dark" href="{{$status->profile->url()}}">{{$status->profile->username}}</a>
|
|
|
|
</bdi>
|
|
|
|
</span>
|
2018-06-14 00:54:27 +00:00
|
|
|
<span class="comment-text">{!! $item->rendered ?? e($item->caption) !!}</span>
|
2018-06-01 21:04:33 +00:00
|
|
|
<span class="float-right">
|
|
|
|
<a href="{{$status->url()}}" class="text-dark small font-weight-bold">
|
|
|
|
{{$status->created_at->diffForHumans(null, true, true, true)}}
|
|
|
|
</a>
|
|
|
|
</span>
|
2018-05-30 02:32:46 +00:00
|
|
|
</p>
|
|
|
|
@else
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="timestamp pt-1">
|
|
|
|
<p class="small text-uppercase mb-0"><a href="{{$item->url()}}" class="text-muted">{{$item->created_at->diffForHumans()}}</a></p>
|
2018-04-17 01:26:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer bg-white">
|
2018-05-30 02:32:46 +00:00
|
|
|
<form class="comment-form" method="post" action="/i/comment" data-id="{{$item->id}}" data-truncate="true">
|
2018-04-17 01:26:38 +00:00
|
|
|
@csrf
|
2018-05-30 02:32:46 +00:00
|
|
|
<input type="hidden" name="item" value="{{$item->id}}">
|
2018-06-09 05:45:06 +00:00
|
|
|
<input class="form-control status-reply-input" name="comment" placeholder="Add a comment…">
|
2018-04-17 01:26:38 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2018-06-06 05:02:28 +00:00
|
|
|
</div>
|