2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2017-08-22 12:09:04 -07:00
|
|
|
{{ trans('general.changepassword') }}
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Account page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
2017-08-22 12:09:04 -07:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9">
|
|
|
|
{{ Form::open(['method' => 'POST', 'files' => true, 'class' => 'form-horizontal', 'autocomplete' => 'off']) }}
|
2016-03-25 01:18:05 -07:00
|
|
|
<!-- CSRF Token -->
|
2017-08-22 12:09:04 -07:00
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-body">
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
<!-- Old Password -->
|
2017-08-22 12:09:04 -07:00
|
|
|
<div class="form-group {{ $errors->has('current_password') ? ' has-error' : '' }}">
|
|
|
|
<label for="current_password" class="col-md-3 control-label">Current Password
|
2016-03-25 01:18:05 -07:00
|
|
|
</label>
|
2017-11-02 17:13:06 -07:00
|
|
|
<div class="col-md-5 required">
|
2017-08-22 12:09:04 -07:00
|
|
|
<input class="form-control" type="password" name="current_password" id="current_password" {{ (config('app.lock_passwords') ? ' disabled' : '') }}>
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('current_password', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2020-09-16 15:09:58 -07:00
|
|
|
@if (config('app.lock_passwords')===true)
|
|
|
|
<p class="text-warning"><i class="fa fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
|
|
|
|
@endif
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group {{ $errors->has('password') ? ' has-error' : '' }}">
|
2017-11-02 17:13:06 -07:00
|
|
|
<label for="password" class="col-md-3 control-label">New Password</label>
|
|
|
|
<div class="col-md-5 required">
|
2016-03-25 01:18:05 -07:00
|
|
|
<input class="form-control" type="password" name="password" id="password" {{ (config('app.lock_passwords') ? ' disabled' : '') }}>
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('password', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2020-09-16 15:09:58 -07:00
|
|
|
@if (config('app.lock_passwords')===true)
|
|
|
|
<p class="text-warning"><i class="fa fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
|
|
|
|
@endif
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2019-02-13 23:01:19 -08:00
|
|
|
<div class="form-group {{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
|
2020-04-01 03:51:08 -07:00
|
|
|
<label for="password_confirmation" class="col-md-3 control-label">New Password</label>
|
2017-11-02 17:13:06 -07:00
|
|
|
<div class="col-md-5 required">
|
2020-04-01 03:51:08 -07:00
|
|
|
<input class="form-control" type="password" name="password_confirmation" id="password_confirmation" {{ (config('app.lock_passwords') ? ' disabled' : '') }} aria-label="password_confirmation">
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('password_confirmation', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2020-09-16 15:09:58 -07:00
|
|
|
@if (config('app.lock_passwords')===true)
|
|
|
|
<p class="text-warning"><i class="fa fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
|
2016-03-25 01:18:05 -07:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-22 12:09:04 -07:00
|
|
|
</div> <!-- .box-body -->
|
|
|
|
<div class="box-footer text-right">
|
|
|
|
<a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
|
2020-04-01 03:51:08 -07:00
|
|
|
<button type="submit" class="btn btn-primary"><i class="fa fa-check icon-white" aria-hidden="true"></i> {{ trans('general.save') }}</button>
|
2017-08-22 12:09:04 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> <!-- .box-default -->
|
|
|
|
{{ Form::close() }}
|
|
|
|
</div> <!-- .col-md-9 -->
|
|
|
|
</div> <!-- .row-->
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|