@extends('layouts.admin') @section('title', $config['label']) @section('eyebrow', $groupLabel) @section('heading', $config['label']) @section('content') @php $fields = $config['fields']; $hasLines = ! empty($config['has_lines']); @endphp

Add, edit or reorder items. Changes appear wherever this list is used on the site.

← Back
{{-- Add form --}}
@csrf

Add item

@foreach ($fields as $field)
in_array($field, ['body', 'image_path'], true)])> @if ($field === 'image_path') @elseif ($field === 'body') @else @endif
@endforeach @if ($hasLines)
@endif
{{-- Existing --}}
@forelse ($blocks as $block)
@csrf @method('PUT') @foreach ($fields as $field)
in_array($field, ['body', 'image_path'], true)])> @if ($field === 'image_path') @elseif ($field === 'body') @else @endif
@endforeach @if ($hasLines)
@endif
@empty

No items yet — add the first one above.

@endforelse
@endsection