@php if ($method == 'screening') { $config = $sp_config; } $goods = $config['form']['navbar']['goods']['input']; @endphp @if ($method == 'screening') @foreach (['before', 'after'] as $dd) @php $sp_data = json_decode($data->{$dd} ?? '[]', true); @endphp

{{ __('field.' . $dd) }}


@foreach ($goods as $k_g => $g) @if (empty($g['status'])) @continue @endif @if (str_contains($k_g, 'row_'))
@php $image_goods = json_decode($sp_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
@endforeach @else
@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
@endif