@extends('backend.app') @section('title', 'Homepage CMS Settings') @push('style') @endpush @section('content')

Homepage CMS Settings

Configure Homepage CMS Sections

@php $data = $homepage->data ?? []; $section1 = $data['section_1'] ?? []; $section2 = $data['section_2'] ?? []; $section3 = $data['section_3'] ?? []; @endphp
@csrf
@if (!empty($section1['header_logo']))
Header Logo
@endif
@foreach ($section1['features'] ?? [] as $feature)
@endforeach

Pricing Details

@if (!empty($section1['hero_image']))
Hero Image
@endif
@for ($k = 0; $k < 4; $k++) @php $priceItem = $section1['pricing'][$k] ?? ['text' => '', 'price' => '']; @endphp
Pricing Option #{{ $k + 1 }}
@endfor

Rating Stats

@for ($i = 0; $i < 4; $i++) @php $stat = $section2['stats'][$i] ?? ['value' => '', 'label' => '']; @endphp
Stat Option #{{ $i + 1 }}
@endfor

4 Simple Process Steps

@for ($j = 0; $j < 4; $j++) @php $step = $section3['steps'][$j] ?? ['order' => $j + 1, 'title' => '', 'description' => '']; @endphp
Step #{{ $j + 1 }}
@endfor
@push('script') @endpush @endsection