@extends('layouts.dashboard') @section('title', __('Edit section')) @section('page_title', __($definition['name'])) @section('content')
@csrf @method('PUT')
{{ __($definition['name']) }}
{{ __($definition['description']) }}
{{ $section->status ? __('Visible') : __('Hidden') }}
{{ __('Text') }}
@if($section->section_type !== 'banner')
@endif @if(!empty($definition['has_content']))
@endif @if(!empty($definition['has_button']))
@endif
@php($contentFields = collect($definition['fields'] ?? [])->filter(fn ($f) => ($f['group'] ?? null) !== 'Appearance')) @php($appearanceFields = collect($definition['fields'] ?? [])->filter(fn ($f) => ($f['group'] ?? null) === 'Appearance')) @if($contentFields->isNotEmpty())
{{ __('Options') }}
@foreach($contentFields as $f) @include('admin.homepage._field', ['f' => $f, 'settings' => $settings]) @endforeach
@endif @if($appearanceFields->isNotEmpty())
{{ __('Appearance') }}
@foreach($appearanceFields as $f) @include('admin.homepage._field', ['f' => $f, 'settings' => $settings]) @endforeach
{{ __('Backgrounds alternate down the page by default. Give two neighbouring sections the same background only when you want them to read as one block.') }}
@endif
@if(!empty($definition['has_image']))
{{ __('Image') }}
@if($section->image)
@endif
{{ __('Optional. Falls back to a featured course thumbnail when empty.') }}
@endif
{{ __('About this section') }}

{{ __($definition['description']) }}

{{ __('Type') }}: {{ $section->section_type }}

@if(!empty($definition['requires_module']))

{{ __('Requires module') }}: {{ $definition['requires_module'] }} ({{ module_enabled($definition['requires_module']) ? __('enabled') : __('disabled') }})

@endif

{{ __('Visibility and order are managed from the builder list.') }}

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