@php $zpLocale = $locale ?? app()->getLocale(); $zpText = static function (string $key, string $fallback = '') use ($data, $zpLocale): string { $value = $data[$key] ?? null; if (is_array($value)) { if (array_key_exists('value', $value)) { $value = $value['value']; } } if (is_array($value)) { return (string) ($value[$zpLocale] ?? reset($value) ?: $fallback); } return is_string($value) && $value !== '' ? $value : $fallback; }; $zpHeading = $zpText('heading', \App\Support\ZilitpayPremiumText::get('builder_hero_title')); $zpButton = $zpText('primary_button_text', $zpText('button_text', \App\Support\ZilitpayPremiumText::get('builder_hero_button'))); $zpDescription = $zpText('description', \App\Support\ZilitpayPremiumText::get('builder_hero_description')); $zpUrl = $zpText('primary_button_url', $zpText('button_url', route('user.register'))); @endphp

{{ $zpText('eyebrow', $zpText('subheading', \App\Support\ZilitpayPremiumText::get('builder_hero_eyebrow'))) }}

{!! nl2br(e($zpHeading)) !!}

@if($zpDescription)

{!! nl2br(e($zpDescription)) !!}

@endif