@foreach($fields as $field)
@if($field['key'] === 'benefits_note')
{{ $field['default'] }}
@continue
@endif
@php $value = $val($field['key'], $field['default'] ?? ''); @endphp
@if($field['type'] === 'html')
@elseif($field['type'] === 'textarea')
@elseif($field['type'] === 'image')
@if($value)
![{{ $field['label'] }}]({{ $imageUrl($value) }})
@endif
@else
@endif
@endforeach
@if($group === 'Benefits')
@include('admin.home.partials.gallery-cards', [
'repeater' => 'benefits',
'label' => 'Benefit Cards (195 × 195)',
'items' => $benefits,
'empty' => 'No benefits yet — upload an image to add the first.',
'prefix' => 'benefit',
'titleKey' => 'title',
'descKey' => 'description',
'imageKey' => 'image',
])
@endif
@if($group === 'Testimonials')
@foreach($testimonials as $item)
@endforeach
@if($testimonials->isEmpty())
No testimonials yet — upload a thumbnail to add the first.
@endif
@endif
@if($group === 'Process')
@include('admin.home.partials.gallery-cards', [
'repeater' => 'process',
'label' => 'Process Steps (176 × 176)',
'items' => $process,
'empty' => 'No process steps yet — upload an image to add the first.',
'prefix' => 'process',
'titleKey' => 'title',
'descKey' => 'description',
'imageKey' => 'image',
])
@endif
@if($group === 'Commitment')
@include('admin.home.partials.gallery-cards', [
'repeater' => 'commitments',
'label' => 'Commitment Slides (663 × 629)',
'items' => $commitments,
'empty' => 'No commitments yet — upload an image to add the first.',
'prefix' => 'commitment',
'titleKey' => 'title',
'descKey' => 'description',
'imageKey' => 'image',
])
@endif
@if($group === 'FAQ')
@foreach($faqs as $item)
@endforeach
@if($faqs->isEmpty())
No FAQs yet — click Add FAQ.
@endif
@endif