@extends('layouts.app') @section('title', 'Translate — ' . $recordLabel) @section('page_title', 'Translate Content') @section('page_subtitle', $recordLabel) @section('content') @php $inp = 'w-full border-[0.5px] border-gray-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-teal-500/20 focus:border-teal-400'; @endphp
Back {{-- Locale tabs --}}
@foreach($locales as $code => $name) {{ $name }} @endforeach
@if(session('success'))

{{ session('success') }}

@endif

Editing the {{ \App\Models\WebsiteContent::LOCALES[$locale] ?? $locale }} version. English is shown for reference — leave a field blank to fall back to English on the public site.

@csrf @foreach($fields as $field => $label)

English (reference)

{{ $model->baseValue($field) ?: '—' }}

{{ \App\Models\WebsiteContent::LOCALES[$locale] ?? $locale }}

@endforeach
Cancel
@endsection