@foreach ($folders as $folder)
@endforeach
@if (!str_contains(request()->path(), 'folders/search'))
@foreach ($videos as $video)
@if ($video->file_type == 1)
@php
$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
@endif
@if ($video->file_type == 2)
@endif
@if ($video->file_type == 3)
@php
$thumbnailPath = $video->url;
$thumbnailUrl = Storage::disk('s3_thumbnails')->url($thumbnailPath);
$imageUrl = $video->signedUrl;
@endphp
@endif
@endforeach
@endif
@if (request()->is('trash'))
@foreach ($trashedFiles as $video)
@if ($video->file_type == 1)
@php
$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
@endif
@if ($video->file_type == 2)
@endif
@if ($video->file_type == 3)
@php
$thumbnailPath = $video->url;
$thumbnailUrl = Storage::disk('s3_thumbnails')->url($thumbnailPath);
$imageUrl = $video->signedUrl;
@endphp
@endif
@endforeach
@endif
{{-- @if (!($folders->count() > 0 || $videos->count() > 0))
No sub folders or files found.
@endif
@if (!($folders->count() > 0 || $videos->count() > 0))
No sub folders or files found.