<?php

use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;

Artisan::command('inspire', function () {
    $this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');

Schedule::command('app:send-daily-recap')
        ->dailyAt('17:00')
        ->timezone('Asia/Jakarta');

Schedule::command('app:check-low-stock')
        ->dailyAt('08:00')
        ->timezone('Asia/Jakarta');

Schedule::command('stock:close')->monthlyOn(1, '01:00');

// --- UNTUK REOPEN (Hanya ditambahkan agar Command dikenali) ---
// Kita tidak menjadwalkan ini karena Reopen hanya dijalankan manual saat butuh saja.
