Notification Details
Notification Information
Notification ID:
{{ $notification->id }}
Notification Type:
@if($notification->notified_at)
Real-Time Notification
@endif
@if($notification->digest_sent_at)
@if($notification->notified_at)
@endif Digest Email @endif
@endif Digest Email @endif
Real-Time Sent At:
{{ $notification->notified_at->format('F j, Y g:i A') }}
({{ $notification->notified_at->diffForHumans() }})
Digest Sent At:
{{ $notification->digest_sent_at->format('F j, Y g:i A') }}
({{ $notification->digest_sent_at->diffForHumans() }})
Created At:
{{ $notification->created_at->format('F j, Y g:i A') }}
({{ $notification->created_at->diffForHumans() }})
User Information
@if($notification->user)
@php
$userProfile = $notification->user->profile ?? null;
$userName = $userProfile ? ($userProfile->first_name . ' ' . $userProfile->last_name) : 'N/A';
@endphp
Name:
{{ trim($userName) !== 'N/A' ? $userName : 'User #' . substr($notification->user_id, 0, 8) }}
{{ trim($userName) !== 'N/A' ? $userName : 'User #' . substr($notification->user_id, 0, 8) }}
User ID:
@else
{{ $notification->user->id }}
User not found or deleted
@endifScholarship Information
@if($notification->scholarship)
@if($notification->scholarship->description)
Country:
{{ $notification->scholarship->country ?? 'N/A' }}
{{ $notification->scholarship->country ?? 'N/A' }}
Degree Level:
{{ ucfirst($notification->scholarship->degree_level ?? 'N/A') }}
{{ ucfirst($notification->scholarship->degree_level ?? 'N/A') }}
Status:
@if($notification->scholarship->status === 'approved') Approved @elseif($notification->scholarship->status === 'pending') Pending @else Rejected @endif
@if($notification->scholarship->status === 'approved') Approved @elseif($notification->scholarship->status === 'pending') Pending @else Rejected @endif
Deadline:
{{ $notification->scholarship->deadline ? $notification->scholarship->deadline->format('F j, Y') : 'Not specified' }}
{{ $notification->scholarship->deadline ? $notification->scholarship->deadline->format('F j, Y') : 'Not specified' }}
Scholarship ID:
{{ $notification->scholarship->id }}
Description:
@endif
@else
{{ Str::limit($notification->scholarship->description, 500) }}
Scholarship not found or deleted
@endif