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