fix: move script block outside foreach to prevent const redeclaration error
This commit is contained in:
@@ -155,6 +155,12 @@ $aggregatedMetrics = $aggregatedMetrics ?? [];
|
|||||||
· <?= date('H:i', strtotime($activity['created_at'] ?? '')) ?>
|
· <?= date('H:i', strtotime($activity['created_at'] ?? '')) ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js"></script>
|
||||||
@@ -298,9 +304,4 @@ if (aggregatedData.length > 0) {
|
|||||||
|
|
||||||
setInterval(refreshAggregatedChart, 30000);
|
setInterval(refreshAggregatedChart, 30000);
|
||||||
</script>
|
</script>
|
||||||
<?php endforeach; ?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user