1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- @extends('admin.public.base')
- @section('body_class')
- style="margin: 0 auto;width: 96%;padding: 30px 0px;"
- @endsection
- @section('content')
- <div class="page-header">
- <a href="{{url('admin/score_clockin/add?'.http_build_query(['active_id'=>request('active_id',0)]))}}" class="btn btn-primary">新增</a>
- </div>
- <form action="" method="get" class="form-horizontal form-line">
-
- </form>
- <div class="row">
- <div class="col-xs-12">
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <th>ID</th>
- <th>打卡天数</th>
- <th>奖励积分</th>
- <th>奖励券</th>
- <th>修改时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($list as $a)
- <tr>
- <td>{{$a['id']}}</td>
- <td>{{$a['what_day']}}</td>
- <td>{{$a['reward']}}</td>
- <td>{{$a['coupon_name'] ? $a['coupon_name'].'('.$a['coupon_code'].')':''}}</td>
- <td>{{date('Y-m-d H:i:s',$a['update_time'])}}</td>
- <td>
- <a class="btn btn-sm btn-warning" href="{{url('admin/score_clockin/edit?'.http_build_query(['id'=>$a['id']]))}}">
- 编辑
- </a>
- <!-- @if ($a['status'])
- <a class="delete btn btn-sm btn-success" data-url="{{url('admin/score_clockin/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'0']))}}">
- 启用
- </a>
- @else
- <a class="delete btn btn-sm btn-danger" data-url="{{url('admin/score_clockin/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'1']))}}">
- 停用
- </a>
- @endif -->
- </td>
- </tr>
- @endforeach
- <tr>
- <td colspan="20" class="page">{{$list->render()}}</td>
- </tr>
- <tr>
- <td colspan="20">总计 {{$list->total()}} 个打卡</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- @endsection
|