index.blade.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @extends('layouts.app')
  2. @section('title')日志@endsection
  3. @section('content')
  4. <span id="nav2">
  5. @component('maintenance.menu')@endcomponent
  6. @component('maintenance.log.menu')@endcomponent
  7. </span>
  8. <div class="container-fluid">
  9. <div class="card">
  10. <div class="card-body">
  11. @if(Session::has('successTip'))
  12. <div class="alert alert-success h1">{{Session::get('successTip')}}</div>
  13. @endif
  14. <table class="table table-striped table-sm" id="list">
  15. <tr>
  16. <th>ID</th>
  17. <th>用户</th>
  18. <th>操作</th>
  19. <th>类型</th>
  20. <th>ip</th>
  21. <th>时间</th>
  22. </tr>
  23. @foreach($logs as $log)
  24. <tr class="hover" onclick="location.href='{{url('maintenance/log/'.$log['id'])}}'" style="cursor: pointer">
  25. <td class="text-muted">{{$log['id']}}</td>
  26. <td>{{$log['user_name']}}</td>
  27. <td>{{$log['operation']}}</td>
  28. <td>{{$log['type']}}</td>
  29. <td>{{$log['ip']}}</td>
  30. <td>{{$log['created_at']}}</td>
  31. </tr>
  32. @endforeach
  33. </table>
  34. {{$logs->links()}}
  35. </div>
  36. </div>
  37. </div>
  38. <style>
  39. .hover:hover{
  40. color: #1f6fb2;
  41. }
  42. </style>
  43. @endsection