@extends('core::layouts.dashboard') @section('title', 'Notifikasi') @section('content')
{{-- Page Header --}} {{-- Notifications Content --}}
@if($notifications->isEmpty())

Tidak Ada Notifikasi

Anda belum memiliki notifikasi

@else
@foreach($notifications as $notification)
@php $icon = 'fa-bell'; $iconClass = 'default'; if(isset($notification->data['type'])) { switch($notification->data['type']) { case 'reward': $icon = 'fa-gift'; $iconClass = 'success'; break; case 'event': $icon = 'fa-calendar-check'; $iconClass = 'info'; break; case 'game': $icon = 'fa-gamepad'; $iconClass = 'primary'; break; case 'academy': $icon = 'fa-video'; $iconClass = 'warning'; break; case 'security': $icon = 'fa-shield-alt'; $iconClass = 'danger'; break; case 'coin': $icon = 'fa-coins'; $iconClass = 'warning'; break; case 'point': $icon = 'fa-star'; $iconClass = 'info'; break; } } @endphp

{{ $notification->data['title'] ?? 'Notifikasi' }}

{{ $notification->data['message'] ?? 'Anda memiliki notifikasi baru' }}

@if(!$notification->read_at) @endif
@endforeach
{{-- Pagination --}}
{{ $notifications->links() }}
@endif
@endsection