@props([
	'label' => null,
	'value' => null,
	'group' => null,
	'jsonName' => null,
])
<input type="text" data-json_group="{{ $group }}" value="{{ $label }}" disabled>

@if(is_array($value))

@foreach($value AS $childLabel => $childValue)
<x-bs-form.json-key
	:jsonName="$label . '.' . $childLabel"
	:label=$childLabel
	:value=$childValue
	:group=$group
/>
@endforeach

@else
<x-bs-form.json-value
	:jsonName=$jsonName
	:value=$value
	:group=$group
/>
@endif