@extends($layout) @section('styles') {{-- --}} @endsection @section('content')
{{ isset($currentFolderMain->name) ? $currentFolderMain->name : '' }}
@if (!str_contains(request()->path(), 'folders/search'))
@if (request()->segment(2)) @if ($canRestore)   Restore @endif @else @endif
@endif
{{--
@csrf
--}}
@if (session('success')) @endif @if (session('error')) @endif {{--
@if (session('success')) @endif
@if (session('error')) @endif
--}} @if (/* optional($folders)->count() > 0 || optional($videos)->count() > 0 */1)
@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.

@endif --}}
@else

No folders or files found.

@endif
@endsection @section('script') {{-- --}} @endsection