@extends('layouts.app') @section('title', __($label).' — '.config('platform.name', config('app.name'))) @section('page-title', __($label)) @section('page-subtitle', __('Edit per-locale content for this landing-page block.')) @section('content') @include('super-admin._nav')
@csrf {{-- Locale tabs --}}
@foreach($locales as $loc) @endforeach
@foreach($locales as $loc)
@foreach($schema as $field => $type) @if($type === 'localized' || $type === 'localized_text')
@if($type === 'localized_text') @else data[$field] ?? [])[$loc] ?? '') }}"> @endif
@endif @endforeach
@endforeach
{{-- Non-localized scalar/list fields --}} @php $scalarFields = collect($schema)->filter(fn ($t) => $t === 'string' || $t === 'list'); @endphp @if($scalarFields->isNotEmpty())

{{ __('Shared fields') }}

{{ __('These values are not translated. URLs, image references, and short list values.') }}

@foreach($scalarFields as $field => $type)
@if($type === 'list') @else @endif
@endforeach
@endif
@endsection