@extends('dashboard.layouts.main') @section('title', 'Core Mining ⛏️- AI Gold Mining ⛏️') @push('styles') @endpush @section('content')

Notifications

@if($notifications->count() > 0 && $notifications->where('is_read', false)->count() > 0)
@endif
@forelse($notifications as $notification) @php $iconClass = 'fas fa-bell'; $typeClass = ''; if (str_contains($notification->type, 'deposit')) { $iconClass = 'fas fa-arrow-down'; $typeClass = 'deposit'; } elseif (str_contains($notification->type, 'withdrawal')) { $iconClass = 'fas fa-arrow-up'; $typeClass = 'withdrawal'; } elseif (str_contains($notification->type, 'admin')) { $iconClass = 'fas fa-bullhorn'; $typeClass = 'admin'; } @endphp
{{ $notification->title }}
{{ $notification->message }}
{{ $notification->created_at->format('M d, Y h:i A') }}
@empty
No notifications yet
@endforelse
@if($notifications->hasPages())
@if($notifications->onFirstPage()) @else @endif @foreach($notifications->getUrlRange(1, $notifications->lastPage()) as $page => $url) @if($page == $notifications->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach @if($notifications->hasMorePages()) @else @endif
@endif
@push('scripts') @endpush @endsection