@extends('user::layouts.backend-master') @section('breadcrumb_title', $pageTitle) @section('breadcrumb_subtitle', trans('translate.Configure section settings')) @section('content')

{{ $pageTitle }}

{{ $section['description'] ?? trans('backend::translate.Configure this section settings') }}

@if ($themeInfo)
{{ $themeInfo['title'] ?? $themeInfo['name'] }}
@endif
{{ trans('backend::translate.Back to List') }}
{{ trans('backend::translate.Configuration Settings') }}
@csrf @if ($configuration?->id) @method('PUT') @endif
0 of 0 fields completed
@if ($contentType === 'content' && isset($section['content'])) @php $fields = $section['content']; @endphp @elseif($contentType === 'element' && isset($section['element'])) @php $fields = $section['element']; @endphp @else @php $fields = []; @endphp @endif @if (!empty($fields))
@foreach ($fields as $fieldName => $fieldConfig) @if (is_array($fieldConfig)) @php $fieldType = $fieldConfig['type'] ?? 'text'; $fieldValue = $dataValues[$fieldName] ?? null; $fieldProps = [ 'name' => $fieldName, 'label' => $fieldConfig['label'] ?? str_replace('_', ' ', ucfirst($fieldName)), 'value' => $fieldValue, 'required' => $fieldConfig['required'] ?? false, 'help' => $fieldConfig['help'] ?? null, 'placeholder' => $fieldConfig['placeholder'] ?? null, ]; // Add type-specific props if (isset($fieldConfig['options'])) { $fieldProps['options'] = $fieldConfig['options']; } if (isset($fieldConfig['fields'])) { $fieldProps['fields'] = $fieldConfig['fields']; } if (isset($fieldConfig['min'])) { $fieldProps['min'] = $fieldConfig['min']; } if (isset($fieldConfig['max'])) { $fieldProps['max'] = $fieldConfig['max']; } if (isset($fieldConfig['size'])) { $fieldProps['size'] = $fieldConfig['size']; } @endphp
@include( "backend::site-configuration.fields.{$fieldType}", $fieldProps)
@endif @endforeach
@else
{{ trans('backend::translate.No fields configured') }}

{{ trans('backend::translate.This section has no configurable fields') }}

@endif
{{ trans('backend::translate.Last saved') }}: {{ $configuration?->updated_at?->diffForHumans() ?? trans('translate.Never') }}
@php $screenshotPath = $section['screenshot'] ?? null; $screenshotUrl = $screenshotPath ? asset($screenshotPath) : asset('backend/assets/img/placeholder-image.png'); @endphp
{{ trans('backend::translate.Language Settings') }}
{{ $editedLanguage?->name }}
{{ $editedLanguage?->name ?? 'English' }} {{ strtoupper($languageCode) }}
@foreach ($languages as $language) {{ $language->name }} @endforeach
@if ($languageCode !== 'en')
{{ trans('backend::translate.Translation Mode') }}

{{ trans('translate.You are editing the translation for') }} {{ $editedLanguage?->name }}

@endif
{{ trans('backend::translate.Configuration Info') }}
{{ $sectionKey }}
{{ ucfirst($contentType) }}
{{ ucfirst($section['page'] ?? 'global') }}
@if (isset($section['order']))
{{ $section['order'] }}
@endif @if ($configuration)
{{ $configuration->updated_at->format('M d, Y H:i') }}
@endif
{{ trans('backend::translate.Tips & Help') }}
{{ trans('backend::translate.Images') }}

{{ trans('backend::translate.Upload high-quality images for better visual impact') }}

{{ trans('backend::translate.Translations') }}

{{ trans('backend::translate.Configure in English first, then translate to other languages') }}

{{ trans('backend::translate.Auto-save') }}

{{ trans('backend::translate.Changes are automatically saved as you type') }}

@endsection @push('styles') @endpush @push('scripts') @endpush