{{ __('Header Section') }}

@csrf
@php $header = $webSettings->firstWhere('key', 'header')->decoded_value ?? null; $menuNameCounter = 0; $buttonNameCounter = 0; @endphp

{{ __('Logo') }}

@if ($header && isset($header->logo))
@endif
{{-- banner section --}}

{{ __('Banner Section') }}

@csrf @php $banner = $webSettings->firstWhere('key', 'banner')->decoded_value ?? null; $imageGroupCounter = 0; $appStoreCounter = 0; @endphp
{{ __('Image Group') }}
@if (!empty($banner->image_group)) @foreach ($banner->image_group as $index => $image) @php $imageGroupCounter = max($imageGroupCounter, $index); @endphp
@endforeach @endif
{{ __('Add Image') }}
{{ __('Play Store Links') }}
@if (!empty($banner->app_store)) @foreach ($banner->app_store as $index => $store) @php $appStoreCounter = max($appStoreCounter, $index); @endphp
@endforeach @endif
{{ __('Add Store') }}
{{-- choose section --}}

{{ __('Choose Section') }}

@php $choose = $webSettings->firstWhere('key', 'choose_section')->decoded_value ?? null; $items = $choose->list_item ?? []; @endphp
@csrf
{{ __('List Items') }}
@foreach ($items as $i => $item)
@endforeach
{{ __('Add Item') }}
{{-- app section --}}

{{ __('App Section') }}

@php $app = $webSettings->firstWhere('key', 'app_section')->decoded_value ?? null; $appSectionStoreCounter = 0; @endphp
@csrf
{{ __('Play Store Links') }}
@if (!empty($app->app_store)) @foreach ($app->app_store as $index => $store) @php $appSectionStoreCounter = max($appSectionStoreCounter, $index); @endphp
@endforeach @endif
{{ __('Add Store') }}
{{-- feature section --}}

{{ __('Feature Section') }}

@php $feature = $webSettings->firstWhere('key', 'feature_section')->decoded_value ?? null; @endphp
@csrf
{{-- Title --}}

{{ __('Feature Cards') }}

@foreach ($feature->feature_card as $i => $card)
@php $thumb = $card->icon_image; if (!$thumb) { $cardIcon = asset('assets/images/documents.png'); } elseif (Str::startsWith($thumb, ['http://', 'https://'])) { $cardIcon = $thumb; } elseif (Str::startsWith($thumb, 'assets/')) { $cardIcon = asset($thumb); } else { $cardIcon = asset('storage/' . $thumb); } @endphp
@endforeach
{{ __('Add Card') }}
{{-- Discover section --}}

{{ __('Discover Section') }}

@php $discover = $webSettings->firstWhere('key', 'discover_section')->decoded_value ?? null; @endphp
@csrf {{-- Thumbnail --}}
{{-- Title --}}
{{-- Who we are section --}}

{{ __('Who We Are Section') }}

@php $whoWeAre = $webSettings->firstWhere('key', 'who_we_are')->decoded_value ?? null; @endphp @foreach ($whoWeAre as $who)
@csrf
@endforeach
{{-- Register section --}}

{{ __('Register Section') }}

@php $register = $webSettings->firstWhere('key', 'register_section')->decoded_value ?? null; $registerNameCounter = 0; @endphp
@csrf {{-- Thumbnail --}}
{{-- Title --}}
@foreach ($register->button as $button) @php $buttonNameKey = collect($button) ->keys() ->first(fn($key) => Str::startsWith($key, 'button_name_')); $buttonLinkKey = collect($button) ->keys() ->first(fn($key) => Str::startsWith($key, 'button_link_')); $registerButtonNameCounter = max( $registerNameCounter, (int) filter_var($buttonNameKey, FILTER_SANITIZE_NUMBER_INT), ); @endphp
@endforeach
{{ __('Add button') }}
{{-- for testimonial section --}}

{{ __('Testimonial Section') }}

@php $testimonial = $webSettings->firstWhere('key', 'testimonial_section')->decoded_value ?? null; @endphp
@csrf {{-- Title --}}

{{ __('User Testimonials') }}

@foreach ($testimonial->testimonial_content as $i => $testimonialData) @php $nameField = 'title_' . ($i + 1); $ratingField = 'rating_' . ($i + 1); $avatarField = 'avatar_image_' . ($i + 1); $dateField = 'date_' . ($i + 1); $descriptionField = 'description_' . ($i + 1); $formattedDate = \Carbon\Carbon::createFromTimestamp($testimonialData->{$dateField})->format('Y-m-d'); @endphp
@if ($i >= 0)
@endif
@endforeach
{{ __('Add Testimonial') }}
{{-- for accordian section --}}

{{ __('Faq Section') }}

@php $accordian = $webSettings->firstWhere('key', 'accordian_section')->decoded_value ?? null; @endphp
@csrf
{{-- Title --}}
@foreach ($accordian->accordian_items as $i => $accordianData) @php $titleField = 'title_' . ($i + 1); $contentField = 'content_' . ($i + 1); @endphp
@if ($i >= 0)
@endif
@endforeach
{{ __('Add Faq') }}
{{-- for footer section --}}

{{ __('Footer Section') }}

@php $footer = $webSettings->firstWhere('key', 'footer')->decoded_value ?? null; @endphp
@csrf
{{ __('Add footer link') }}
{{ __('Add footer icon') }}
{{ __('Add Link') }}