@props(['fields', 'values' => []]) {{-- One tab per translatable language with inputs named translations[{locale}][{field}]; fields are field => [label, text|textarea|rich]. --}} @php($languages = \App\Models\Language::translatable()->get(['code', 'name', 'direction'])) @if ($languages->isEmpty())
{{ __('Activate more languages to translate this content.') }}
@else @php($firstWithError = $languages->first(fn ($language) => $errors->has("translations.{$language->code}.*"))){{ __('Leave a translation empty to show the original text in that language.') }}