history.blade.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. @extends('base.base')
  2. @section('base')
  3. <div class="main-panel">
  4. <div class="content-wrapper">
  5. <div class="page-header">
  6. <h3 class="page-title">
  7. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  8. <i class="mdi mdi-history"></i>
  9. </span>
  10. Reward Code Claim Records
  11. </h3>
  12. </div>
  13. <div class="row mb-3">
  14. <div class="col-12 grid-margin stretch-card">
  15. <div class="card">
  16. <div class="card-body">
  17. <form class="form-inline" id="search-form" method="get" action="">
  18. <div class="form-group mr-3">
  19. <label class="mr-2">Code</label>
  20. <input type="text" class="form-control" name="code" value="{{ $code ?? '' }}" placeholder="Filter by Code">
  21. </div>
  22. <div class="form-group mr-3">
  23. <label class="mr-2">UserID</label>
  24. <input type="text" class="form-control" name="user_id" value="{{ $user_id ?? '' }}" placeholder="Filter by UserID">
  25. </div>
  26. <div class="form-group mr-3">
  27. <label class="mr-2">GameID</label>
  28. <input type="text" class="form-control" name="game_id" value="{{ $game_id ?? '' }}" placeholder="Filter by GameID">
  29. </div>
  30. <div class="form-group mr-3">
  31. <label class="mr-2">Start Date</label>
  32. <input type="date" class="form-control" name="start_date" value="{{ $start_date ?? '' }}">
  33. </div>
  34. <div class="form-group mr-3">
  35. <label class="mr-2">End Date</label>
  36. <input type="date" class="form-control" name="end_date" value="{{ $end_date ?? '' }}">
  37. </div>
  38. <button type="submit" class="btn btn-sm btn-gradient-primary mr-2">Search</button>
  39. <button type="button" class="btn btn-sm btn-gradient-warning" onclick="resetSearch()">Reset</button>
  40. </form>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="row">
  46. <div class="col-lg-12 grid-margin stretch-card">
  47. <div class="card">
  48. <div class="card-body">
  49. <h4 class="card-title">Claim Records List</h4>
  50. <div class="table-responsive">
  51. <table class="table table-bordered">
  52. <thead>
  53. <tr>
  54. <th>ID</th>
  55. <th>Code</th>
  56. <th>UserID</th>
  57. <th>GameID</th>
  58. <th>NickName</th>
  59. <th>Amount</th>
  60. <th>Client IP</th>
  61. <th>Created At</th>
  62. </tr>
  63. </thead>
  64. <tbody>
  65. @forelse($list as $item)
  66. <tr>
  67. <td>{{ $item->id }}</td>
  68. <td><strong>{{ $item->code }}</strong></td>
  69. <td>{{ $item->UserID }}</td>
  70. <td>{{ $item->GameID }}</td>
  71. <td>{{ $item->NickName }}</td>
  72. <td>{{ number_format($item->amount, 2) }}</td>
  73. <td>{{ $item->client_ip }}</td>
  74. <td>{{ $item->created_at }}</td>
  75. </tr>
  76. @empty
  77. <tr>
  78. <td colspan="8" class="text-center text-muted">No records found</td>
  79. </tr>
  80. @endforelse
  81. </tbody>
  82. </table>
  83. </div>
  84. <div class="mt-3">
  85. {{ $list->appends(request()->all())->links() }}
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <script>
  94. function resetSearch() {
  95. window.location.href = window.location.pathname;
  96. }
  97. </script>
  98. @endsection