make(Illuminate\Contracts\Console\Kernel::class); $kernel->bootstrap(); use App\Models\User; use App\Models\Employee; use App\Services\PayrollService; $user = User::find(4); $employee = Employee::where('user_id', 4)->first(); if (!$employee) { echo "Employee profile not found.\n"; exit; } $service = new PayrollService(); $result = $service->calculateForPeriod($employee, '2026-01-11', '2026-01-25'); echo json_encode($result, JSON_PRETTY_PRINT); echo "\n";