index.blade.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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="item_form" id="item_form" method="post">
  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.friendshipLink.create') }}" class="btn btn-default btn-sm" data-toggle="tooltip" title="添加友情链接"><i class="fa fa-plus"></i></a>
  18. <button type="button" class="btn btn-default btn-sm" data-toggle="tooltip" title="删除选中项" onclick="confirm_submit('item_form','{{ route('admin.friendshipLink.destroy') }}','确定删除选中项?')"><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>网站slogan</th>
  31. <th>网站URL</th>
  32. <th>创建时间</th>
  33. <th>状态</th>
  34. <th>操作</th>
  35. </tr>
  36. @foreach($links as $link)
  37. <tr>
  38. <td><input type="checkbox" value="{{ $link->id }}" name="ids[]"/></td>
  39. <td>{{ $link->sort }}</td>
  40. <td>{{ $link->name }}</td>
  41. <td>{{ $link->slogan }}</td>
  42. <td>{{ $link->url }}</td>
  43. <td>{{ $link->created_at }}</td>
  44. <td><span class="label @if($link->status===0) label-danger @else label-success @endif">{{ trans_common_status($link->status) }}</span> </td>
  45. <td>
  46. <div class="btn-group-xs" >
  47. <a class="btn btn-default" href="{{ route('admin.friendshipLink.edit',['id'=>$link->id]) }}" data-toggle="tooltip" title="编辑公告信息"><i class="fa fa-edit"></i></a>
  48. </div>
  49. </td>
  50. </tr>
  51. @endforeach
  52. </table>
  53. </div>
  54. </div>
  55. <div class="box-footer clearfix">
  56. {!! str_replace('/?', '?', $links->render()) !!}
  57. </div>
  58. </form>
  59. </div>
  60. </div>
  61. </div>
  62. </section>
  63. @endsection
  64. @section('script')
  65. <script type="text/javascript">
  66. set_active_menu('operations',"{{ route('admin.friendshipLink.index') }}");
  67. </script>
  68. @endsection