Files
Gw0bm/resources/views/layout2/main.blade.php
2024-06-10 11:34:04 +02:00

42 lines
1.3 KiB
PHP

@extends('profilelayout')
@section('novidcontent')
<div class="items">
@foreach($videos as $video)
<?php
$thumb = str_replace(".webm","",$video->file);
?>
<div style="position: relative;" class="main-item hasTag-{{$video->id}}">
@if(isset($q) && $video->hasAllTags($q))
<a href="/t/{{$q}}/{{$video->id}}">
<style>
.hasTag-{{$video->id}}::after {
content: "\f02b";
font: normal normal normal 14px/1 FontAwesome;
position: absolute;
bottom: 0;
left: 0;
padding: 5px;
color: #0bb568;
text-shadow: 1px 1px 1px black;
font-size: 1em;
pointer-events: none;
}
</style>
@else
<a href="/{{$video->id}}">
@endif
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
<img src="/thumbs/beta/{{$thumb}}.png">
@else
<img src="/small_404.gif" class="nothumb" />
@endif
</a>
</div>
@endforeach
</div>
<div class="page">
{!! $videos->render() !!}
</div>
@endsection