30 lines
822 B
PHP
30 lines
822 B
PHP
@php use Illuminate\Support\Facades\Auth; @endphp
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport"
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Document</title>
|
|
@vite('resources/css/app.css')
|
|
</head>
|
|
<body>
|
|
<p class="text-blue-800 bg-amber-300">Hello, World</p>
|
|
|
|
|
|
<form method="POST" action="/logout">
|
|
@csrf
|
|
@auth
|
|
<p>Logged in as: {{ Auth::user()->name }}</p>
|
|
<x-auth.form-button>Logout</x-auth.form-button>
|
|
@endauth
|
|
@guest()
|
|
<p><a href="/register">Register</a></p>
|
|
<p><a href="/login">Login</a></p>
|
|
@endguest
|
|
|
|
</form>
|
|
</body>
|
|
</html>
|