<html>
<x-head />

<body class="body">
    <x-header />

    <div class="main">
        <div class="container">
            <section id="menu">
                <li>
                    <h3>Регистрация</h3>
                </li>
                <li>
                    <form action="{{Route('createuser')}}" method="post">
                        @csrf
                        <input type="text" name="nameReg" placeholder="Имя"><br>
                        <input type="text" name="lastReg" placeholder="Фамилия"><br>
                        <input inputmode="tel" min="1" max="12" name="numberReg" placeholder value="+7" maxlength="12"><br>
                        <input type="password" name="passReg" placeholder="Password"><br>
                        <input type="submit" class="but" value="Зарегистрироваться">
                    </form>
                    @error("nameReg")
                    <div class="alert alert-danger">{{ $message }}</div>
                    @enderror
                    @error("lastReg")
                    <div class="alert alert-danger">{{ $message }}</div>
                    @enderror
                    @error("numberReg")
                    <div class="alert alert-danger">{{ $message }}</div>
                    @enderror
                    @error("passReg")
                    <div class="alert alert-danger">{{ $message }}</div>
                    @enderror
                </li>
                <li>
                    <a href="{{Route('register')}}">У меня есть аккаунт</a>
                </li>
            </section>
        </div>
    </div>
</body>

</html>