diff options
Diffstat (limited to 'resources/views')
-rw-r--r-- | resources/views/pages/activities.blade.php | 4 | ||||
-rw-r--r-- | resources/views/pages/login.blade.php | 15 |
2 files changed, 17 insertions, 2 deletions
diff --git a/resources/views/pages/activities.blade.php b/resources/views/pages/activities.blade.php index 6232a0c..03319fc 100644 --- a/resources/views/pages/activities.blade.php +++ b/resources/views/pages/activities.blade.php @@ -1,6 +1,7 @@ @extends('layouts.app') @section('content') +@if (1==2) <div class="table-responsive"> <table class="table table-striped table-bordered"><!-- table-hover --> <thead class="thead-dark"> @@ -10,4 +11,7 @@ </tbody> </table> </div> +@else +<p>There are currently no approved activities.</p> +@endif @endsection() 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"> |