blob: a36d17561a3d9276cd7ca6d548aa04137a440664 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
@layout('layouts.v2')
@section('content')
<div class="w-screen bg-purple-200 flex items-center justify-center">
<div class="w-full max-w-lg bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
<h1 class="text-gray-700 text-center text-2xl pb-5">
Your Ferdi account
</h1>
@if(flashMessage('error'))
<div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
{{ flashMessage('error') }}
</div>
@endif
@if(old('message'))
<div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
{{ old('message') }}
</div>
@endif
@if(flashMessage('notification'))
<div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
{{ flashMessage('notification.message') }}
</div>
@endif
@if(success === true)
<div class="bg-green-100 border-l-4 border-green-500 text-white p-4" style="background-color:#28C76F;">
Sucessfully updated your user account
</div>
@endif
<form action="/user/account" method="POST">
{{ csrfField() }}
<div class="mb-6">
<label class="block text-gray-700 text-sm font-bold mb-2">Name</label>
<div>
<input
class="shadow appearance-none rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline"
type="text" value="{{ old('name', username) }}" placeholder="Name" name="username" required>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 text-sm font-bold mb-2">Last Name</label>
<div>
<input
class="shadow appearance-none rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline"
type="text" value="{{ old('lastname', lastname) }}" placeholder="Last Name" name="lastname" required>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 text-sm font-bold mb-2">E-Mail</label>
<div>
<input
class="shadow appearance-none rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline"
type="email" value="{{ old('email', email) }}" placeholder="E-Mail" name="email" required>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 text-sm font-bold mb-2">Password</label>
<div>
<input
class="shadow appearance-none rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline"
type="password" placeholder="*********" name="password">
</div>
</div>
<div>
<button style="background-color:#28C76F;margin-bottom:1rem;">Change settings</button>
</div>
</form>
<div class="text-center">
<a class="w-full font-bold text-sm text-gray-500 hover:text-gray-800 mb-3"
href="/user/data">My account data</a>
<br />
<a class="w-full font-bold text-sm text-gray-500 hover:text-gray-800 mb-3"
href="/user/transfer">Import/Export account data</a>
<br />
<a class="w-full font-bold text-sm text-red-500 hover:text-red-800 mb-3"
href="/user/delete">Delete my account</a>
<br />
<a class="w-full font-bold text-sm text-gray-500 hover:text-gray-800 mb-3"
href="/user/logout">Logout</a>
</div>
</div>
</div>
@endsection
|