email.blade.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @extends('theme::layout.public')
  2. @section('seo_title')绑定邮箱 - {{ Setting()->get('website_name') }}@endsection
  3. @section('content')
  4. <div class="row">
  5. <!--左侧菜单-->
  6. @include('theme::layout.profile_menu')
  7. <div id="main" class="settings col-md-10 form-horizontal main">
  8. <h2 class="h3 post-title">绑定邮箱</h2>
  9. @if(Auth()->user()->userData->email_status == 1)
  10. <div class="alert alert-success" role="alert">
  11. 您的邮箱已绑定,如需修改,请按照下方提示进行操作!
  12. </div>
  13. @else
  14. <div class="alert alert-warning" role="alert">
  15. 您还未进行邮箱绑定,绑定后可通过邮箱地址登录系统.
  16. </div>
  17. @endif
  18. <div class="row mt-30">
  19. <div class="col-md-8">
  20. <form name="baseForm" id="base_form" action="{{ route('auth.profile.email')}}" method="POST">
  21. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  22. <div class="form-group @if ($errors->first('email')) has-error @endif">
  23. <label for="email" class="required control-label col-sm-3">邮箱地址</label>
  24. <div class="col-sm-9">
  25. <input name="email" id="email" type="text" maxlength="64" class="form-control" value="{{ old('email',Auth()->user()->email) }}" />
  26. @if ($errors->first('email'))
  27. <span class="help-block">{{ $errors->first('email') }}</span>
  28. @endif
  29. </div>
  30. </div>
  31. <div class="form-group @if ($errors->first('captcha')) has-error @endif">
  32. <label for="captcha" class="required control-label col-sm-3">验证码</label>
  33. <div class="col-sm-4">
  34. <input id="captcha" name="captcha" type="text" maxlength="32" placeholder="请输入下方验证码" class="form-control" value="{{ old('captcha') }}" />
  35. @if ($errors->first('captcha'))
  36. <span class="help-block">{{ $errors->first('captcha') }}</span>
  37. @endif
  38. <div class="mt-10"><a href="javascript:void(0);" id="reloadCaptcha"><img src="{{ captcha_src()}}"></a></div>
  39. </div>
  40. </div>
  41. <div class="form-action row mb-30">
  42. <div class="col-sm-offset-3 col-sm-9">
  43. <button class="btn btn-xl btn-primary" type="submit">提交</button>
  44. </div>
  45. </div>
  46. </form>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. @endsection