<!DOCTYPE html>
<html lang="en">

<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title> Verify Email</title>
  <!-- plugins:css -->
  <link rel="stylesheet" href="{{url('/')}}/vendors/feather/feather.css">
  <link rel="stylesheet" href="{{url('/')}}/vendors/ti-icons/css/themify-icons.css">
  <link rel="stylesheet" href="{{url('/')}}/vendors/css/vendor.bundle.base.css">
  
  <link rel="stylesheet" href="{{url('/')}}/css/vertical-layout-light/style.css">
  <!-- endinject -->
  <link rel="shortcut icon" href="{{url('/')}}/{{ $set->fav }}" />
  <link rel="stylesheet" href="{{url('/')}}/alert/css/alertify.min.css" />
	<link rel="stylesheet" href="{{url('/')}}/alert/css/themes/default.min.css" />
	<script src="{{url('/')}}/alert/alertify.min.js"></script>
	
  <meta name="csrf-token" content="{{ csrf_token() }}">
</head>

<body>
  <div class="container-scroller">
    <div class="container-fluid page-body-wrapper full-page-wrapper">
    <div class="content-wrapper d-flex align-items-center auth px-0" style="background-image:url('assets/img/home_2/hero_bg.jpg');background-repeat:no-repeat;background-size:cover;">
        <div class="row w-100 mx-0">
          <div class="col-lg-4 mx-auto">
            <div class="auth-form-light text-left py-5 px-4 px-sm-5">
              <div class="brand-logo">
                <img src="{{url('/')}}/{{$set->image}}" alt="logo">
              </div>
              <h4 align="center">Email Verification</h4>
              <h6 align="center" class="font-weight-light">Check your mail for the verification code.</h6>
              <form class="pt-3" method="post" action="{{route('verify.email')}}">
                    @csrf
                <div class="form-group">
                  <input type="text" class="form-control form-control-lg" name="otp" id="exampleInputEmail1" placeholder="Enter OTP">
                </div>
                <input type="hidden" name="email" value="{{$user->email}}">
                <div class="mt-3">
                  <button type="submit" class="btn btn-block btn-primary btn-lg font-weight-medium auth-form-btn">VERIFY</button>
                </div>
                
                <div class="mb-2">
                  
                </div>
                </form>
                <div class="text-center mt-4 font-weight-light">
                  Didn't get the mail? <a href="{{route('resend.otp', $user->email)}}" class="text-primary">Resend OTP</a>
                </div>
              
            </div>
          </div>
        </div>
      </div>
      <!-- content-wrapper ends -->
    </div>
    <!-- page-body-wrapper ends -->
  </div>
  <!-- container-scroller -->
  <!-- plugins:js -->
  <script src="vendors/js/vendor.bundle.base.js"></script>
  <!-- endinject -->
  <!-- Plugin js for this page -->
  <!-- End plugin js for this page -->
  <!-- inject:js -->
  <script src="{{url('/')}}/js/off-canvas.js"></script>
  <script src="{{url('/')}}/js/hoverable-collapse.js"></script>
  <script src="{{url('/')}}/js/template.js"></script>
  <script src="{{url('/')}}/js/settings.js"></script>
  <script src="{{url('/')}}/js/todolist.js"></script>
  <!-- endinject -->
  @if (session('success'))
    <script>
     alertify.success("{{ session('success') }}");
      //toastr.success("{{ session('success') }}");
    </script>    
@endif

@if (session('alert'))
    <script>
     alertify.error("{{ session('alert') }}");
      toastr.warning("{{ session('alert') }}");
    </script>
@endif
</body>

</html>
