@foreach($fields as $field)
@php $value = $val($field['key'], $field['default'] ?? ''); @endphp
@if($field['type'] === 'textarea')
@elseif($field['type'] === 'image')
@if($value)
![{{ $field['label'] }}]({{ $imageUrl($value) }})
@endif
@else
@endif
@endforeach
@if($group === 'Home Loan')
@include('admin.home.partials.gallery-cards', [
'repeater' => 'partners',
'label' => 'Partner Banks & Lenders (346 × 162)',
'items' => $partners,
'empty' => 'No partners yet — upload a logo to add the first.',
'prefix' => 'partner',
'titleKey' => 'title',
'descKey' => 'description',
'imageKey' => 'image',
'hideDescription' => true,
])
@endif
@if($group === 'NRI Zone')
@include('admin.home.partials.gallery-cards', [
'repeater' => 'nri',
'label' => 'NRI Support Cards (240 × 240)',
'items' => $nriItems,
'empty' => 'No NRI items yet — upload an icon to add the first.',
'prefix' => 'nri',
'titleKey' => 'title',
'descKey' => 'description',
'imageKey' => 'image',
])
@endif
@if($group === 'After Sales')
@include('admin.home.partials.gallery-cards', [
'repeater' => 'support',
'label' => 'Support Features (193 × 193)',
'items' => $supportItems,
'empty' => 'No support items yet — upload an icon to add the first.',
'prefix' => 'support',
'titleKey' => 'title',
'descKey' => 'description',
'imageKey' => 'image',
])
@endif