{{$structure_id}}

{{$name}}

@error('structure_id') {{ $message }} @enderror
@error('name') {{ $message }} @enderror
@foreach($structure_fields as $structure_field) @php $type = "text"; switch ($structure_field->data_type) { case 'numeric': $type = "number"; break; case 'boolean': $type = "checkbox"; break; default: $type= "text"; break; } @endphp

@error('total_investment') {{ $message }} @enderror
@endforeach
{{-- NOTE: for livewire to work, we need to wrap elements within a single parent. --}} {{--
{{ print_r($structure_fields) }}
--}}