index.blade.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.notice.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.notice.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>URL</th>
  30. {{-- <th>状态</th>--}}
  31. <th>更新时间</th>
  32. <th>操作</th>
  33. </tr>
  34. @foreach($notices as $notice)
  35. <tr>
  36. <td><input type="checkbox" value="{{ $notice->id }}" name="ids[]"/></td>
  37. <td @if($notice->style) {!! $notice->style !!} @endif> {!! $notice->subject !!}</td>
  38. <td>{{ $notice->url }}</td>
  39. {{-- <td>{{ trans_common_status($notice->status) }}</td>--}}
  40. <td>{{ $notice->updated_at }}</td>
  41. <td>
  42. <div class="btn-group-xs" >
  43. <a class="btn btn-default" href="{{ route('admin.notice.edit',['id'=>$notice->id]) }}" data-toggle="tooltip" title="编辑公告信息"><i class="fa fa-edit"></i></a>
  44. </div>
  45. </td>
  46. </tr>
  47. @endforeach
  48. </table>
  49. </div>
  50. </div>
  51. <div class="box-footer clearfix">
  52. {!! str_replace('/?', '?', $notices->render()) !!}
  53. </div>
  54. </form>
  55. </div>
  56. </div>
  57. </div>
  58. </section>
  59. @endsection
  60. @section('script')
  61. <script type="text/javascript">
  62. set_active_menu('operations',"{{ route('admin.notice.index') }}");
  63. </script>
  64. @endsection