@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
@elseif($field['type'] === 'pdf')
PDF only · Max 50 MB. Leave empty to keep current file.
@error('media.'.$field['key'])
{{ $message }}
@enderror
@if($value)
@endif
@else
@endif
@endforeach
@if($group === 'Pride')
@foreach($coreValues as $item)
@endforeach
@if($coreValues->isEmpty())
No core values yet — upload an image to add the first.
@endif
@endif
@if($group === 'Timeline')
@foreach($timeline as $item)
@endforeach
@if($timeline->isEmpty())
No timeline items yet — click Add Item.
@endif
@endif
@if($group === 'Philosophy')
@include('admin.home.partials.gallery-cards', [
'repeater' => 'philosophy',
'label' => 'Philosophy Items (663 × 630)',
'items' => $philosophy,
'empty' => 'No philosophy items yet — upload an image to add the first.',
'prefix' => 'philosophy',
'titleKey' => 'title',
'descKey' => 'description',
'imageKey' => 'image',
])
@endif
@if($group === 'Quality')
@foreach($quality as $item)
@endforeach
@if($quality->isEmpty())
No quality points yet — upload an image to add the first.
@endif
@endif
@if($group === 'Awards')
@foreach($awards as $item)
@endforeach
@if($awards->isEmpty())
No awards yet — upload an image to add the first.
@endif
@endif
@if($group === 'Credentials')
@foreach($credentials as $item)
@endforeach
@if($credentials->isEmpty())
No credentials yet — upload an image to add the first.
@endif
@endif