@props([ 'code', 'title', 'description', 'primaryHref' => null, 'primaryLabel' => null, 'secondaryHref' => null, 'secondaryLabel' => null, 'pageTitle' => null, ]) @php $site = app(\App\Support\Site\SiteSettings::class); $user = auth()->user(); $canDashboard = $user instanceof \App\Models\User && $user->allows('dashboard.access'); $canLab = $user instanceof \App\Models\User; $primaryHref ??= route('home'); $primaryLabel ??= __('messages.Back home'); app(\App\Support\Seo\PageSeo::class)->page([ 'title' => $pageTitle ?? $title, 'description' => $description, 'index' => false, 'follow' => false, ]); @endphp
@unless ($site->logoUrl()) {{ $site->name() }} @endunless

{{ $code }}

{{ $title }}

{{ $description }}

{{ $primaryLabel }} @if ($secondaryHref && $secondaryLabel) {{ $secondaryLabel }} @elseif ($canLab && $code !== '403') {{ __('messages.Open Lab') }} @elseif ($canDashboard) {{ __('messages.Dashboard') }} @endif