verification-tokens.blade.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @extends('app.my-account.layout-lite')
  2. @section('page')
  3. <div class="px-3">
  4. <div class="d-flex align-items-baseline border-bottom px-3 py-2 mb-2 m-neg-3 bg-light">
  5. <h2 class="font-size-16 text-secondary fw-bold m-0 me-3">Login Attempt Verification Pins</h2>
  6. </div>
  7. @include('app.my-account.admin.login-attempts.filters')
  8. <div class="table-responsive">
  9. <table class="table table-sm table-hover table-striped table-bordered mb-0">
  10. <thead class="fw-bold text-secondary bg-light">
  11. <tr>
  12. <th>Created At</th>
  13. <th>Email Address</th>
  14. <th>Name</th>
  15. <th>Token</th>
  16. <th>Phone</th>
  17. <th>Last Sent</th>
  18. <th>Pin Verified</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. @foreach ($records as $record)
  23. <tr>
  24. <td>{{ friendly_date($record->created_at ?? $record->updated_at) }}</td>
  25. <td>{{ $record->email }}</td>
  26. <td>{{ $record->displayName() }}</td>
  27. <td>{{ $record->pin }}</td>
  28. <td>{{ $record->phone_number }}</td>
  29. <td>{{ $record->pin_last_updated_at ? friendly_date($record->pin_last_updated_at) : '---' }}
  30. </td>
  31. <td>
  32. @if($record->was_pin_validation_successful)
  33. <span class="text-success">YES</span>
  34. @else
  35. <span class="text-danger">NO</span>
  36. @endif
  37. </td>
  38. </tr>
  39. @endforeach
  40. </tbody>
  41. </table>
  42. </div>
  43. <div class="mt-3">
  44. {{ $records->appends(request()->input())->links() }}
  45. </div>
  46. </div>
  47. @endsection