fix: Corrected syntax error in project-map Blade template that was preventing map loading; fixed @json() syntax to !!json_encode()!!

This commit is contained in:
2026-05-11 18:13:05 +02:00
parent a4547d4bda
commit 7959d44211
@@ -252,7 +252,7 @@
]; ];
@endphp @endphp
(function() { (function() {
const data = @json($fc); const data = !!json_encode($fc)!!;
if (data && data.features && data.features.length > 0) { if (data && data.features && data.features.length > 0) {
const phaseLayer = L.geoJSON(data, { const phaseLayer = L.geoJSON(data, {
style: { color: '{{ $phase->color }}', weight: 3, opacity: 0.8, fillOpacity: 0.3 }, style: { color: '{{ $phase->color }}', weight: 3, opacity: 0.8, fillOpacity: 0.3 },