-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-profile-information-form.blade.php
109 lines (94 loc) · 4.97 KB
/
update-profile-information-form.blade.php
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<section>
<header>
<h2 class="text-lg font-medium text-gray-900">
{{ __('Profile Information') }}
</h2>
<p class="mt-1 text-sm text-gray-600">
{{ __("Update your account's profile information.") }}
</p>
</header>
<form id="send-verification" method="post" action="{{ route('verification.send') }}">
@csrf
</form>
<form method="post" action="{{ route('profile.update') }}" class="mt-6 space-y-6">
@csrf
@method('patch')
<div class="flex w-full">
<div class="w-full flex justify-start items-center shrink-0">
<img class="myProfile_pict object-cover rounded-full" src="img/profile.png"
alt="Current profile photo" />
<input type="file"
class="flex ml-4 p-3 bottom-0 right-0 rounded-md w-full focus:border-green-400 focus:ring-green-400 bg-emerald-100 shadow-md">
</div>
</div>
{{-- <div>
<label class="block mb-2 text-sm font-medium text-gray-900 dark:text-white" for="file_input">Upload
file</label>
<input
class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400"
aria-describedby="file_input_help" id="file_input" type="file">
<p class="mt-1 text-sm text-gray-500 dark:text-gray-300" id="file_input_help">SVG, PNG, JPG or GIF (MAX.
800x400px).</p>
</div> --}}
{{-- <x-file-button>
{{ __('choose file') }}
</x-file-button> --}}
{{-- Name --}}
<div>
<x-input-label for="name" :value="__('Name')" />
<x-text-input id="name" name="name" type="text" class="mt-1 block w-full" :value="old('name', $user->name)"
required autofocus autocomplete="name" />
<x-input-error class="mt-2" :messages="$errors->get('name')" />
</div>
{{-- Username --}}
<div>
<x-input-label for="username" :value="__('Username')" />
<x-text-input id="username" name="username" type="text" class="mt-1 block w-full" :value="old('username', $user->username)"
required autocomplete="username" />
<x-input-error class="mt-2" :messages="$errors->get('username')" />
</div>
{{-- Workplace --}}
<div>
<x-input-label for="workplace" :value="__('Workplace')" />
<x-text-input id="workplace" name="workplace" type="text" class="mt-1 block w-full" :value="old('workplace', $user->workplace)"
required autocomplete="workplace" />
<x-input-error class="mt-2" :messages="$errors->get('workplace')" />
</div>
{{-- Job Posisition --}}
<div>
<x-input-label for="jobPosisition" :value="__('Job Posisition')" />
<x-text-input id="jobPosisition" name="jobPosisition" type="text" class="mt-1 block w-full"
:value="old('jobPosisition', $user->jobPosisition)" required autocomplete="jobPosisition" />
<x-input-error class="mt-2" :messages="$errors->get('jobPosisition')" />
</div>
<div>
<x-input-label for="email" :value="__('Email')" />
<x-text-input id="email" name="email" type="email" class="mt-1 block w-full" :value="old('email', $user->email)"
required autocomplete="email" />
<x-input-error class="mt-2" :messages="$errors->get('email')" />
@if ($user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && !$user->hasVerifiedEmail())
<div>
<p class="text-sm mt-2 text-gray-800">
{{ __('Your email address is unverified.') }}
<button form="send-verification"
class="underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
{{ __('Click here to re-send the verification email.') }}
</button>
</p>
@if (session('status') === 'verification-link-sent')
<p class="mt-2 font-medium text-sm text-green-600">
{{ __('A new verification link has been sent to your email address.') }}
</p>
@endif
</div>
@endif
</div>
<div class="flex items-center gap-4">
<x-primary-button>{{ __('Save') }}</x-primary-button>
@if (session('status') === 'profile-updated')
<p x-data="{ show: true }" x-show="show" x-transition x-init="setTimeout(() => show = false, 2000)"
class="text-sm text-gray-600">{{ __('Saved.') }}</p>
@endif
</div>
</form>
</section>