word-salad/resources/views/layouts/writer.blade.php

42 lines
1.3 KiB
PHP

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/word-salad.css" rel="stylesheet" />
<link href="/word-salad-writer.css" rel="stylesheet" />
{{-- Include HTMX on the writer-side to enchance our interactivity --}}
<script src="/htmx.1.9.12.js"></script>
<script>
htmx.on("htmx:configRequest", (e)=> {
e.detail.headers["X-CSRF-TOKEN"] = '{{ csrf_token() }}';
})
</script>
<title>{{ config('blog.publishing_name') }} | @yield('title')</title>
</head>
<body>
<section id="error-bag">
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
</section>
<nav>
<a href="{{ route('dashboard') }}">Dashboard</a>
<a href="{{ route('new_article') }}">New Article</a>
<form action="{{ route('logout') }}" method="POST">
@csrf
<button type="submit">
Logout
</button>
</form>
</nav>
<main>
@yield('content', 'Nothing to see here.')
</main>
</body>
</html>