argument('log-id'); try { $log = PrintStatementLog::findOrFail($logId); $this->info("📊 Progress Pengiriman Email Statement"); $this->line("Log ID: {$log->id}"); $this->line("Batch ID: {$log->batch_id}"); $this->line("Request Type: {$log->request_type}"); $this->line("Status: {$log->status}"); if ($log->total_accounts) { $this->line("Total Accounts: {$log->total_accounts}"); $this->line("Processed: {$log->processed_accounts}"); $this->line("Success: {$log->success_count}"); $this->line("Failed: {$log->failed_count}"); $this->line("Progress: {$log->getProgressPercentage()}%"); $this->line("Success Rate: {$log->getSuccessRate()}%"); } if ($log->started_at) { $this->line("Started: {$log->started_at}"); } if ($log->completed_at) { $this->line("Completed: {$log->completed_at}"); } if ($log->error_message) { $this->error("Error: {$log->error_message}"); } } catch (\Exception $e) { $this->error("Log dengan ID {$logId} tidak ditemukan."); return Command::FAILURE; } return Command::SUCCESS; } }