@php
    $tr = [
       'password'         => __('frontside.user.password'),
       'password-confirm' => __('frontside.user.password-confirm'),
       'current password' => __('frontside.user.current_password'),
    ];
@endphp

<form class="form-horizontal" role="form" method="POST" action="{{ locRoute('user.storepass') }}">
    {{ csrf_field() }}

    <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
        <label for="password" class="col-md-4 control-label">{{__('frontside.user.password')}}</label>
        <div class="col-md-6">
            <input id="password" type="password" class="form-control" name="password" required>
            @if ($errors->has('password'))
                <span class="help-block"><strong>{{ strtr($errors->first('password'),$tr) }}</strong></span>
            @endif
        </div>
    </div>

    <div class="form-group{{ $errors->has('password-confirm') ? ' has-error' : '' }}">
        <label for="password-confirm" class="col-md-4 control-label">{{__('frontside.user.password-confirm')}}</label>
        <div class="col-md-6">
            <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
            @if ($errors->has('password-confirm'))
                <span class="help-block"><strong>{{ strtr($errors->first('password-confirm'),$tr) }}</strong></span>
            @endif
        </div>
    </div>

    <div class="form-group{{ $errors->has('current_password') ? ' has-error' : '' }}">
        <label for="address" class="col-md-4 control-label">{{__('frontside.user.current_password')}}</label>

        <div class="col-md-6">
            <input id="current_password" type="password" class="form-control" name="current_password" value="">

            @if ($errors->has('current_password'))
                <span class="help-block">
                                <strong>{{ strtr($errors->first('current_password'),$tr) }}</strong>
                            </span>
            @endif
        </div>
    </div>



    <div class="form-group">
        <div class="col-md-6 col-md-offset-4">
            <button type="submit" class="btn btn-primary">
                {{__('frontside.common.update_btn')}}
            </button>
        </div>
    </div>
</form>