{{--
{{ __('t.dash') }} {{ __('t.notify') }}
--}} {{-- Action Buttons --}}
@if($user->unreadNotifications->count() > 0) @endif
{{-- Notifications List --}}
@forelse($notifications as $notification)
{{-- Unread Indicator --}} @if(!$notification->read_at)
@endif
{{-- Notification Icon based on type --}}
@switch($notification->data['type'] ?? 'default') @case('deposit') @break @case('withdrawal') @break @case('investment') @break @case('roi') @break @default @endswitch
{{-- Content --}}
{{ $notification->created_at->diffForHumans() }}

{{ $notification->data['message'] }}

{{-- Action Buttons --}}
@if(!$notification->read_at) @endif
@empty

{{ __('t.no_notify') }}

{{ __('t.all_caught_up') }}

@endforelse
{{-- Pagination --}} @if($notifications->hasPages())
{{ $notifications->links() }}
@endif