@php
if ($method == 'screening') {
$config = $sp_config;
}
$otop = $config['form']['navbar']['otop']['input'];
@endphp
@if ($method == 'screening')
@foreach (['before', 'after'] as $dd)
@php
$sp_data = json_decode($data->{$dd} ?? '[]', true);
@endphp
{{ __('field.' . $dd) }}
@foreach ($otop as $k_o => $o)
@if (empty($o['status']))
@continue
@endif
@if (str_contains($k_o, 'row_'))
@php
$image_otop = json_decode($sp_data['otop_image'] ?? '[]', true);
@endphp
@foreach ($o 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 ($otop as $k_o => $o)
@if (empty($o['status']))
@continue
@endif
@if (str_contains($k_o, 'row_'))
@php
$image_otop = json_decode($data->otop_image, true);
@endphp
@foreach ($o 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