Загрузка данных


<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="utf-8">
    <title>Авторизация</title>
</head>
<body>
    <h2>Вход в систему</h2>

    @if(session('errorMessage'))
        <p style="color: red;"><b>Ошибка:</b> {{ session('errorMessage') }}</p>
    @endif

    @if(session('warningMessage'))
        <p style="color: orange;"><b>Внимание:</b> {{ session('warningMessage') }}</p>
    @endif

    <form action="{{ route('login.submit') }}" method="POST">
        @csrf
        <div>
            <label>Логин:</label><br>
            <input type="text" name="login" required>
        </div>
        <br>
        <div>
            <label>Пароль:</label><br>
            <input type="password" name="password" required>
        </div>
        <br>
        <button type="submit">Войти</button>
    </form>
</body>
</html>