@extends('admin.layouts.app') @section('title', admin_trans('country_translations')) @section('page-title', admin_trans('country_translations') . ' - ' . ($country->name ?? $country->code)) @section('content')
@if($country->flag_url) {{ $country->name }} Flag @else
{{ $country->flag_emoji ?? '🏳️' }}
@endif

{{ $country->name ?? $country->code }}

{{ $country->code }} • {{ $country->iso_code }} @if($country->dial_code) • {{ $country->dial_code }} @endif

{{ admin_trans('back_to_countries') }}

{{ admin_trans('manage_translations') }}

{{ count($translations) }}/{{ count($languages) }} {{ admin_trans('languages') }}
@if($languages->isEmpty()) {{ admin_trans('manage_languages') }} @else
@foreach($languages as $language) @php $translation = $translations->get($language->id); $hasTranslation = $translation !== null; @endphp
@csrf
{{ strtoupper(substr($language->code, 0, 2)) }}

{{ $language->name }}

{{ $language->native_name }}

{{ $hasTranslation ? admin_trans('update') : admin_trans('add') }} @if($hasTranslation)
{{ admin_trans('saved') }}
@endif
@endforeach
{{ admin_trans('translation_progress') }} {{ count($translations) }}/{{ count($languages) }}
@if(count($translations) === count($languages))
{{ admin_trans('all_translations_complete') }}
@endif
@endif

{{ admin_trans('quick_actions') }}

{{ admin_trans('edit_country_info') }} @if($country->iso_code)
@csrf @method('PATCH') {{ admin_trans('sync_from_api') }}
@endif {{ admin_trans('all_countries') }}

{{ admin_trans('quick_edit_country') }}

@csrf @method('PUT')
{{ admin_trans('cancel') }} {{ admin_trans('update') }}
@endsection @push('scripts') @endpush