@php $cw = $chatWidgetSettings ?? \App\Services\ChatWidgetSettingsService::get($setting ?? null); $channels = \App\Services\ChatWidgetSettingsService::activeChannels($setting ?? null); @endphp @if(!empty($cw['enabled']) && ($channels !== [] || !empty($cw['website_chat']['enabled']))) @php $posClass = ($cw['position'] ?? 'bottom-right') === 'bottom-left' ? 'chat-widget--bottom-left' : 'chat-widget--bottom-right'; $visClass = ''; if (empty($cw['show_on_mobile'])) { $visClass .= ' chat-widget--hide-mobile'; } if (empty($cw['show_on_desktop'])) { $visClass .= ' chat-widget--hide-desktop'; } $bottom = (int) ($cw['offset_bottom'] ?? 24); @endphp @if(!empty($cw['website_chat']['enabled'])) @endif
@if(!empty($cw['website_chat']['enabled'])) @endif @endif