aboutsummaryrefslogblamecommitdiff
path: root/resources/views/pages/login.blade.php
blob: 3fbc99574ecf6c1fabac43b57cb67c5d11488b66 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                       

                          
                   




                                   


                                                           



                                                  
                                                                                                                                              


                                                               


                                      
                                                                                                                         


                                                               




                                                               
             
@extends('layouts.app')

@section('title', 'Login')

@section('content')
@if (session('status'))
  <div class="alert alert-success">
    {{ session('status') }}
  </div>
@endif
@error('failed')
  <div class="alert alert-danger mt-2">{{ $message }}</div>
@enderror
<form action="{{ route('login') }}" method="POST">
  @csrf      
  <div class="form-group">
    <label for="email">Email: </label>
    <input class="form-control @error('email') is-invalid @enderror" type="email" id="email" name="email" value="{{ old('email') }}" required>
    @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 @error('password') is-invalid @enderror" type="password" id="pw" name="password" required>
    @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">
  </div>
</form>
@endsection()