<?php

namespace App\Console\Commands\Finance;

use Illuminate\Console\Command;

class SendPaymentReminders extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'finance:send-reminders';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Send upcoming and overdue payment reminders to clients';

    /**
     * Execute the console command.
     */
    public function handle(\App\Modules\FINANCE\Services\ReminderService $service)
    {
        $this->info('Starting payment reminder process...');
        
        $service->processReminders();
        
        $this->info('Payment reminder process completed.');
    }
}
