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

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


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

    <div class="form-group<?php echo e($errors->has('email-confirm') ? ' has-error' : ''); ?>">
        <label for="email-confirm" class="col-md-4 control-label"><?php echo e(__('frontside.user.email-confirm')); ?></label>
        <div class="col-md-6">
            <input id="email-confirm" type="text" class="form-control" name="email_confirmation"  value="<?php echo e(old('email_confirmation')); ?>"  required>
            <?php if($errors->has('email-confirm')): ?>
                <span class="help-block"><strong><?php echo e(strtr($errors->first('email-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>