@extends($layout) @section('content')
{{ __('My Videos') }}
@if($videos->isEmpty())

No videos found.

@else @foreach ($videos as $video) @php $date = \Carbon\Carbon::parse($video->created_at); $timeAgoText = $date->format('F j, Y'); $baseFilename = str_replace('.mp4', '', $video->url); $thumbnailUrls = []; for ($i = 0; $i < $video->no_of_thumbnails; $i++) { $thumbnailUrls[] = Storage::disk('s3_thumbnails')->url( "{$baseFilename}" . ($video->no_of_thumbnails > 1 ? "-{$i}" : '') . '.jpg', ); } @endphp @endforeach @endif
@if ($videos->hasMorePages()) @endif
@endsection