@extends('layouts.admin') @section('title', 'Edit About Page') @section('page-title', 'about page') @push('styles') @endpush @section('content') @php $imageUrl = fn ($path) => asset_image($path); $val = fn ($key, $default = '') => old('content.'.$key, $values[$key] ?? $default); @endphp

About Page

@csrf @method('PUT')
    @foreach($groups as $group => $fields)
  • {{ $group }}
  • @endforeach
@foreach($groups as $group => $fields)
@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'] }}@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')
Core Values (137 × 137)
@foreach($coreValues as $item)
@if(!empty($item->image))@endif
@endforeach @if($coreValues->isEmpty())
No core values yet — upload an image to add the first.
@endif
@endif @if($group === 'Timeline')
Timeline Items
@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')
Quality Points (124 × 124)
@foreach($quality as $item)
@if(!empty($item->image))@endif
@endforeach @if($quality->isEmpty())
No quality points yet — upload an image to add the first.
@endif
@endif @if($group === 'Awards')
Awards (1030 × 696)
@foreach($awards as $item)
@if(!empty($item->image))@endif
@endforeach @if($awards->isEmpty())
No awards yet — upload an image to add the first.
@endif
@endif @if($group === 'Credentials')
Credentials (172 × 158)
@foreach($credentials as $item)
@if(!empty($item->image))@endif
@endforeach @if($credentials->isEmpty())
No credentials yet — upload an image to add the first.
@endif
@endif
@endforeach
@endsection @push('scripts') @endpush