@foreach($getState() as $key => $value) {{ $key }} @if(is_array($value)) @foreach ($value as $nestedKey => $nestedValue) {{ $nestedKey }}: {{ is_array($nestedValue) ? json_encode($nestedValue) : $nestedValue }} @endforeach @else {{ $value }} @endif @endforeach