@php $notAllowSource = ['iframe', 'google_drive']; @endphp
@if(!empty($filesWithoutChapter) and count($filesWithoutChapter)) @foreach($filesWithoutChapter as $video) @if($video->isVideo() and !in_array($video->storage, $notAllowSource)) @include('web.default.course.tabs.play_modal.video_item', ['video' => $video]) @endif @endforeach @endif @if(!empty($fileChapters) and count($fileChapters)) @foreach($fileChapters as $fileChapter) @if(!empty($fileChapter->files) and count($fileChapter->files)) @php $hasVideoForPlay = false; foreach($fileChapter->files as $video) { if ($video->isVideo() and !in_array($video->storage, $notAllowSource)) { $hasVideoForPlay = true; } } @endphp @if($hasVideoForPlay)

{{ $fileChapter->title }}

@foreach($fileChapter->files as $video) @if($video->isVideo() and !in_array($video->storage, $notAllowSource)) @include('web.default.course.tabs.play_modal.video_item', ['video' => $video]) @endif @endforeach
@endif @endif @endforeach @endif