sessions.blade.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @extends('app.my-account.admin.users.single')
  2. @section('details')
  3. <div class="my-4">
  4. <h4><b>Sessions</b></h4>
  5. <div class="table-responsive">
  6. <table class="table table-sm table-hover table-striped table-bordered mb-0">
  7. <thead>
  8. <tr>
  9. <th>Status</th>
  10. <th>Started At</th>
  11. <th>Ended At</th>
  12. <th>IP Address</th>
  13. <th>Device Type</th>
  14. <th>Last Activity</th>
  15. <th></th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. @foreach($sessions as $session)
  20. <tr>
  21. <td>{{$session->is_active ? 'Active' : 'Inactive'}}</td>
  22. <td>{{friendly_date_time($session->started_at)}}</td>
  23. <td>{{friendly_date_time($session->ended_at)}}</td>
  24. <td>{{$session->ip_address}}</td>
  25. <td>{{$session->user_agent}}</td>
  26. <td>{{friendly_date_time($session->last_activity_at)}}</td>
  27. <td>@include('app.my-account.admin.users.forms.kill-session')</td>
  28. </tr>
  29. @endforeach
  30. </tbody>
  31. </table>
  32. </div>
  33. </div>
  34. <div class="mt-3">
  35. {{ $sessions->appends(request()->input())->links() }}
  36. </div>
  37. @endsection