@props(['contextSaree' => null]) @php $isCheckoutOrReceipt = request()->is('checkout*') || request()->is('order-received*'); $whatsappNumber = $storeConfig['storeContactInfo']['whatsappNumber'] ?? '8801700000000'; $messengerUrl = $storeConfig['storeContactInfo']['messengerUrl'] ?? 'https://m.me/aangina.bd'; if (!empty($contextSaree)) { $prefilledMessage = sprintf( 'Hello! I have a question about %s (SKU: %s, Price: %s) — %s', $contextSaree['title'], $contextSaree['sku'], $contextSaree['formattedPrice'] ?? ('BDT ' . number_format($contextSaree['priceBDT'])), url()->current() ); } else { $prefilledMessage = 'Hello! I would like some help browsing your saree collection.'; } $whatsappLink = 'https://wa.me/' . $whatsappNumber . '?text=' . rawurlencode($prefilledMessage); @endphp @if(!empty($storeConfig['floatingChatWidget']['enabled']) && !$isCheckoutOrReceipt)
{{-- ==================================================================== SMART POPOVER CARD (Width: 300px, --bg-main bg, 1px --border-subtle border) ==================================================================== --}}
{{-- Popover Header (--brand-primary bg, --text-light text) --}}

Need Help Choosing a Saree?

{{-- Popover Body (16px padding) --}}

Chat with our Dhaka team for fabric details or phone ordering (10 AM – 10 PM).

{{-- Option 1: Primary Action (CHAT ON WHATSAPP →, 44px height, --brand-accent fill + --text-primary bold text) --}} CHAT ON WHATSAPP → {{-- Option 2: Secondary Action (MESSAGE ON FACEBOOK MESSENGER, 44px height, 1.5px --brand-primary outlined) --}} MESSAGE ON FACEBOOK MESSENGER
{{-- ==================================================================== FLOATING TRIGGER BUTTON Desktop: Pill button (height: 46px, padding: 0 18px) "[ 💬 Chat / Help ]" Mobile: Circular button (48x48px) "💬" Colors: Solid --brand-primary bg, --text-light text, 1.5px --brand-accent border ring; Hover/Tap flips to --brand-accent bg + --text-primary text. ==================================================================== --}}
@endif