aboutsummaryrefslogtreecommitdiffstats
path: root/resources/views/dashboard/forgotPassword.edge
blob: b41e1cc9c0e26d254ea8e0c08178732617b53b74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@layout('layouts/v2')

@section('content')
<div class="w-screen bg-purple-200 flex items-center justify-center">
<form class="w-full max-w-sm bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"
  action="/user/forgot" method="POST">
    <h1 class="text-gray-700 text-center text-2xl pb-5">
      Forgot Password?
    </h1>

    @if(flashMessages.has('error'))
    <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
      {{ flashMessages.get('error') }}
    </div>
    @endif
    @if(flashMessages.has('message'))
    <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
      {{ flashMessages.get('message') }}
    </div>
    @endif

    {{ csrfField() }}
    <div class="mb-4">
      <label class="block text-gray-700 text-sm font-bold mb-2" for="username">
        E-Mail
      </label>
      <input
        class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
        id="mail"
        name="mail"
        type="text"
        placeholder="E-Mail"
        value="{{ flashMessages.get('mail', '') }}"
        required>
    </div>

    <button
      class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
      type="submit">
      Reset password
    </button>
    <div class="text-center">
      <a class="w-full font-bold text-sm text-blue-500 hover:text-blue-800" href="/user/login">
        Login instead
      </a>
    </div>
</form>
</div>
@endsection