{{-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * read the readme.blade.php in the FormGen folder * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --}}
@if($data[0] != null) @csrf @php $slotNames = array_keys($fieldSlots); $slotNamesIndex = 0; $edit = false; @endphp @foreach($fieldSlots as $coluna => $coluna_v) @if(array_key_exists($slotNames[$slotNamesIndex], $fieldNames))
{{-- --}} @php // Complicated multi-type dynamic array data parsing. Might want to test with dd() at some places before fiddling with this. TODO: proper explanation if (isset($columnMeta[$coluna][1])){ $currentType = $columnMeta[$coluna][1]; if (is_array($columnMeta[$coluna][1])){ $currentType = array_keys($columnMeta[$coluna][1]); $currentType = $currentType[0]; } } else $currentType = 'text'; if ($currentType == 'dropdown'){ $index = 0; foreach($columnMeta[$coluna][1] as $keyA => $valueA){ foreach($columnMeta[$coluna][1][$keyA] as $keyB => $valueB){ $optionNames[$index] = $keyB; $optionLabels[$index] = $valueB; $index++; } } } @endphp @php $senhaText = ($itemId != 'novo') ? "Alterar Senha" : "Senha"; $placeHolder = ($itemId != 'novo') ? "●●●●●●" : ""; @endphp {{-- nomes dos campos --}} @if(in_array($coluna, $mandatoryField)) @endif @if(isset($columnMeta[$coluna][0])) @if(isset($columnMeta[$coluna][0])) @if($columnMeta[$coluna][0] == 'edit') @php $edit = true; @endphp @endif @endif @if($currentType == 'dropdown') @endif @if($currentType == 'password') @endif @if($currentType != 'dropdown' && $currentType != 'password') @if($columnMeta[$coluna][0] == 'view') @elseif($columnMeta[$coluna][0] == 'edit') @if($currentType == 'password' && $itemId != 'novo') @else @endif @endif @endif @else @endif {{-- @if(($loop->index + 1) % 10 == 0)


@endif --}}
@else



@endif @php $slotNamesIndex++ @endphp @endforeach @if ($edit)
{{-- --}} {{-- --}}
@endif @endif