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

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


@foreach ($enterprise as $k_e => $e) @if (empty($e['status'])) @continue @endif @if (str_contains($k_e, 'row_'))
@foreach ($e 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($e['type'], 'upload')) @php $read_only = !empty($e['readonly']); @endphp @endif @endforeach
@endforeach @else
@foreach ($enterprise as $k_e => $e) @if (empty($e['status'])) @continue @endif @if (str_contains($k_e, 'row_'))
@foreach ($e 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($e['type'], 'upload')) @php $read_only = !empty($e['readonly']); @endphp @endif @endforeach
@endif