21 lines
1.5 KiB
PHP
21 lines
1.5 KiB
PHP
<div class="vidinfo">
|
|
<button title="Toggle Background" class="hidden-xs bg-toggle" id="togglebg">BG</button>
|
|
<div class="favbutton">
|
|
@if(auth()->check())
|
|
@if(auth()->user()->hasFaved($video->id))
|
|
<a id="fav" href="{{url($video->id . '/fav')}}">UNFAV</a>
|
|
@else
|
|
<a id="fav" href="{{url($video->id . '/fav')}}">FAV</a>
|
|
@endif
|
|
@else
|
|
<a href="{{url($video->id . '/fav')}}">FAVED</a>
|
|
@endif
|
|
</div>
|
|
<div style='word-break: break-word;'>@if($video->interpret) <strong>Artist:</strong> {{$video->interpret}}<br>@endif
|
|
@if($video->songtitle) <strong>Songtitle:</strong> {{$video->songtitle}}<br>@endif
|
|
@if($video->imgsource) <strong>Video Source:</strong> {{$video->imgsource}} <br>
|
|
@endif
|
|
<strong>Category:</strong> {{$video->category->name}}</div>
|
|
<span id="uploader">uploaded by <a style="color: white" href="{{ url('user/' . $video->user->username) }}">{!! $video->user->displayName() !!}</a></span> <time class="timeago" data-toggle="tooltip" data-placement="top" datetime="{{$video->created_at->toIso8601String()}}" title="{{$video->created_at->toIso8601String()}}"></time>@if(auth()->check() && (auth()->user()->can('edit_video') || auth()->user()->id == $video->user_id)) <a class="edit_video" href="#" data-toggle="modal" data-target="#webmeditmodal">[edit]</a>@endif @if(auth()->check() && auth()->user()->can('delete_video'))<a class="delete_video" href="#">[del]</a>@endif
|
|
</div>
|