create.blade.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @extends('admin/public/layout')
  2. @section('title') 积分充值 @endsection
  3. @section('content')
  4. <section class="content-header">
  5. <h1>
  6. 积分金币管理
  7. <small>添加积分、金币</small>
  8. </h1>
  9. </section>
  10. <section class="content">
  11. <div class="row">
  12. <div class="col-xs-12">
  13. <div class="box box-default">
  14. <form role="form" name="addForm" method="POST" action="{{ route('admin.credit.store') }}">
  15. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  16. <div class="box-body">
  17. <div class="form-group @if($errors->has('user_id')) has-error @endif">
  18. <label>操作用户UID</label>
  19. <input type="text" name="user_id" class="form-control " placeholder="操作用户的UID" value="{{ old('user_id','') }}">
  20. @if($errors->has('user_id')) <p class="help-block">{{ $errors->first('user_id') }}</p> @endif
  21. </div>
  22. <div class="form-group">
  23. <label>操作类型</label>
  24. <span class="text-muted">(根据操作类型确定是加/减 金币数或经验值)</span>
  25. <div class="radio">
  26. <label>
  27. <input type="radio" name="action" value="reward_user" @if( old('action','reward_user') == 'reward_user')checked @endif /> 奖励
  28. </label>&nbsp;&nbsp;
  29. <label>
  30. <input type="radio" name="action" value="punish_user" @if( old('action','reward_user') == 'punish_user')checked @endif /> 惩罚
  31. </label>
  32. </div>
  33. </div>
  34. <div class="form-group @if($errors->has('coins')) has-error @endif">
  35. <label>操作金币数</label>
  36. <span class="text-muted">(只能是正整数,0为不进行修改)</span>
  37. <input type="text" name="coins" class="form-control " placeholder="要操作的金币数" value="{{ old('coins',0) }}">
  38. @if($errors->has('coins')) <p class="help-block">{{ $errors->first('coins') }}</p> @endif
  39. </div>
  40. <div class="form-group @if($errors->has('credits')) has-error @endif">
  41. <label>操作经验值</label>
  42. <span class="text-muted">(只能是正整数,0为不进行修改)</span>
  43. <input type="text" name="credits" class="form-control " placeholder="要操作的经验值" value="{{ old('credits',0) }}">
  44. @if($errors->has('credits')) <p class="help-block">{{ $errors->first('credits') }}</p> @endif
  45. </div>
  46. </div>
  47. <div class="box-footer">
  48. <button type="submit" class="btn btn-primary">提交</button>
  49. </div>
  50. </form>
  51. </div>
  52. </div>
  53. </div>
  54. </section>
  55. @endsection
  56. @section('script')
  57. <script type="text/javascript">
  58. $(function(){
  59. set_active_menu('finance',"{{ route('admin.credit.create') }}");
  60. });
  61. </script>
  62. @endsection