@forelse($notifications as $row) @empty @endforelse
ID Notification Details Target Audience Status / Schedule Clicks Actions
{{ $row->id }}
@if($row->image_url) @php $img_url = str_starts_with($row->image_url, 'http') ? $row->image_url : asset('storage/' . $row->image_url); @endphp @endif
{{ $row->title }}

{{ $row->message }}

{{ $row->rel_type }} @if($row->rel_value) @if($row->rel_type === 'user') @php $targetUser = $row->user; @endphp
@if($targetUser) User: {{ $targetUser->name }}
Email: {{ $targetUser->email ?? 'N/A' }} @else ID: {{ $row->rel_value }} (DELETED) @endif
@elseif($row->rel_type === 'version')
Version Code: {{ $row->rel_value }}
@endif @endif
@if($row->is_sent)
Sent
Sent At: {{ $row->sent_at ? $row->sent_at->format('d-m-Y h:i A') : 'N/A' }}
@else
Pending
@endif
Scheduled: {{ $row->schedule_time ? $row->schedule_time->format('d-m-Y h:i A') : 'Immediate' }}
Created: {{ $row->created_at->format('d-m-Y h:i A') }}
{{ $row->clicks_count }}
No notifications found in queue.
Showing {{ $notifications->firstItem() ?? 0 }} to {{ $notifications->lastItem() ?? 0 }} of {{ $notifications->total() }} notifications
{!! $notifications->links('pagination::bootstrap-4') !!}