@aware(['field', 'model'])

<div class="flex flex-wrap items-start -mx-2" wire:key="tab-field-{{ md5(json_encode($field)) }}">
    @if(optional($field)['fields'])
        @foreach($field['fields'] as $key => $field)
            <x-aura::fields.conditions :field="$field" :model="$model">
                <x-dynamic-component :component="$field['field']->component()" :field="$field" />
            </x-aura::fields.conditions>
        @endforeach
    @else
        <span>{{ $field['name'] }}</span>
    @endif
</div>
