@extends('user::layouts.backend-master') @section('breadcrumb_title', $pageTitle) @section('breadcrumb_subtitle', trans('translate.Manage your site configurations')) @section('content')

{{ $pageTitle }}

{{ trans('translate.Configure your website sections and content') }}

@if (isset($error)) @endif
@if ($activeTheme)

{{ $activeTheme['title'] ?? '' }}

{{ trans('translate.Active') }}
@endif
@if (empty($sectionsByPage))

{{ trans('translate.No configurations found') }}

{{ trans('translate.Start by creating your first configuration section') }}

@else @foreach ($sectionsByPage as $page => $sections)
@foreach ($sections as $key => $section)
@if (isset($section['content']) || isset($section['element']))
{{ trans('translate.Fields') }}
@php $fields = $section['content'] ?? ($section['element'] ?? []); $fieldTypes = collect($fields) ->map(fn($field) => $field['type'] ?? 'text') ->unique(); @endphp @foreach ($fieldTypes->take(3) as $type) {{ $type }} @endforeach @if ($fieldTypes->count() > 3) +{{ $fieldTypes->count() - 3 }} @endif
@endif {{-- Screenshot Preview --}} @php $screenshot = $section['screenshot'] ?? null; $screenshotUrl = $screenshot ? asset($screenshot) : asset('backend/assets/img/placeholder-image.png'); @endphp
@endforeach
@endforeach @endif
@endsection @push('styles') @endpush @push('scripts') @endpush