activeUser.blade.php 1.6 KB

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