@foreach($cssFiles as $cssFile) @endforeach {!! $headHtml !!} {!! $themeCss !!} @php $cmsSectionGroups = [ ['key' => 'featuredNews', 'label' => 'News', 'color' => '#0f766e', 'action' => 'Read more', 'items' => collect($sections['featuredNews'] ?? [])], ['key' => 'services', 'label' => 'Service', 'color' => '#0ea5e9', 'action' => 'View service', 'items' => collect($sections['services'] ?? [])], ['key' => 'teams', 'label' => 'Team', 'color' => '#4338ca', 'action' => 'View profile', 'items' => collect($sections['teams'] ?? [])], ['key' => 'projects', 'label' => 'Project', 'color' => '#2563eb', 'action' => 'View project', 'items' => collect($sections['projects'] ?? [])], ['key' => 'events', 'label' => 'Event', 'color' => '#7c3aed', 'action' => 'Event details', 'items' => collect($sections['events'] ?? [])], ['key' => 'galleries', 'label' => 'Gallery', 'color' => '#be123c', 'action' => 'Open gallery', 'items' => collect($sections['galleries'] ?? [])], ]; $mappedSectionKeys = collect($mappedSections ?? []); $appendSectionGroups = collect($cmsSectionGroups) ->reject(fn ($group) => $mappedSectionKeys->contains($group['key'])) ->values(); $hasCmsSectionItems = collect($cmsSectionGroups)->contains(fn ($group) => $group['items']->isNotEmpty()); $hasAppendSectionItems = $appendSectionGroups->contains(fn ($group) => $group['items']->isNotEmpty()); @endphp @if($bodyHtml) {!! $bodyHtml !!} @if($hasAppendSectionItems)

CMS Content

Live content from your admin

@foreach($appendSectionGroups as $group) @foreach($group['items'] as $item)
@if(!empty($item['image'])) {{ $item['title'] }} @endif

{{ $group['label'] }}

{{ $item['title'] }}

{{ $item['summary'] }}

{{ $group['action'] }}
@endforeach @endforeach
@endif @else

{{ $themeName }}

{{ $page === 'home' ? \App\Models\Setting::get('site_name', config('app.name')) : \Illuminate\Support\Str::title(str_replace('-', ' ', $page)) }}

{{ $description }}

Contact Us Latest Updates

CMS Content

Highlights from the system

@foreach($cmsSectionGroups as $group) @foreach($group['items'] as $item)
@if(!empty($item['image'])) {{ $item['title'] }} @endif

{{ $group['label'] }}

{{ $item['title'] }}

{{ $item['summary'] }}

{{ $group['action'] }}
@endforeach @endforeach @if(!$hasCmsSectionItems)

Ready

This theme is active

Add news, services, team members, projects, events, galleries, and vacancies in the admin area to fill this generated page with live CMS content.

@endif
@endif @foreach($jsFiles as $jsFile) @endforeach