Hi I need help for my project, I tried to make component panel named "x-panel-sum" and I pass a collection array into element "x-panel-sum". But when i call it from my main blade "index.blade" it turns to be weird such as i lose double quote symbol inside my collection
example:
- normally if i put collection directly in my index.blade
{{ $buildings }}
and it show to be like this:
[{"id":1,"name":"Kantor Pusat"}]
- But when i try to call x-component
<x-panel-sum building="{{ $buildings }}"></x-panel-sum>
and the result to be like this:
[{"id":1,"name":"Kantor Pusat}]
the double quote becomes """, How do i fix this?