Visitor management app with SSO, kiosk, badges, reports, and Gitea CI deploy to frontdesk.ladill.com. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
561 B
PHP
23 lines
561 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Services\Frontdesk\VisitLifecycleService;
|
|
use Illuminate\Console\Command;
|
|
|
|
class MarkOverdueVisitsCommand extends Command
|
|
{
|
|
protected $signature = 'frontdesk:mark-overdue-visits';
|
|
|
|
protected $description = 'Mark expected and scheduled visits past their scheduled time as overdue';
|
|
|
|
public function handle(VisitLifecycleService $lifecycle): int
|
|
{
|
|
$count = $lifecycle->markOverdueVisits();
|
|
|
|
$this->info("Marked {$count} visit(s) as overdue.");
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|