User Personal Information
Unauthorized Access Attempts
@php
$unauthorizedAccess = App\Models\UnauthorizedAccess::where('user_id', $user->id)
->orderBy('attempted_at', 'desc')
->get();
$totalAttempts = $unauthorizedAccess->count();
$todayAttempts = $unauthorizedAccess->where('attempted_at', '>=', now()->startOfDay())->count();
$thisWeekAttempts = $unauthorizedAccess->where('attempted_at', '>=', now()->startOfWeek())->count();
$thisMonthAttempts = $unauthorizedAccess->where('attempted_at', '>=', now()->startOfMonth())->count();
@endphp
{{ $totalAttempts }}
Total Attempts
{{ $todayAttempts }}
Today
{{ $thisWeekAttempts }}
This Week
{{ $thisMonthAttempts }}
This Month
| Date & Time |
Route Name |
URL Attempted |
Method |
User Role |
Required Roles |
IP Address |
@forelse($unauthorizedAccess as $attempt)
| {{ $attempt->attempted_at->format('Y-m-d H:i:s') }} |
{{ $attempt->route_name }} |
{{ $attempt->url_attempted }} |
{{ $attempt->method }} |
{{ $attempt->user_role }} |
{{ $attempt->required_roles }} |
{{ $attempt->ip_address }} |
@empty
No Unauthorized Access Attempts
This user has not attempted to access unauthorized resources.
|
@endforelse