- integrate spatie/icalendar-generator for candidate & panelist .ics invitations (RSVP & 15m alerts)
- add StoreInterviewRequest, ScheduleInterviewDto, and invitation/reminder queued actions
- add migration for job_title, round, description, and reminder_sent_at on interviews table
- style datetime-local picker indicators to pure white on dark input backgrounds
- support button loading spinners with :showLoader="true" and loadingText
- auto-open schedule drawer on validation failure with inline @error alerts and old() bindings
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Actions\Interview\SendUpcomingInterviewRemindersAction;
|
|
use Illuminate\Console\Command;
|
|
|
|
class SendInterviewRemindersCommand extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'interview:send-reminders {--window=20 : Minutes ahead to look for upcoming interviews}';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Scan and send 15-minute advance reminder emails for upcoming scheduled interviews';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*/
|
|
public function handle(SendUpcomingInterviewRemindersAction $action): int
|
|
{
|
|
$window = (int) $this->option('window');
|
|
$this->info("Checking for scheduled interviews starting within next {$window} minutes...");
|
|
|
|
$count = $action->execute($window);
|
|
|
|
$this->info("Successfully processed and dispatched reminders for {$count} interview session(s).");
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|