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

Home Page Content

@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 @elseif($field['type'] === 'video') @if($value) @endif @elseif($field['type'] === 'file') @if($value) @endif @else @endif
@endforeach @if($group === 'Experiences')
Video Testimonials
Max 10 MB · MP4 / WEBM / MOV
@foreach($experienceVideos as $item)
@if(!empty($item->video_file)) @endif
@endforeach
@endif @if($group === 'Features')
Feature Icons (91 × 91 px) — click icon to change
@foreach($features as $item)
@if(!empty($item->image))@endif
@endforeach
@endif
@endforeach
@endsection @push('scripts') @endpush