We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6808dc commit 0745935Copy full SHA for 0745935
resources/views/components/metric.blade.php
@@ -32,8 +32,8 @@
32
<script>
33
document.addEventListener('alpine:init', () => {
34
Alpine.data('chart', () => ({
35
- metric: <?php echo json_encode($metric); ?>,
36
- period: <?php echo json_encode($metric->defaultView); ?>,
+ metric: {{ Js::from($metric) }},
+ period: {{ Js::from($metric->defaultView) }},
37
points: [
38
[],
39
0 commit comments