diff options
author | Mateja <mail@matejamaric.com> | 2020-10-25 22:44:49 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-25 22:44:49 +0100 |
commit | 7fa171e30a497cfccfd3aa7dbcbb4c60d2e51db9 (patch) | |
tree | 8255f2e5259554d6f87ce08a957fdd4c47e31973 /resources/views/pages/login.blade.php | |
parent | dda8fb2a05de804f2b37245fde2580a9d18cc51b (diff) | |
download | yota-laravel-7fa171e30a497cfccfd3aa7dbcbb4c60d2e51db9.tar.gz yota-laravel-7fa171e30a497cfccfd3aa7dbcbb4c60d2e51db9.zip |
Work on activities and login page.
Diffstat (limited to 'resources/views/pages/login.blade.php')
-rw-r--r-- | resources/views/pages/login.blade.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/resources/views/pages/login.blade.php b/resources/views/pages/login.blade.php index f75fb78..4c21ae5 100644 --- a/resources/views/pages/login.blade.php +++ b/resources/views/pages/login.blade.php @@ -1,15 +1,26 @@ @extends('layouts.app') @section('content') +@if (session('status')) + <div class="alert alert-success"> + {{ session('status') }} + </div> +@endif <form action="{{ route('login') }}" method="POST"> @csrf <div class="form-group"> <label for="email">Email: </label> - <input class="form-control" type="email" id="email" name="email"> + <input class="form-control @error('email') is-invalid @enderror" type="email" id="email" name="email"> + @error('email') + <div class="alert alert-danger mt-2">{{ $message }}</div> + @enderror </div> <div class="form-group"> <label for="pw">Password: </label> - <input class="form-control" type="password" id="pw" name="password"> + <input class="form-control @error('password') is-invalid @enderror" type="password" id="pw" name="password"> + @error('password') + <div class="alert alert-danger mt-2">{{ $message }}</div> + @enderror </div> <div class="form-group"> <input class="btn btn-primary" type="submit" value="Login"> |