31 lines
989 B
PHP
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: #404040; 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> |