home.blade.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @extends('admin.partial.template-full')
  2. @section('section')
  3. <div class="title">
  4. <h3 class="font-weight-bold d-inline-block">Apps</h3>
  5. <span class="float-right">
  6. <div class="dropdown">
  7. <button class="btn btn-light btn-sm dropdown-toggle font-weight-bold" type="button" id="filterDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  8. <i class="fas fa-filter"></i>
  9. </button>
  10. <div class="dropdown-menu dropdown-menu-right" aria-labelledby="filterDropdown">
  11. <a class="dropdown-item font-weight-light" href="{{route('admin.apps')}}?filter=revoked">Show only Revoked</a>
  12. <a class="dropdown-item font-weight-light" href="{{route('admin.apps')}}">Show all</a>
  13. </div>
  14. </div>
  15. </span>
  16. </div>
  17. <hr>
  18. <div class="table-responsive">
  19. <table class="table">
  20. <thead class="bg-light">
  21. <tr>
  22. <th scope="col">#</th>
  23. <th scope="col">Owner</th>
  24. <th scope="col" width="25%">Name</th>
  25. <th scope="col">Callback URL</th>
  26. <th scope="col">Revoked</th>
  27. <th scope="col">Created</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. @foreach($apps as $app)
  32. <tr>
  33. <td>
  34. <a href="/i/admin/apps/show/{{$app->id}}" class="btn btn-sm btn-outline-primary">
  35. {{$app->id}}
  36. </a>
  37. </td>
  38. <td class="font-weight-bold"><a href="{{$app->user->url()}}">{{$app->user->username}}</a></td>
  39. <td class="font-weight-bold">{{$app->name}}</td>
  40. <td class="font-weight-bold">{{str_limit($app->redirect, 30)}}</td>
  41. <td class="font-weight-bold">{{$app->revoked ? 'true' : 'false'}}</td>
  42. <td class="font-weight-bold">{{now()->parse($app->created_at)->diffForHumans()}}</td>
  43. </tr>
  44. @endforeach
  45. </tbody>
  46. </table>
  47. </div>
  48. @endsection