@foreach ($detail as $k_d => $d)
@if (empty($d['status']))
@continue
@endif
@if (str_contains($k_d, 'row_'))
@foreach ($d as $k_i => $i)
@if (empty($i['status']))
@continue
@endif
@if (str_contains($i['type'], 'upload'))
@php
$read_only = !empty($i['readonly']);
@endphp
@elseif (in_array($i['type'], ['input', 'texteditor', 'text']))
@php
$read_only = !empty($i['readonly']);
$label = $i['label'] ?? __('field.' . $k_i);
@endphp
@endif
@endforeach
@elseif (in_array($d['type'], ['input', 'texteditor', 'text']))
@php
$read_only = !empty($d['readonly']);
$label = $d['label'] ?? __('field.' . $k_d);
@endphp
@endif
@endforeach