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

<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)
        {{-- @dump($key) --}}
            @checkCondition($this->model ?? $model, $field, $this->post ?? $post)
                <x-dynamic-component :component="$field['field']->component()" :field="$field" />
            @endcheckCondition
        @endforeach
    @else
        <span>{{ $field['name'] }}</span>
    @endif
</div>
