oauth.blade.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. @extends('admin.layouts')
  2. @section('css')
  3. <link href="/assets/global/vendor/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
  4. @endsection
  5. @section('content')
  6. <div class="page-content container-fluid">
  7. <div class="panel">
  8. <div class="panel-heading">
  9. <h2 class="panel-title">用户OAuth授权</h2>
  10. </div>
  11. <div class="panel-body">
  12. <table class="text-md-center" data-toggle="table" data-mobile-responsive="true">
  13. <thead class="thead-default">
  14. <tr>
  15. <th> #</th>
  16. <th> 用户</th>
  17. <th> 渠道</th>
  18. <th> 唯一标识</th>
  19. <th> {{trans('common.action')}}</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. @foreach ($list as $item)
  24. <tr>
  25. <td> {{$item->id}} </td>
  26. <td> {{$item->user->username ?? $item->user->id}} </td>
  27. <td> {{$item->type}} </td>
  28. <td> {{$item->identifier}} </td>
  29. <td>
  30. </td>
  31. </tr>
  32. @endforeach
  33. </tbody>
  34. </table>
  35. </div>
  36. <div class="panel-footer">
  37. <div class="row">
  38. <div class="col-sm-4">
  39. 共 <code>{{$list->total()}}</code> 个授权
  40. </div>
  41. <div class="col-sm-8">
  42. <nav class="Page navigation float-right">
  43. {{$list->links()}}
  44. </nav>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. @endsection
  51. @section('javascript')
  52. <script src="/assets/global/vendor/bootstrap-table/bootstrap-table.min.js"></script>
  53. <script src="/assets/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
  54. @endsection