aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages/login.blade.php
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/pages/login.blade.php')
-rw-r--r--resources/views/pages/login.blade.php15
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">