multiple bug fixes including sender ID filtering

This commit is contained in:
Kwesi Banson Jnr
2026-04-16 14:22:04 +00:00
parent 72180de8e4
commit 5dbe76dbd4
380 changed files with 175085 additions and 203 deletions

View File

@@ -0,0 +1,43 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Http\Controllers\HolidaysController;
class ProcessHolidayAlert extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'holidayalerts:send';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Send Upcoming Holiday Alerts to team members';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct(HolidaysController $hoidays_alerts)
{
parent::__construct();
$this->hoidays_alerts = $hoidays_alerts;
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->hoidays_alerts->getHolidayDetails();
}
}

View File

@@ -14,7 +14,8 @@ class Kernel extends ConsoleKernel
*/
protected $commands = [
Commands\SendContractRenewalReminders::class,
Commands\ProcessClientContractRenewalAlert::class
Commands\ProcessClientContractRenewalAlert::class,
Commands\ProcessHolidayAlert::class
];
/**
@@ -30,6 +31,7 @@ class Kernel extends ConsoleKernel
$schedule->command('renewal:send')->weekdays()->at('13:00');
$schedule->command('client_renewal:send')->weekdays()->at('14:00');
$schedule->command('support_fees_renewal:send')->weekdays()->at('15:00');
$schedule->command('holidayalerts:send')->weekdays()->at('16:00');
}
/**