add.blade.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <div class="main-panel">
  5. <div class="content-wrapper">
  6. <div class="page-header">
  7. <h3 class="page-title">
  8. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  9. <i class="mdi mdi-wrench"></i>
  10. </span>
  11. {{ __('auto.批量转账') }}
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">{{ __('auto.批量转账') }}</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.房卡场管理') }}</li>
  17. </ol>
  18. </nav>
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-12 grid-margin stretch-card">
  22. <div class="card">
  23. <div class="card-body">
  24. <h4 class="card-title">{{ __('auto.批量转账列表') }}</h4>
  25. <table class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th>{{ __('auto.玩家') }}GameID</th>
  29. <th>{{ __('auto.转账数量') }}</th>
  30. <th>{{ __('auto.转账原因') }}</th>
  31. <th>{{ __('auto.邮件标题') }}</th>
  32. <th>{{ __('auto.邮件内容') }}</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. @foreach($list as $k=>$v)
  37. <tr>
  38. @foreach($v as $k1=>$v1)
  39. <td style="width: 5%">{{ $v1 }}</td>
  40. @endforeach
  41. </tr>
  42. @endforeach
  43. </tbody>
  44. <form class="forms-sample" id="form">
  45. <input type="hidden" name="text" value="{{$str}}">
  46. <button type="button" onclick="commit()" class="btn btn-sm btn-gradient-primary btn-icon-text">
  47. <i class="mdi mdi-file-check btn-icon-prepend"></i>
  48. {{ __('auto.提交') }}
  49. </button>
  50. <button type="button" onclick="cancel()" class="btn btn-sm btn-gradient-warning btn-icon-text">
  51. <i class="mdi mdi-reload btn-icon-prepend"></i>
  52. {{ __('auto.取消') }}
  53. </button>
  54. </form>
  55. </table>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <script>
  63. function commit(){
  64. if(!checkForm()){
  65. return false;
  66. }
  67. var data = $("#form").serializeObject();
  68. myConfirm("{{ __('auto.是否继续') }}?",function(){
  69. myRequest("/admin/card/give/","post",data,function(res){
  70. layer.msg(res.msg)
  71. if(res.code === 200){
  72. setTimeout(function(){
  73. window.location.href="/admin/card/give";
  74. },1500)
  75. }
  76. });
  77. });
  78. }
  79. function cancel() {
  80. window.location.href="/admin/card/give";
  81. }
  82. </script>
  83. @endsection