@extends('layouts.auth')
@section('content')

<h2>Check Your Email </h2>
<p>We have sent you an email with a code.</p>

<form method="post" action="/verify">
    {{csrf_field()}}
    @if (count($errors) > 0)
    @foreach ($errors->all() as $error)
    <div class="alert alert-danger alert-dismissable">
        <strong>{{$error}}</strong>
    </div>
    @endforeach
    @endif
    
    <div class="form-group">
        
        <input type="text" name="email_token" class="form-control" placeholder="Enter Code" required="">
        
    </div>
    <input type="hidden" name="email" value="{{$email ?? ''}}">
    
    <button type="submit" class="btn btn-primary btn-block">Login</button>
    
</form>

@endsection