@foreach ($videos as $index => $video)
        
        
            
        
    @endforeach
    
        @foreach ($videos as $index => $video)
            @php
                $prev = $index === 0 ? count($videos) - 1 : $index - 1;
                $next = $index === count($videos) - 1 ? 0 : $index + 1;
            @endphp
            
                
                
            
        @endforeach
    
 
    
        @foreach ($videos as $index => $video)
            
        @endforeach
    
 
@else
    No hay videos disponibles.
@endif