1
0

index.blade.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @extends('settings.template-vue')
  2. @section('section')
  3. <div class="d-flex h-100 flex-column">
  4. <div class="d-flex justify-content-between align-items-center">
  5. <div class="title d-flex align-items-center" style="gap: 1rem;">
  6. <p class="mb-0"><a href="/settings/home"><i class="far fa-chevron-left fa-lg"></i></a></p>
  7. <h3 class="font-weight-bold mb-0">Parental Controls</h3>
  8. </div>
  9. </div>
  10. <hr />
  11. @if($children->count())
  12. <div class="d-flex flex-column flex-grow-1 w-100">
  13. <div class="list-group w-100">
  14. @foreach($children as $child)
  15. <a class="list-group-item d-flex align-items-center text-decoration-none text-dark" href="{{ $child->manageUrl() }}" style="gap: 1rem;">
  16. <img src="/storage/avatars/default.png" width="40" height="40" class="rounded-circle" />
  17. <div class="flex-grow-1">
  18. @if($child->child_id && $child->email_verified_at)
  19. <p class="font-weight-bold mb-0" style="line-height: 1.5;">&commat;{{ $child->childAccount()['username'] }}</p>
  20. <p class="small text-muted mb-0" style="line-height: 1;">{{ $child->childAccount()['display_name'] }}</p>
  21. @else
  22. <p class="font-weight-light mb-0 text-danger" style="line-height: 1.5;">Invite Pending</p>
  23. <p class="mb-0 small" style="line-height: 1;">{{ $child->email }}</p>
  24. @endif
  25. </div>
  26. <div class="font-weight-bold small text-lighter" style="line-height:1;">
  27. <i class="far fa-clock mr-1"></i>
  28. {{ $child->updated_at->diffForHumans() }}
  29. </div>
  30. </a>
  31. @endforeach
  32. </div>
  33. <div class="mt-3">
  34. {{ $children->links() }}
  35. </div>
  36. </div>
  37. @else
  38. <div class="d-flex flex-grow-1 bg-light mb-3 rounded p-4">
  39. <p>You are not managing any children accounts.</p>
  40. </div>
  41. @endif
  42. <div class="d-flex justify-content-between align-items-center">
  43. <a class="btn btn-outline-dark font-weight-bold py-2 px-4" href="{{ route('settings.pc.add') }}">
  44. <i class="far fa-plus mr-2"></i> Add Child
  45. </a>
  46. <div class="font-weight-bold">
  47. <span>{{ $children->total() }}/{{ config('instance.parental_controls.limits.max_children') }}</span>
  48. <span>children added</span>
  49. </div>
  50. </div>
  51. </div>
  52. @endsection