game_card_config.blade.php 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text" onclick="gamd_card()">{{ __('auto.新增兑换码配置') }}</button>
  26. <table class="table table-bordered">
  27. <thead>
  28. <tr>
  29. <th>{{ __('auto.兑换码') }}ID</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. <td style="width: 15%">{{ $v->GameCardID}}</td>
  39. <td style="width: 10%">{{ $v->Price}}</td>
  40. <td style="width: 35%">{{ $v->Amount}}</td>
  41. <td style="width: 35%">
  42. <button type="button" class="btn btn-sm btn-gradient-danger btn-icon-text" onclick="del({{ $v->ID }})">
  43. {{ __('auto.删除') }}
  44. </button>
  45. </td>
  46. </tr>
  47. @endforeach
  48. </tbody>
  49. </table>
  50. <div class="box-footer clearfix">
  51. {{ __('auto.总共') }} <b>{{ $list->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  52. {!! $list->links() !!}
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <script type="text/javascript">
  61. function gamd_card(id){
  62. var page = layer.open({
  63. type: 2,
  64. title: '{{ __('auto.新增兑换码配置') }}',
  65. shadeClose: true,
  66. shade: 0.8,
  67. area: ['70%', '90%'],
  68. content: '/admin/recharge/game_card_config_add'
  69. });
  70. }
  71. function del(id){
  72. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  73. myRequest("/admin/recharge/game_card_config_del/"+id,"post",{},function(res){
  74. layer.msg(res.msg)
  75. setTimeout(function(){
  76. window.location.reload();
  77. },1500)
  78. });
  79. });
  80. }
  81. </script>
  82. @endsection