@extends('layouts.app') @section('title', 'Notifications') @section('content')

🔔 Notification Center

Stay updated with the latest news and announcements

@if($notifications->where('read_at', null)->count() > 0)
@csrf
@endif
@if($notifications->count() > 0)
@foreach($notifications as $notification)
@switch($notification->type) @case('challenge_accepted') ⚔️ @break @case('challenge_result') 🏆 @break @case('tournament_invite') 🎮 @break @case('wallet_deposit') 💰 @break @case('wallet_withdrawal') 💸 @break @case('dispute_resolved') ⚖️ @break @case('level_up') 📈 @break @case('badge_earned') 🏅 @break @default 📢 @endswitch

{{ $notification->title }}

{{ $notification->created_at->diffForHumans() }} @if(!$notification->read_at) New @endif

{{ $notification->body }}

@if($notification->data && isset($notification->data['action_url'])) @endif
@if(!$notification->read_at)
@endif
@endforeach
{{ $notifications->links() }}
@else
🔔

No notifications yet

When you receive notifications about challenges, tournaments, or other activities, they'll appear here.

Browse Challenges
@endif
@endsection