add docker for server demo
This commit is contained in:
@@ -54,10 +54,17 @@ class SyncGoogleSheetData extends Command
|
||||
$result = $service->sync_leader_data();
|
||||
$this->info('✅ Leader data synchronized successfully!');
|
||||
$this->table(['Section', 'Total', 'Nominal'], collect($result)->map(function($item, $key) {
|
||||
// Convert nominal to numeric before formatting
|
||||
$nominal = $item['nominal'] ?? 0;
|
||||
if (is_string($nominal)) {
|
||||
// Remove dots and convert to float
|
||||
$nominal = (float) str_replace('.', '', $nominal);
|
||||
}
|
||||
|
||||
return [
|
||||
$key,
|
||||
$item['total'] ?? 'N/A',
|
||||
number_format($item['nominal'] ?? 0, 0, ',', '.')
|
||||
number_format((float) $nominal, 0, ',', '.')
|
||||
];
|
||||
})->toArray());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user