{{-- Page Header --}}
Activity

Notifications

Stay up-to-date with your purchases, support replies, and platform news.

@if(isset($notifications) && $notifications->count() > 0)
@csrf @method('PUT')
@endif
{{-- Notifications List --}}
@if(isset($notifications) && $notifications->count() > 0)
{{ $notifications->count() }} Updates
@foreach ($notifications as $notification) @php $data = $notification->data ?? []; $isUnread = is_null($notification->read_at); // Determine styling based on type $type = $data['type'] ?? 'default'; switch($type) { case 'purchase': $iconColorBg = 'bg-emerald-500/10'; $iconColorText = 'text-emerald-400'; $iconBorder = 'border-emerald-500/20'; $unreadBg = 'bg-emerald-500/[0.03]'; break; case 'ticket': $iconColorBg = 'bg-indigo-500/10'; $iconColorText = 'text-indigo-400'; $iconBorder = 'border-indigo-500/20'; $unreadBg = 'bg-indigo-500/[0.03]'; break; case 'promo': $iconColorBg = 'bg-amber-500/10'; $iconColorText = 'text-amber-400'; $iconBorder = 'border-amber-500/20'; $unreadBg = 'bg-amber-500/[0.03]'; break; default: $iconColorBg = 'bg-[#1a1a24]'; $iconColorText = 'text-text-dim'; $iconBorder = 'border-white/5'; $unreadBg = 'bg-white/[0.02]'; } @endphp
{{-- Unread Indicator Line --}} @if($isUnread)
@endif {{-- Icon Box --}}
@if($type === 'purchase') @elseif($type === 'ticket') @elseif($type === 'promo') @else @endif
{{-- Content --}}

{{ $data['title'] ?? $notification->type ?? 'System Update' }}

@if($isUnread) New @endif

{{ $data['message'] ?? 'You have a new notification regarding your account.' }}

{{ $notification->created_at->diffForHumans() }}

{{-- Action Arrow (Optional if it's a link) --}} @if(isset($data['url'])) @endif
@endforeach
@else

All caught up!

You have no new notifications at the moment. We'll alert you about purchases and support updates here.

@endif