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

59 lines
1.4 KiB
PHP
Raw 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>
<link rel="stylesheet" type="text/css" href="/css/style.css">
</head>
<body>
<nav class="c">
<div class="buttons round">
<x-nav-link class="orange">new</x-nav-link>
2024-08-07 16:14:32 +02:00
<x-nav-link class="rose">list</x-nav-link>
2024-08-07 15:33:25 +02:00
<x-nav-link class="pink">tags</x-nav-link>
2024-08-07 16:14:32 +02:00
<x-nav-link class="teal">collections</x-nav-link>
<x-nav-link class="gray">/</x-nav-link>
2024-08-07 15:33:25 +02:00
</div>
</nav>
2024-08-07 18:08:20 +02:00
@guest
2024-08-08 11:22:35 +02:00
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-08 11:22:35 +02:00
2024-08-09 10:37:35 +02:00
<form class="col c" method="post" name="logout_form" action="/logout">
2024-08-08 11:22:35 +02:00
@csrf
<button type="submit">Logout</button>
</form>
2024-08-07 18:08:20 +02:00
@endauth
2024-08-07 15:33:25 +02:00
<footer class="c">
<form class="buttons round c" method="get" name="search_form">
2024-08-07 16:14:32 +02:00
<input type="search" name="search" placeholder="search">
2024-08-07 15:33:25 +02:00
<button onclick="search_form.submit()"
class="gray" title="search"
2024-08-07 16:14:32 +02:00
><span class="hidden">search</span>
</button>
2024-08-08 11:22:35 +02:00
<x-nav-link class="orange">rss</x-nav-link>
2024-08-07 16:14:32 +02:00
</a>
2024-08-07 15:33:25 +02:00
</form>
</footer>
</body></html>