index.blade.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. <div class="page-header">
  7. <a href="{{url('admin/score_clockin/add?'.http_build_query(['active_id'=>request('active_id',0)]))}}" class="btn btn-primary">新增</a>
  8. </div>
  9. <form action="" method="get" class="form-horizontal form-line">
  10. </form>
  11. <div class="row">
  12. <div class="col-xs-12">
  13. <div class="table-responsive">
  14. <table class="table table-striped table-bordered table-hover">
  15. <thead>
  16. <tr>
  17. <th>ID</th>
  18. <th>打卡天数</th>
  19. <th>奖励积分</th>
  20. <th>奖励券</th>
  21. <th>修改时间</th>
  22. <th>操作</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. @foreach ($list as $a)
  27. <tr>
  28. <td>{{$a['id']}}</td>
  29. <td>{{$a['what_day']}}</td>
  30. <td>{{$a['reward']}}</td>
  31. <td>{{$a['coupon_name'] ? $a['coupon_name'].'('.$a['coupon_code'].')':''}}</td>
  32. <td>{{date('Y-m-d H:i:s',$a['update_time'])}}</td>
  33. <td>
  34. <a class="btn btn-sm btn-warning" href="{{url('admin/score_clockin/edit?'.http_build_query(['id'=>$a['id']]))}}">
  35. 编辑
  36. </a>
  37. <!-- @if ($a['status'])
  38. <a class="delete btn btn-sm btn-success" data-url="{{url('admin/score_clockin/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'0']))}}">
  39. 启用
  40. </a>
  41. @else
  42. <a class="delete btn btn-sm btn-danger" data-url="{{url('admin/score_clockin/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'1']))}}">
  43. 停用
  44. </a>
  45. @endif -->
  46. </td>
  47. </tr>
  48. @endforeach
  49. <tr>
  50. <td colspan="20" class="page">{{$list->render()}}</td>
  51. </tr>
  52. <tr>
  53. <td colspan="20">总计 {{$list->total()}} 个打卡</td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </div>
  58. </div>
  59. </div>
  60. @endsection