table with hotels
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
<!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>
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('content')
|
||||
<div style="max-width: 400px; margin: 0 auto;">
|
||||
<h2>Вход в админку</h2>
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="error">
|
||||
@foreach ($errors->all() as $error)
|
||||
<p>{{ $error }}</p>
|
||||
@endforeach
|
||||
<div class="alert alert-error" style="background: #ffeaea; color: #c0392b; padding: 12px; border-radius: 4px; border-left: 4px solid #e74c3c; margin-bottom: 20px;">
|
||||
Неверные данные.
|
||||
</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>
|
||||
<div style="margin-bottom: 15px;">
|
||||
<label for="email" style="display: block; margin-bottom: 6px; font-weight: 500;">Email</label>
|
||||
<input type="email" name="email" id="email" required
|
||||
style="width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;"
|
||||
value="{{ old('email') }}">
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 20px;">
|
||||
<label for="password" style="display: block; margin-bottom: 6px; font-weight: 500;">Пароль</label>
|
||||
<input type="password" name="password" id="password" required
|
||||
style="width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn" style="width: 100%;">Войти</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user