index.blade.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @extends('admin/public/layout')
  2. @section('title')推荐管理@endsection
  3. @section('content')
  4. <section class="content-header">
  5. <h1>推荐管理</h1>
  6. </section>
  7. <section class="content">
  8. <div class="row">
  9. <div class="col-xs-12">
  10. <div class="box">
  11. <form role="form" name="listForm" method="post" action="{{ route('admin.recommendation.destroy') }}">
  12. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  13. <div class="box-header">
  14. <div class="row">
  15. <div class="col-xs-12">
  16. <div class="btn-group">
  17. <a href="{{ route('admin.recommendation.create') }}" class="btn btn-default btn-sm" data-toggle="tooltip" title="添加新推荐"><i class="fa fa-plus"></i></a>
  18. <button type="submit" class="btn btn-default btn-sm" data-toggle="tooltip" title="删除选中"><i class="fa fa-trash-o"></i></button>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="box-body no-padding">
  24. <div class="table-responsive">
  25. <table class="table table-striped">
  26. <tr>
  27. <th><input type="checkbox" class="checkbox-toggle"/></th>
  28. <th>排序</th>
  29. <th>推荐标题</th>
  30. <th>URL</th>
  31. {{-- <th>状态</th>--}}
  32. <th>更新时间</th>
  33. <th>操作</th>
  34. </tr>
  35. @foreach($recommendations as $recommendation)
  36. <tr>
  37. <td><input type="checkbox" value="{{ $recommendation->id }}" name="ids[]"/></td>
  38. <td>{{ $recommendation->sort }}</td>
  39. <td>{{ $recommendation->subject }}</td>
  40. <td>{{ $recommendation->url }}</td>
  41. {{-- <td>{{ trans_common_status($recommendation->status) }}</td>--}}
  42. <td>{{ $recommendation->updated_at }}</td>
  43. <td>
  44. <div class="btn-group-xs" >
  45. <a class="btn btn-default" href="{{ route('admin.recommendation.edit',['id'=>$recommendation->id]) }}" data-toggle="tooltip" title="编辑推荐信息"><i class="fa fa-edit"></i></a>
  46. </div>
  47. </td>
  48. </tr>
  49. @endforeach
  50. </table>
  51. </div>
  52. </div>
  53. <div class="box-footer clearfix">
  54. {!! str_replace('/?', '?', $recommendations->render()) !!}
  55. </div>
  56. </form>
  57. </div>
  58. </div>
  59. </div>
  60. </section>
  61. @endsection
  62. @section('script')
  63. <script type="text/javascript">
  64. set_active_menu('operations',"{{ route('admin.recommendation.index') }}");
  65. </script>
  66. @endsection