@php
if ($method == 'screening') {
$config = $sp_config;
}
$detail = $config['form']['navbar']['detail']['input'];
@endphp
@if ($method == 'screening')
@foreach (['before', 'after'] as $dd)
@php
$sp_data = json_decode($data->{$dd} ?? '[]', true);
@endphp
{{ __('field.' . $dd) }}
@foreach ($detail as $k_d => $d)
@if (empty($d['status']))
@continue
@endif
@if (str_contains($k_d, 'row_'))
@foreach ($d as $k_i => $i)
@if (empty($i['status']))
@continue
@endif
@if (str_contains($i['type'], 'upload'))
@php
$read_only = !empty($i['readonly']);
@endphp
@elseif (in_array($i['type'], ['input', 'texteditor', 'text']))
@php
$read_only = !empty($i['readonly']);
$label = $i['label'] ?? __('field.' . $k_i);
@endphp
@endif
@endforeach
@elseif (in_array($d['type'], ['input', 'texteditor', 'text']))
@php
$read_only = !empty($d['readonly']);
$label = $d['label'] ?? __('field.' . $k_d);
@endphp
@endif
@endforeach
@endforeach
@else
@foreach ($detail as $k_d => $d)
@if (empty($d['status']))
@continue
@endif
@if (str_contains($k_d, 'row_'))
@foreach ($d as $k_i => $i)
@if (empty($i['status']))
@continue
@endif
@if (str_contains($i['type'], 'upload'))
@php
$read_only = !empty($i['readonly']);
@endphp
@elseif (in_array($i['type'], ['input', 'texteditor', 'text']))
@php
$read_only = !empty($i['readonly']);
$label = $i['label'] ?? __('field.' . $k_i);
@endphp
@endif
@endforeach
@elseif (in_array($d['type'], ['input', 'texteditor', 'text']))
@php
$read_only = !empty($d['readonly']);
$label = $d['label'] ?? __('field.' . $k_d);
@endphp
@endif
@endforeach
@endif