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

Joint Development Page

@csrf @method('PUT')
    @foreach($groups as $group => $fields)
  • {{ $group }}
  • @endforeach
@foreach($groups as $group => $fields)
@foreach($fields as $field) @if($field['key'] === 'benefits_note') @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'] }}@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')
Testimonial Videos (thumbnail, status, YouTube link) — drag ⋮⋮ to reorder
@foreach($testimonials as $item)
⋮⋮
@if(!empty($item->image))@endif
@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')
FAQ Items
@foreach($faqs as $item)
@endforeach @if($faqs->isEmpty())
No FAQs yet — click Add FAQ.
@endif
@endif
@endforeach
@endsection @push('scripts') @endpush