verify.blade.php 3.21 KB
Newer Older
1
2
3
@extends('auth.layouts.app')

@section('content')
4
5
6
    
    <div class="flex sm:items-start md:items-center md:justify-center h-screen">
        <div class="bg-white p-4 rounded overflow-hidden shadow-lg sm:w-full md:w-1/2 lg:w-1/3">
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
            @if (session('status'))
                <div class="flex relative px-3 py-3 mb-4 border text-green-800 bg-green-200">
                    {{ session('status') }}
                </div>
            @endif

            @if(session()->has('message') || !empty($message))
                <div class="bg-blue-100 border-t border-b border-blue-500 text-blue-700 px-4 py-3" role="alert">
                    <p class="font-bold">{{session()->get('message') ? session()->get('message') : $message}}</p>
                </div>
            @endif

            <div class="text-center">
                <h1 class="text-4xl pb-2 m-auto max-w-full font-extrabold">
                    Mesort</h1>
                <h4> {{ __('Reset Password') }} </h4>
                <div class="py-4 w-full text-center">
                    <a class="text-blue-500 hover:text-red-600 block"
                       href="{{url('login')}}">{{__("Return to login")}}</a>
                </div>
            </div>
            <form method="POST" action="{{ url('password/new') }}">
                @csrf
                <input type="hidden" id="token" name="token" value="{{ $user->password_token }}"></input>
                <div class="mb-4 flex flex-wrap">
                    <label for="email"
                           class="md:w-1/3 pl-4 pt-2 pb-2 mb-0 leading-normal text-md-right">{{ __('E-Mail Address') }}</label>

                    <div class="md:w-1/2">
                        <input id="email" disabled type="email" value="{{$user->email}}"
                               class="input {{ $errors->has('email') ? ' bg-red-dark' : '' }}" name="email"
                               value="{{ old('email') }}" required autofocus>

                    </div>
                </div>
                <div class="mb-4 flex flex-wrap">
                    <label for="email"
                           class="md:w-1/3 pl-4 pt-2 pb-2 mb-0 leading-normal text-md-right">{{ __('Password') }}</label>

                    <div class="md:w-1/2">
                        <input id="password" type="password"
                               class="input {{ $errors->has('password') ? ' bg-red-dark' : '' }}" name="password"
                               minlength="6"
                               required></input>

                    </div>
                </div>

                @if ($errors->has('password'))
                    <div class="bg-red-700 my-2 pl-2 py-2 text-white font-bold">{{ $errors->first('password') }}
                    </div>
                @endif


                <div class="pr-4 pl-4  text-center">
                    <button type="submit"
                            class="inline-block align-middle text-center select-none border font-normal whitespace-no-wrap py-2 px-4 rounded text-base leading-normal no-underline text-blue-lightest bg-blue hover:bg-blue-light">
                        {{ __('Set password') }}
                    </button>
                </div>

            </form>
        </div>
    </div>

@endsection