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

<form class="form-horizontal" role="form" method="POST" action="<?php echo e(locRoute('user.storepass')); ?>">
    <?php echo e(csrf_field()); ?>


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

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

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

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

            <?php if($errors->has('current_password')): ?>
                <span class="help-block">
                                <strong><?php echo e(strtr($errors->first('current_password'),$tr)); ?></strong>
                            </span>
            <?php endif; ?>
        </div>
    </div>



    <div class="form-group">
        <div class="col-md-6 col-md-offset-4">
            <button type="submit" class="btn btn-primary">
                <?php echo e(__('frontside.common.update_btn')); ?>

            </button>
        </div>
    </div>
</form>