resetPassword.blade.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. @extends('auth.layouts')
  2. @section('title', trans('auth.restPassword'))
  3. @section('content')
  4. @if (Session::get('successMsg'))
  5. <div class="alert alert-success">
  6. <span> {{Session::get('successMsg')}} </span>
  7. </div>
  8. @endif
  9. @if($errors->any())
  10. <div class="alert alert-danger">
  11. <span> {{$errors->first()}} </span>
  12. </div>
  13. @endif
  14. <form method="post" action="/resetPassword">
  15. @if(\App\Components\Helpers::systemConfig()['is_reset_password'])
  16. <div class="form-title">
  17. {{trans('auth.restPassword')}}
  18. </div>
  19. <div class="form-group form-material floating" data-plugin="formMaterial">
  20. <input type="email" class="form-control" name="username" value="{{Request::old('username')}}" required="required" autofocus="autofocus"/>
  21. <label class="floating-label">{{trans('auth.username')}}</label>
  22. {{csrf_field()}}
  23. </div>
  24. @else
  25. <div class="alert alert-danger">
  26. <span> {{trans('auth.system_maintenance_tip',['email' => \App\Components\Helpers::systemConfig()['admin_email']])}} </span>
  27. </div>
  28. @endif
  29. <a href="/login" class="btn btn-danger btn-lg {{\App\Components\Helpers::systemConfig()['is_reset_password']? 'float-left':'btn-block'}}">{{trans('auth.back')}}</a>
  30. @if(\App\Components\Helpers::systemConfig()['is_reset_password'])
  31. <button type="submit" class="btn btn-primary btn-lg float-right">{{trans('auth.submit')}}</button>
  32. @endif
  33. </form>
  34. @endsection