eOSP2/resources/views/login.blade.php

40 lines
1.0 KiB
PHP

@extends('layout.app')
@section('center-area')
@parent
@if (\Session::has('success'))
<div class="alert alert-success">
<ul>
<li>{!! \Session::get('success') !!}</li>
</ul>
</div>
@endif
@if( auth()->check())
Jesteś już zalogowany.
@else
<h2>Zaloguj się</h2>
<form method="POST" action="/login">
{{ csrf_field() }}
<div class="form-group">
<label for="email">Email:</label>
<input type="text" class="form-control" id="email" name="email">
</div>
<div class="form-group">
<label for="password">Hasło:</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="form-group">
<button style="cursor:pointer" type="submit" class="btn btn-primary">Login</button>
</div>
@include('inc.formerrors')
</form>
<a href="/forgottenPassword">Nie pamiętam hasła<a>
@endif
@endsection