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

Services 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'] === 'textarea') @elseif($field['type'] === 'image')
@if($value){{ $field['label'] }}@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
@endforeach
@endsection @push('scripts') @endpush