@if(!auth()->user()?->isAdmin())

Admin privileges required to edit landing content.

@else @php $landingTab = request('landing_tab', 'hero'); $tabs = [ 'hero' => 'Hero', 'stats' => 'Stats', 'services-block' => 'Services block', 'service-cards' => 'Service cards', 'contact' => 'Contact', 'login-panel' => 'Login panel', ]; @endphp

Landing page content

View landing page ↗ View login page ↗

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@foreach($tabs as $id => $label) {{ $label }} @endforeach
@if($landingTab === 'hero')

Hero

@if($landingHero)
@csrf
@else

Landing hero table not found. Run migrations.

@endif @endif @if($landingTab === 'stats')

Stats

@csrf
@foreach($landingStats ?? [] as $s) @endforeach
LabelValueSortActions
{{ $s->label }} {{ $s->value }} {{ $s->sort_order }}
@csrf
@csrf
@endif @if($landingTab === 'services-block')

Services block

@if($landingServicesBlock)
@csrf
@foreach([1,2,3] as $i)
@endforeach
@else

Services block table not found.

@endif @endif @if($landingTab === 'service-cards')

Service cards

@csrf
@foreach($landingServiceCards ?? [] as $c) @endforeach
TitleDescriptionLinkActions
{{ $c->title }} {{ Str::limit($c->description, 40) }} {{ Str::limit($c->link_url, 30) }}
@csrf
@csrf
@endif @if($landingTab === 'contact')

Contact

@if($landingContact)
@csrf
@else

Contact table not found.

@endif @endif @if($landingTab === 'login-panel')

Login page – right panel

This content appears on the right side of the login page. Use **text** in the description for bold.

@csrf
@endif
@endif