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

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


@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
@endforeach @else
@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
@endif