Files
Gw0bm/resources/views/layout3/main.blade.php
jkhsjdhjs 7a62b01027 fix thumbnail generation
fix hardcoded paths
a lot of minor fixes
2021-01-21 19:55:42 +00:00

24 lines
576 B
PHP

@extends('profilelayout')
@section('novidcontent')
<div class="items">
@foreach($videos as $video)
<?php
$thumb = str_replace(".webm","",$video->file);
?>
<div class="main-item">
<a href="/{{$video->id}}">
@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