@php $whatsappUrl = trim((string) config('services.whatsapp.url')); if ($whatsappUrl === '') { $whatsappPhone = preg_replace('/\D+/', '', (string) config('services.whatsapp.phone')); $whatsappMessage = trim((string) config('services.whatsapp.message')); if ($whatsappPhone !== '') { $whatsappUrl = 'https://wa.me/'.$whatsappPhone; if ($whatsappMessage !== '') { $whatsappUrl .= '?text='.rawurlencode($whatsappMessage); } } } @endphp @if($whatsappUrl !== '' && ! request()->is('admin', 'admin/*', 'wuser', 'wuser/*', 'partner', 'partner/*')) @endif