<?php

session_start();

require_once __DIR__ . '/../../library/config.php';

require_once __DIR__ . '/../../library/super_admin_notification_helper.php';

/*
|--------------------------------------------------------------------------
| DUMMY NOTIFICATIONS
|--------------------------------------------------------------------------
*/

$dummyNotifications = [

    [
        'title'   => 'Subscription Expiring Soon',
        'message' => 'ABC Public School subscription will expire in 3 days.',
        'type'    => 'Warning',
        'school_id' => 1
    ],

    [
        'title'   => 'New School Registered',
        'message' => 'Bright Future School has been created successfully.',
        'type'    => 'Success',
        'school_id' => 2
    ],

    [
        'title'   => 'Payment Pending',
        'message' => 'XYZ Academy has pending subscription payment.',
        'type'    => 'Danger',
        'school_id' => 3
    ],

    [
        'title'   => 'Trial Plan Ending',
        'message' => 'Demo School trial will end tomorrow.',
        'type'    => 'Info',
        'school_id' => 4
    ],

];

/*
|--------------------------------------------------------------------------
| INSERT NOTIFICATIONS
|--------------------------------------------------------------------------
*/

foreach ($dummyNotifications as $notification) {

    createSuperAdminNotification($pdo, $notification);
}

echo "

<h2 style='font-family: Arial;'>

    Dummy notifications inserted successfully 😄🔥

</h2>

";