@foreach ($sections as $section)
@php
//label for the section
if ($section == 'tab_section') {
$label = __('Tabs Section');
} elseif ($section == 'cta_section_status') {
$label = __('Call To Action Section');
} elseif ($section == 'categoryProduct_section') {
$label = __('Category Product Section');
} else {
$label = __(ucwords(str_replace('_', ' ', $section)));
}
// section status
$sectionValue = $ubs->{$section} ?? 0;
@endphp
@endforeach
{{-- Handle additional sections --}}
@if (count($additional_section_statuses) > 0)
@foreach ($additional_section_statuses as $key => $additional_section_status)
@php
$section_content = App\Models\User\AdditionalSectionContent::where([
['language_id', $langid],
['addition_section_id', $key],
])->first();
@endphp
@if ($section_content)
@endif
@endforeach
@endif