@extends('Component.layout') @section('title', 'CMS Management - Iqra Admin') @section('breadcrumb', 'CMS Management') @section('content')
{{-- Page Header --}}

CMS Management

Manage and translate frontpage sections directly.

Back to Dashboard
{{-- Success Alert --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Main Grid --}}
{{-- Left Column: Tab Menu --}}
Pages
@foreach($pageLabels as $pageKey => $pageLabel) {{ $pageLabel }} @endforeach
{{-- Right Column: Active Tab Editor Form --}}
@if(isset($groupedContents[$activeTab]))
@csrf @foreach($groupedContents[$activeTab] as $section => $fields)
{{-- Section Title --}}

Section: {{ str_replace('_', ' ', $section) }}

{{ count($fields) }} Field(s)
{{-- Fields list --}}
@foreach($fields as $field)
{{-- Field label --}} {{-- Three Languages Grid --}}
{{-- English --}}
English
@if($field->type === 'textarea') @else @endif
{{-- Hindi --}}
हिन्दी
@if($field->type === 'textarea') @else @endif
{{-- Gujarati --}}
ગુજરાતી
@if($field->type === 'textarea') @else @endif
@endforeach
@endforeach {{-- Actions Bar --}}
@else

No content blocks found for this page.

@endif
@endsection