@if(!empty($custom) && is_array($custom))
@foreach($custom as $key => $value)
{{-- ✅ If Selected Options (nested) --}}
@if($key === 'Selected Options' && is_array($value))
@foreach($value as $optionName => $optionData)
{{ $optionName }} :
{{ $optionData['value'] ?? '' }}
@endforeach
{{-- ✅ Normal array --}}
@elseif(is_array($value))
{{ ucfirst($key) }} :
{{ implode(', ', $value) }}
{{-- ✅ Normal string --}}
@else
{{ ucfirst($key) }} :
{{ $value }}
@endif
@endforeach
@endif