<form action="/login" method="post">
    Użytkownik
    {{ csrf_field() }}
    <div class="form-group">
        <label for="title">Login</label>
        <input type="text" class="form-control" id="login"  name="login">
    </div>

    <div class="form-group">
        <label for="title">Hasło</label>
        <input type="text" class="form-control" id="password"  name="password">
    </div>

    <div class="form-group">
        <label for="title">Powtórz Hasło</label>
        <input type="text" class="form-control" id="password2"  name="password2">
    </div>

    @if ($errors->any())
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif
    <button type="submit" class="btn btn-primary">Zaloguj</button>
</form>
