option('account_number'); $period = $this->option('period'); $this->info('Starting period statement export process...'); try { $controller = app(WebstatementController::class); $response = $controller->printStatementRekening($accountNumber, $period); $responseData = json_decode($response->getContent(), true); $this->info($responseData['message']); // Display summary of jobs queued $jobCount = count($responseData['jobs'] ?? []); $this->info("Successfully queued {$accountNumber} statement export jobs"); return Command::SUCCESS; } catch (Exception $e) { $this->error('Error exporting statements: ' . $e->getMessage()); return Command::FAILURE; } } }