@foreach($fields as $field)
@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 === 'Hero')
@foreach($banners as $item)
@endforeach
@if($banners->isEmpty())
No banners yet — upload a desktop image to add the first.
@endif
@endif
@if($group === 'Projects')
Project cards come from the Projects module. Only section text is edited here.
@elseif($group === 'News')
News items come from the News page. Only section text is edited here.
@elseif($group === 'Blog')
Blog posts come from the Blog page. Only section text is edited here.
@endif
@if($group === 'Promise')
@include('admin.home.partials.gallery-cards', [
'repeater' => 'promises',
'label' => 'Promise Items (663 × 629)',
'items' => $promises,
'empty' => 'No promise items yet — upload an image to add the first.',
'prefix' => 'promise',
'titleKey' => 'title',
'descKey' => 'description',
'imageKey' => 'image',
])
@endif
@if($group === 'Lifestyle')
@include('admin.home.partials.gallery-cards', [
'repeater' => 'amenities',
'label' => 'Amenities (1031 × 735)',
'items' => $amenities,
'empty' => 'No amenities yet — upload an image to add the first.',
'prefix' => 'amenity',
'titleKey' => 'title',
'descKey' => 'description',
'imageKey' => 'image',
])
@endif
@if($group === 'Partners')
@foreach($partners as $item)
@endforeach
@if($partners->isEmpty())
No partners yet — upload a logo to add the first.
@endif
@endif
@if($group === 'Stories')
@foreach($stories as $item)
@endforeach
@if($stories->isEmpty())
No stories yet — upload a desktop image to add the first.
@endif
@endif
@if($group === 'Testimonials')
@foreach($families as $item)
@endforeach
@if($families->isEmpty())
No family quotes yet — click Add Quote.
@endif
@foreach($testimonials as $item)
@if(!empty($item->video_url))
@endif
@endforeach
@if($testimonials->isEmpty())
No video testimonials yet — upload a video to add the first.
@endif
@endif