[ 'cron.line_lists-sync-from-linelists-to-weldlog', 'cron.line_lists-sync-from-linelists-paint-matrix', 'cron.line_lists-sync-from-linelists-nde-matrix', ], 'nde_matrices' => [ 'cron.nde_matrices-sync-nde-to-weldlog', ], 'weld_logs' => [ 'cron.weld_logs-sync-from-weldlog-to-paint-follow-up', 'cron.weld_logs-sync-from-weldlog-to-test-pack', 'cron.weld_logs-sync-weldlog-nde-project', ], 'incoming_control_paints' => [ 'cron.incoming_control_paints-sync-from-incoming-control-paint-paint-follow-up', ], 'punch_lists' => [ 'cron.punch_lists-sync-punch-qty', ], ]; if(isset($syncMap[$tableName])) { foreach($syncMap[$tableName] AS $syncPath) { try { \App\Jobs\SyncTriggerJob::dispatch($syncPath, $id); \Log::info("SyncTriggerJob dispatched for $syncPath with ID $id"); } catch (\Exception $e) { \Log::error("Failed to dispatch SyncTriggerJob for $syncPath", [ 'id' => $id, 'error' => $e->getMessage() ]); } } } } ?>