@extends('layouts.admin') @section('content') @php use App\Support\Ui; @endphp
@foreach($kpis as $k)@include('admin.partials.kpi', ['k' => $k])@endforeach
@php $hero = ($blocks['hero']->content ?? null) ?: $defaults['hero']; $sections = ($blocks['sections']->content ?? null) ?: $defaults['sections']; $features = ($blocks['features']->content ?? null) ?: $defaults['features']; $testimonials = ($blocks['testimonials']->content ?? null) ?: $defaults['testimonials']; $faqs = ($blocks['faqs']->content ?? null) ?: $defaults['faqs']; $iconOptions = ['shield','mapPin','card','book','vote','bag','bolt','check','globe','star']; @endphp
@foreach(['home' => ['Home page', 'documents'], 'articles' => ['Articles', 'book'], 'mode' => ['Site mode', 'globe']] as $id => $meta) @endforeach
{{-- =============================== HOME PAGE =============================== --}}

Hero

The first thing visitors see. Edit the eyebrow, headline and lead paragraph.

{!! Ui::icon('globe') !!} View site
@csrf
Eyebrow
Small label above the headline.
Headline
Lead paragraph

Section headings

The heading shown above each block on the home page.

@csrf @foreach(['how_title' => 'How it works', 'features_title' => 'Features', 'pricing_title' => 'Pricing', 'testimonials_title' => 'Testimonials', 'faq_title' => 'FAQ', 'cta_title' => 'Call to action'] as $key => $label)
{{ $label }}
@endforeach

Feature cards

The six-up grid describing the platform. Leave a title blank to remove that card.

@csrf
@csrf @foreach($features as $i => $f)
{{ $i + 1 }}
@endforeach {{-- one spare empty row to add a card --}}
+

Testimonials

Short quotes shown near the bottom of the page. Leave a quote blank to remove it.

@csrf
@csrf @foreach(array_merge($testimonials, [['quote'=>'','name'=>'','role'=>'']]) as $i => $t)
{{ $i < count($testimonials) ? $i + 1 : '+' }}
@endforeach

FAQ

Questions and answers in the accordion. Leave a question blank to remove it.

@csrf
@csrf @foreach(array_merge($faqs, [['q'=>'','a'=>'']]) as $i => $f)
{{ $i < count($faqs) ? $i + 1 : '+' }}
@endforeach
{{-- =============================== ARTICLES =============================== --}}

New article

Publish resource posts and announcements to the public site.

@csrf
Title
Category
Excerpt
Body
HTML is allowed.
Tags
Comma-separated.
Status

All articles

{{ $articles->total() }} total

@if($articles->count()) @foreach($articles as $a) @endforeach
TitleCategoryStatusUpdated
{{ $a->title }}
{{ \Illuminate\Support\Str::limit($a->excerpt, 60) }}
{{ $a->category ?: '—' }} {{ ucfirst($a->status) }} {{ $a->updated_at?->diffForHumans() }}
Edit
@csrf @method('PUT')
@csrf @method('DELETE')
{{ $articles->links() }}
@else

No articles yet.

@endif
{{-- =============================== SITE MODE =============================== --}}

Site mode

Control what the public sees. The admin console and mobile API stay online in every mode.

{{ \Illuminate\Support\Str::headline($siteMode) }}
@csrf
@foreach(['live' => ['Live', 'The full public website is available.'], 'coming_soon' => ['Coming soon', 'A launch teaser (still indexable) — use before go-live.'], 'under_construction' => ['Under construction', 'A friendly "we\'re improving things" holding page.'], 'maintenance' => ['Maintenance', 'A 503 maintenance page for short planned downtime.']] as $val => $meta) @endforeach
Custom message
Shown on the holding page (optional).
Expected back / launch date
e.g. "Monday 9am" or "March 2026" (optional).
@endsection