@yield('styles')
Good {{ date('H') < 12 ? 'morning' : (date('H') < 18 ? 'afternoon' : 'evening') }}, {{ auth()->user()->name ?? 'Admin' }}
{{ date('l, d F Y') }}
1 CNY = {{ number_format(1 / ($exchangeRate ?? 0.57), 4) }} GHS
@if(isset($smsBalance))
SMS: {{ number_format($smsBalance, 0) }} credits
@endif
@if(isset($stats) && $stats['pending_withdrawals'] > 0)
@endif
Notifications
@if(isset($stats) && $stats['pending_withdrawals'] > 0) {{ $stats['pending_withdrawals'] }} @endif
@if(isset($stats) && $stats['pending_withdrawals'] > 0) @php $pendingWithdrawals = \App\Models\WalletTransaction::with('user') ->where('type', 'withdraw') ->where('status', 'pending') ->latest() ->take(5) ->get(); @endphp @foreach($pendingWithdrawals as $withdrawal)
{{ $withdrawal->user->name }} requested withdrawal of ¥{{ number_format($withdrawal->amount, 2) }}
{{ $withdrawal->created_at->diffForHumans() }}
@endforeach @endif @php $recentTransactions = \App\Models\WalletTransaction::with('user') ->where('type', 'topup') ->where('status', 'completed') ->latest() ->take(3) ->get(); @endphp @foreach($recentTransactions as $transaction)
{{ $transaction->user->name }} completed payment of ₵{{ number_format($transaction->amount, 2) }}
{{ $transaction->created_at->diffForHumans() }}
@endforeach @if((!isset($stats) || $stats['pending_withdrawals'] == 0) && $recentTransactions->isEmpty())

No new notifications

@endif
{{ strtoupper(substr(auth()->user()->name ?? 'AD', 0, 2)) }}
@yield('content')
@yield('scripts') @include('components.tawk-chat')