@extends("admin.layouts.app") @section("title", __("admin.config.translations.title", ["name" => $language->name])) @section("content") {{-- Filters --}}
@if(request()->hasAny(['search', 'group'])) {{ __('common.actions.reset') }} @endif
{{-- Translation Table --}}
@csrf
@foreach($englishKeys as $i => $enKey) @php $fullKey = $enKey->group . '.' . $enKey->key; $targetValue = $targetTranslations[$fullKey] ?? ''; $isAutoTranslated = false; @endphp @endforeach
{{ __('admin.config.translations.group') }} {{ __('admin.config.translations.key') }} {{ __('admin.config.translations.source') }} {{ __('admin.config.translations.target', ['name' => $language->name]) }} {{ __('admin.config.translations.ai') }}
{{ $enKey->group }} {{ $enKey->key }} {{ $enKey->value }} @if($targetValue && $isAutoTranslated) @elseif($targetValue) @else @endif
{{ $englishKeys->withQueryString()->links() }} @if($locale !== 'en') @endif
@endsection