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

OneSignal Test Notifications

Test your OneSignal notification system with real users and transactions.

Configuration Status
OneSignal App ID: @if(config('onesignal.app_id')) Configured @else Not Configured @endif
REST API Key: @if(config('onesignal.rest_api_key')) Configured @else Not Configured @endif
Users with OneSignal Player IDs ({{ $usersWithPlayerIds->count() }})
@if($usersWithPlayerIds->count() > 0)
@foreach($usersWithPlayerIds as $user) @endforeach
ID Name Email Player ID Actions
{{ $user->id }} {{ $user->name }} {{ $user->email }} {{ Str::limit($user->onesignal_player_id, 20) }}
@else
No users with OneSignal player IDs found. Make sure users have logged into the mobile app to register their player IDs.
@endif
Recent Transactions ({{ $recentTransactions->count() }})
@if($recentTransactions->count() > 0)
@foreach($recentTransactions as $transaction) @endforeach
ID Type Amount Status User Date Actions
{{ $transaction->id }} {{ ucfirst($transaction->transaction_type) }} {{ number_format($transaction->transaction_amount, 2) }} @if($transaction->status === 'approved') Approved @elseif($transaction->status === 'rejected') Rejected @else Pending @endif @if($transaction->from_account && $transaction->from_account->customer && $transaction->from_account->customer->user) {{ $transaction->from_account->customer->user->name }} @else No user @endif {{ $transaction->created_at->format('M d, Y H:i') }} @if($transaction->from_account && $transaction->from_account->customer && $transaction->from_account->customer->user) @else No user @endif
@else
No recent transactions found.
@endif
Broadcast Test
@csrf
@endsection @section('page-script') @endsection