Most languages let you cycle through a json object, getting the top level names.
object = {
"a": {"inner json objects"},
"b" : {"..."},
"C" : {"..."}
}
For example in html.twig the syntax is as such:
{% for title, section in object %}
// do something with title (ie. a, b, c)
// do something (cycle through) with section(ie. '...')
{% endfor %}
I want to do the equivalent in blade.php.
I have tried multiple variations on the blade syntax, such as
@foreach(json_encode($object) as $title)
but I can't figure it out, and I can't find any appropriate documentation online. This stackoverflow question is the closest I could find., but it isn't quite appropriate as it doesn't stipulate the object I'm grabbing from
Any help would be appreciated.