@foreach ($goods as $k_g => $g)
@if (empty($g['status']))
@continue
@endif
@if (str_contains($k_g, 'row_'))
@php
$image_goods = json_decode($data->goods_image, true);
@endphp
@foreach ($g as $k_i => $i)
@php
if (empty($i['status'])) {
continue;
}
$idx = explode('_', $k_i)[1] - 1;
@endphp
@if (str_contains($i['type'], 'upload'))
@php
$read_only = !empty($i['readonly']);
@endphp
@endif
@endforeach
@endif
@endforeach