login.blade.php 1.4 KB
Newer Older
Timothée Jaussoin's avatar
Timothée Jaussoin committed
1 2 3 4
@extends('layouts.main')

@section('content')
    @if (Auth::check())
5
        @include('parts.already_auth')
Timothée Jaussoin's avatar
Timothée Jaussoin committed
6
    @else
7 8 9
        {!! Form::open(['route' => 'account.authenticate']) !!}
            <div class="form-group">
                {!! Form::label('username', 'Username') !!}
10
                {!! Form::text('username', old('username'), ['class' => 'form-control', 'placeholder' => 'username', 'required']) !!}
11 12 13 14 15
            </div>
            <div class="form-group">
                {!! Form::label('password', 'Password') !!}
                {!! Form::password('password', ['class' => 'form-control', 'placeholder' => 'myPassword', 'required']) !!}
            </div>
16

17 18 19 20
            <div class="form-row">
                <div class="form-group col-md-6">
                {!! Form::submit('Authenticate', ['class' => 'btn btn-primary']) !!}
                </div>
21

22 23 24 25 26 27 28
                <div class="form-group col-md-6">
                    <p class="mb-1 text-right">
                        No account yet?
                        <a class="btn btn-secondary ml-2" href="{{ route('account.register') }}">Register
                    </a>
                </p>
                </div>
Timothée Jaussoin's avatar
Timothée Jaussoin committed
29
            </div>
30 31 32
        {!! Form::close() !!}

        <p>You can also authenticate using your <a href="{{ route('account.login_email') }}">Email address</a> or your <a href="{{ route('account.login_phone') }}">Phone number</a></p>
Timothée Jaussoin's avatar
Timothée Jaussoin committed
33 34
    @endif
@endsection