@php
$cfg_page_items = config("member.{$sp_type_page}_item");
$list_page_items = $cfg_page_items['form']['navbar']['detail']['input'];
@endphp
@foreach (['before', 'after'] as $dd)
@php
$sp_data = json_decode($data->{$dd} ?? '[]', true);
@endphp
{{ __('field.' . $dd) }}
@php
$json_page_items = json_decode($sp_data['page_items'] ?? '[]', true);
@endphp
@if (count($json_page_items ?? []) > 0)
@foreach ($json_page_items as $k_j => $j)
@foreach ($list_page_items 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
{{ __('noti.no-data') }}
@endif
@endforeach