File: /home/xedaptot/ai.naniguide.com/app/Notifications/System/CronJobNotRunning.php
<?php
namespace App\Notifications\System;
use App\Notifications\AppNotification;
class CronJobNotRunning extends AppNotification
{
public function __construct(public string $interval, public string $lastExecuted) {}
public function audience(): string { return self::AUDIENCE_ADMINS; }
public function category(): string { return self::CATEGORY_ALERT; }
public function severity(): string { return self::SEVERITY_WARNING; }
public function groupKey(): string { return 'cronjob-not-running'; }
public function toArray(object $notifiable = null): array
{
return [
'title' => 'CronJob',
'body' => trans('messages.admin.notification.cronjob_not_active', [
'cronjob_min_interval' => $this->interval,
'cronjob_last_executed' => $this->lastExecuted,
]),
];
}
}