-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemail-edit.blade.php
52 lines (44 loc) · 2.35 KB
/
email-edit.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
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Update E-Mail Address</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
<p>Your e-mail address is currently: {{ auth()->user()->email }}.</p>
<p>You can update your e-mail address using the form on this page. Please note that you will receive a link to your new e-mail address which must be confirmed to complete the update of your e-mail address.</p>
<form method="POST" action="{{ route(config('confirm-new-email.route.update-request.name')) }}">
@csrf
<div class="form-group row">
<label for="new_email" class="col-md-4 col-form-label text-md-right">New E-Mail Address</label>
<div class="col-md-6">
<input id="new_email" type="email" class="form-control @error('new_email') is-invalid @enderror" name="new_email" value="{{ old('new_email') }}" required autocomplete="email" autofocus>
@error('new_email')
@foreach($errors->get('new_email') as $message)
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@endforeach
@enderror
</div>
</div>
<div class="form-group row mb-0">
<div class="col-md-8 offset-md-4">
<button type="submit" class="btn btn-primary">
Update E-Mail
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection