@extends('admin.layouts.app') @section('title', $section->exists ? 'Edit Section' : 'New Section') @section('content')
@csrf @if($section->exists) @method('PUT') @endif
Identity
@error('section_key')
{{ $message }}
@enderror
Content fields
@php $content = old('content', $section->content ?? []); @endphp @foreach(['heading' => 'Heading', 'subheading' => 'Subheading', 'body' => 'Body text', 'btn_text' => 'Button text', 'btn_url' => 'Button URL'] as $key => $label)
@if($key === 'body') @else @endif
@endforeach
Settings
@endsection