57 lines
2.1 KiB
PHP
57 lines
2.1 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>@yield('title', config('app.name'))</title>
|
|
@hasSection('description')
|
|
<meta name="description" content="@yield('description')">
|
|
@endif
|
|
@hasSection('canonical')
|
|
<link rel="canonical" href="@yield('canonical')">
|
|
@endif
|
|
@fonts
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
</head>
|
|
<body>
|
|
<a class="skip" href="#inhalt">Zum Inhalt</a>
|
|
<header class="masthead">
|
|
<div class="masthead-inner">
|
|
<div class="wordmark">
|
|
<a href="{{ route('home') }}"><strong>Lara & Felix</strong></a>
|
|
<span>Stark im Alltag</span>
|
|
</div>
|
|
<nav class="site-nav" aria-label="Hauptnavigation">
|
|
@foreach (($navigation ?? collect())->where('placement', 'header') as $item)
|
|
@if ($item->href())
|
|
<a href="{{ $item->href() }}" @if(isset($page) && $item->page_id === $page->id) aria-current="page" @endif>{{ $item->label }}</a>
|
|
@endif
|
|
@endforeach
|
|
@auth
|
|
<a href="{{ route('member.dashboard') }}">Mitgliederbereich</a>
|
|
@else
|
|
<a href="{{ route('register') }}">Registrieren</a>
|
|
@endauth
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
<main id="inhalt" class="sheet">
|
|
@if (session('status'))
|
|
<p class="status" role="status">{{ session('status') }}</p>
|
|
@endif
|
|
@yield('content')
|
|
</main>
|
|
<footer class="site-footer">
|
|
<div class="site-footer-inner">
|
|
<nav aria-label="Rechtliches und Service">
|
|
@foreach (($navigation ?? collect())->where('placement', 'footer') as $item)
|
|
@if ($item->href())
|
|
<a href="{{ $item->href() }}">{{ $item->label }}</a>
|
|
@endif
|
|
@endforeach
|
|
</nav>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|