dym-sh/resources/views/components/layout-dashboard.blade.php

51 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-08-07 15:33:25 +02:00
<!doctype html>
<html lang="en" prefix="og: http://ogp.me/ns#"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf8">
<title>{{ request()->path() }}</title>
2024-08-09 13:52:23 +02:00
<link rel="stylesheet" type="text/css" href="/css/dashboard.css">
2024-08-07 15:33:25 +02:00
</head>
<body>
<nav class="c">
2024-08-09 11:32:25 +02:00
<form method="get" action="/search">
<input type="search" name="q">
<button type="submit">search</button>
</form>
2024-08-09 13:52:23 +02:00
<a href="/articles">articles</a>
2024-08-09 11:32:25 +02:00
<a href="/new">new</a>
<a href="/categories">categories</a>
<a href="/collections">collections</a>
<a href="/tags">tags</a>
2024-08-07 15:33:25 +02:00
2024-08-09 11:32:25 +02:00
@auth
<form class="col c" method="post" name="logout_form" action="/logout">
@csrf
<button type="submit">Logout</button>
</form>
@endauth
</nav>
2024-08-07 15:33:25 +02:00
2024-08-09 11:32:25 +02:00
<main>
2024-08-07 18:08:20 +02:00
@guest
2024-08-09 10:37:35 +02:00
<form class="col c" method="post" name="login_form" action="/login">
2024-08-07 18:08:20 +02:00
@csrf
2024-08-08 11:22:35 +02:00
<x-input type="email" :value="old('email')"
title="E-Mail"
required>email</x-input>
<x-input type="password"
title="Password"
required>password</x-input>
<button type="submit">Login</button>
2024-08-09 10:37:35 +02:00
<a href="/register">Register</a>
2024-08-07 15:33:25 +02:00
</form>
2024-08-07 18:08:20 +02:00
@endguest
2024-08-07 15:33:25 +02:00
2024-08-07 18:08:20 +02:00
@auth
2024-08-07 15:33:25 +02:00
{{ $slot }}
2024-08-07 18:08:20 +02:00
@endauth
2024-08-09 11:32:25 +02:00
</main>
2024-08-07 15:33:25 +02:00
2024-08-09 11:32:25 +02:00
</body></html>