flexisip-account-manager/flexiapi/resources/views/account/email.blade.php

30 lines
No EOL
818 B
PHP

@extends('layouts.main')
@section('content')
<h2>Change my account email address</h2>
@if (!empty($account->email))
<p>Currently: {{ $account->email }}</p>
@else
<p>No email yet</p>
@endif
<form method="POST" action="{{ route('account.email.request_update') }}" accept-charset="UTF-8">
@csrf
<div>
<input type="email" name="email" value="{{ old('email') }}" placeholder="bob@example.net" required>
<label for="email">New email</label>
</div>
<div>
<input type="email" name="email_confirmation" value="{{ old('email_confirm') }}" placeholder="bob@example.net" required>
<label for="email_confirmation">Email confirmation</label>
</div>
<input name="email_current" type="hidden" value="{{ $account->email }}">
<input class="btn btn-primary" type="submit" value="Change">
</form>
@endsection