You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. @extends('admin.layouts.app')
  2. @section('title', '优惠券列表')
  3. @section('content')
  4. <h2 class="sub-header">优惠券管理</h2>[ <a href="<?php echo route('admin_bonus_add'); ?>">添加优惠券</a> ]<br><br>
  5. <form name="listarc"><div class="table-responsive"><table class="table table-hover">
  6. <thead><tr class="info">
  7. <th>ID</th>
  8. <th>名称</th>
  9. <th>金额</th>
  10. <th>满多少使用</th>
  11. <th>开始领取时间</th>
  12. <th>结束领取时间</th>
  13. <th>数量</th>
  14. <th>状态</th>
  15. <th>管理</th>
  16. </tr></thead>
  17. <tbody>
  18. <?php if($posts){foreach($posts as $row){ ?><tr>
  19. <td><?php echo $row->id; ?></td>
  20. <td><?php echo $row->name; ?></td>
  21. <td><?php echo $row->money; ?></td>
  22. <td><?php echo $row->min_amount; ?></td>
  23. <td><?php echo $row->start_time; ?></td>
  24. <td><?php echo $row->end_time; ?></td>
  25. <td><?php if($row->num==-1){echo "不限";}else{echo "<font color=red>".$row->num."</font>";} ?></td>
  26. <td><?php if($row->status==0){echo "可用";}else{echo "<font color=red>不可用</font>";} ?></td>
  27. <td><a href="<?php echo route('admin_bonus_edit',array('id'=>$row->id)); ?>">修改</a> | <a onclick="delconfirm('<?php echo route('admin_bonus_del',array('id'=>$row->id)); ?>')" href="javascript:;">删除</a></td>
  28. </tr><?php }} ?>
  29. </tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
  30. <nav aria-label="Page navigation">{{ $posts->links() }}</nav>
  31. @endsection