@extends($layout) @section('styles') @endsection @section('content')
{{ isset($currentFolderMain->name) ? $currentFolderMain->name : '' }}
@if (session('success')) @endif
@if (session('error')) @endif
@csrf @if ($folders->count() > 0 || $videos->count() > 0)
@foreach ($folders as $key => $folder) @endforeach @if ($videos) @foreach ($videos as $key => $video) @endforeach @endif
Name Edit
{{ $folder->name }}
Folder
Folder
user_id != $auth_user_id && !$isAdmin) disabled @endif> user_id != $auth_user_id && !$isAdmin) disabled @endif> {{-- --}} user_id != $auth_user_id && !$isAdmin) disabled @endif>
{{ $video->title }}
@if ($video->file_type == 1) Video @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) Document @php $thumbnailPath = $video->url; $thumbnailUrl = Storage::disk('s3_thumbnails')->url($thumbnailPath); $imageUrl = $video->signedUrl; $thumbnailPathJpg = pathinfo($thumbnailPath, PATHINFO_DIRNAME) . '/' . pathinfo($thumbnailPath, PATHINFO_FILENAME) . '.jpg'; $thumbnailUrlJpg = Storage::disk('s3_thumbnails')->url($thumbnailPathJpg); @endphp @endif @if ($video->file_type == 3) @php $thumbnailPath = $video->url; $thumbnailUrl = Storage::disk('s3_thumbnails')->url($thumbnailPath); $imageUrl = $video->signedUrl; @endphp @endif
user_id != $auth_user_id && !$isAdmin) disabled @endif> @if($video->user_id == $auth_user_id || $isAdmin) Copy @endif
user_id != $auth_user_id && !$isAdmin) disabled @endif> @if($video->user_id == $auth_user_id || $isAdmin) Copy @endif
@if($video->user_id == $auth_user_id || $isAdmin) Copy @endif
user_id != $auth_user_id && !$isAdmin) disabled @endif> @if($video->user_id == $auth_user_id || $isAdmin) Copy @endif
@else

No sub folders or files found.

@endif
@endsection @section('script') @endsection