@if(count($languages) > 1)
        
            
            
                @foreach($languages as $code => $name)
                
                @endforeach
            
        
        @endif
        
        
            
            
            
        
        
        @if(count($languages) > 1 && array_filter($translations))
        
            
            
                @foreach($translations as $lang => $text)
                @if(!empty($text))
                
                    
                        {{ $languages[$lang] ?? strtoupper($lang) }}
                    
                    {{ $text }}
                    @if($lang !== $globalLocale)
                    
                    @endif
                
 
                @endif
                @endforeach
            
 
        @endif