Files
app3/resources/views/admin/login.blade.php
2026-01-12 11:37:40 +00:00

31 lines
989 B
PHP

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Вход в админку</title>
<style>
body { font-family: sans-serif; max-width: 400px; margin: 50px auto; }
input { width: 100%; padding: 8px; margin: 5px 0; }
button { width: 100%; padding: 10px; background: #42b983; color: white; border: none; cursor: pointer; }
.error { color: red; }
</style>
</head>
<body>
<h1>Вход в админку</h1>
@if ($errors->any())
<div class="error">
@foreach ($errors->all() as $error)
<p>{{ $error }}</p>
@endforeach
</div>
@endif
<form method="POST" action="{{ route('admin.login') }}">
@csrf
<input type="email" name="email" placeholder="Email" required value="{{ old('email') }}">
<input type="password" name="password" placeholder="Пароль" required>
<button type="submit">Войти</button>
</form>
</body>
</html>