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

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

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

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