list_theme.blade.php 803 B

12345678910111213141516171819202122232425262728293031
  1. @extends('admin.frame_list')
  2. @section('content_btn')
  3. <a href="{{ route('activeTheme_add') }}">添加活动主题</a>
  4. @stop
  5. @section('table_data')
  6. <tr>
  7. <th>活动主题名称</th>
  8. <th>创建时间</th>
  9. <th>操作</th>
  10. </tr>
  11. @foreach ($activesThemes as $theme)
  12. <tr>
  13. <td>{{ $theme->name }}</td>
  14. <td>{{ $theme->created_at }}</td>
  15. <td>
  16. <a href="{{ route('active', ['tid' => $theme->id]) }}">活动列表 |</a>
  17. <a href="{{ route('activeTheme_upd', ['tid' => $theme->id]) }}">编辑</a>
  18. @if ( !$theme->actives->count() )
  19. | <a href="{{ route('activeTheme_del', ['tid' => $theme->id]) }}" onclick="if(!confirm('确定要删除吗?')) return false;">删除</a>
  20. @endif
  21. </td>
  22. </tr>
  23. @endforeach
  24. @stop
  25. @section('render_data')
  26. {{ $activesThemes->render() }}
  27. @stop