@extends('admin.layouts.app') @section('title', 'Homepage Editor') @section('content')

Homepage Editor

@csrf
@foreach ($sections as $key => $section)
{{ $section['label'] }}
@if ($section['type'] === 'repeater') @forelse ($section['items'] as $index => $item)
@foreach ($section['fields'] as $field)
@if (($field['type'] ?? 'text') === 'textarea') @else @endif
@endforeach
@empty

No entries yet.

@endforelse @else @foreach ($section['fields'] as $field)
@if (($field['type'] ?? 'text') === 'textarea') @else @endif
@endforeach @endif
@endforeach
@endsection