@extends('layouts.app') @section('content')
Send notifications to users across the portal
Total Sent
{{ \DB::table('notifications')->count() }}
Active Users
{{ \App\Models\User::count() + \App\Models\Staff::where('is_confirmed', true)->count() + \App\Models\Student::where('is_confirmed', true)->count() }}
Today's Sent
{{ \DB::table('notifications')->whereDate('created_at', today())->count() }}
{{ json_decode($notification->data)->message ?? '' }}
{{ \Carbon\Carbon::parse($notification->created_at)->diffForHumans() }}
No notifications sent yet