@extends('layouts.main') @section('title') {{ __("Translate Countries") }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
@csrf

{{ __('Translate Country Names') }}

@if($languages->isNotEmpty())
@foreach($languages as $index => $language)
{{ __("Translations for") }}: {{ $language->name }} ({{ $language->code }})
@foreach($countries as $country)
@php $existingTranslation = $country->nameTranslations->firstWhere('language_id', $language->id); @endphp
@endforeach
@endforeach
@else

{{ __("No languages found.") }}

@endif
@endsection