53 lines
2.4 KiB
PHP
Executable file
53 lines
2.4 KiB
PHP
Executable file
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<div class="card mb-4">
|
|
<h5 class="card-header">
|
|
{{$user->email}} | {{__('Change E-Mail')}}
|
|
</h5>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-sm-2"></div>
|
|
<div class="col-sm-10">
|
|
<p>{{__('Change the e-mail address of the contact here. We will send the contact a new activation link to the new e-mail address to verify it.')}}</p>
|
|
</div>
|
|
</div>
|
|
|
|
{!! Form::open(['url' => route('admin_lead_change_mail', [$user->id]) ]) !!}
|
|
|
|
<div class="form-group row">
|
|
<label class="col-form-label col-sm-2 text-sm-right">{{__('New E-Mail Address')}}*</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}" type="email" name="email" placeholder="{{__('New E-Mail Address')}}*" required>
|
|
@if ($errors->has('email'))
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ $errors->first('email') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-form-label col-sm-2 text-sm-right">{{__('Confirm new E-Mail')}}*</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control" {{ $errors->has('email_confirmation') ? 'is-invalid' : '' }} type="email" name="email_confirmation" placeholder="{{__('Confirm new E-Mail Address')}}*" required>
|
|
@if ($errors->has('email_confirmation'))
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ $errors->first('email_confirmation') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group row">
|
|
<div class="col-sm-10 ml-sm-auto">
|
|
<button type="submit" class="btn btn-primary">{{__('save')}}</button>
|
|
<a href="{{ route('admin_lead_edit', [$user->id]) }}" class="btn btn-default">{{ __('back') }}</a>
|
|
|
|
</div>
|
|
</div>
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|