@php $locale = app()->getLocale(); $dir = locale_dir($locale); $rtl = $dir === 'rtl'; $align = $rtl ? 'right' : 'left'; $opposite = $rtl ? 'left' : 'right'; $theme = active_theme(); $palette = $theme?->palette('light') ?? []; $accent = $palette['--gold'] ?? '#b58a4f'; $accentDeep = $palette['--gold-deep'] ?? '#9c7744'; $surface = $palette['--cream'] ?? '#faf7f2'; $card = $palette['--white'] ?? '#ffffff'; $ink = $palette['--ink'] ?? '#14110d'; $ink2 = $palette['--ink-2'] ?? '#2b2824'; $muted = $palette['--muted'] ?? '#7d7266'; $line = $palette['--line'] ?? '#e3e0db'; $onAccent = $palette['--on-accent'] ?? '#ffffff'; $storeName = setting_text('store.name', 'Mandano 888'); $address = trim(setting_text('store.address', '')); $phone = trim(setting_text('store.phone', '')); $email = trim(setting_text('store.email', '')); $logo = brand_logo(); $font = "'Manrope', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif"; $escapedBody = e($bodyText); $linkedBody = preg_replace_callback('~https?://[^\s<]+~u', function ($matches) use ($accentDeep) { $href = html_entity_decode($matches[0], ENT_QUOTES, 'UTF-8'); return ''.$matches[0].''; }, $escapedBody) ?? $escapedBody; @endphp