@php $wa = "923000000000"; // Default try { $setting = \App\Models\SiteSetting::first(); if($setting) $wa = $setting->whatsapp_number ?? $wa; } catch(\Exception $e) {} $activeOffer = null; try { $activeOffer = \App\Models\Offer::where('is_active', true)->first(); } catch(\Exception $e) {} $helpCategories = []; try { $helpCategories = \App\Models\HelpCategory::with('articles')->get(); } catch(\Exception $e) {} $supportChannels = []; $socialLinks = []; try { $supportChannels = \App\Models\SupportChannel::where('category', 'support')->where('is_active', true)->orderBy('sort_order')->get(); $socialLinks = \App\Models\SupportChannel::where('category', 'social')->where('is_active', true)->orderBy('sort_order')->get(); } catch(\Exception $e) {} @endphp
{{-- TRIGGER BUTTON --}}
{{-- MAIN CONSOLE --}}
{{-- 1. HOME TAB --}}
{{-- Sticky Header (MAGIC AI STYLE) --}}
{{-- Logo/Title --}}
Texora Assistant
{{-- Glowing Arc Decoration --}}

Hi there 👋

How can we help you?

{{-- Scrolling Content --}}
{{-- MagicAI Style Conversation Card --}}
👩‍💼

Ask us anything.

We usually reply in a few hours.

{{-- Localized Partner Box --}}

"Assisting you with SECP, FBR, and business growth in Pakistan. Your dedicated partner for a smooth compliance journey."

{{-- Categories Grid --}}
@foreach($helpCategories->take(4) as $cat) @endforeach
{{-- Follow Us Section --}} @if(count($socialLinks) > 0) @endif
{{-- 2. CHAT TAB --}}
{{-- Sticky Header --}}

Support Channels

We usually reply in a few hours.

{{-- Channels List (DYNAMIC) --}}
@forelse($supportChannels as $channel) @empty
No support channels active.
@endforelse
{{-- 3. HELP TAB --}}
@foreach($helpCategories as $cat)

{{ $cat->name }}

@foreach($cat->articles as $article) @endforeach
@endforeach
{{-- 4. ARTICLE VIEW --}}

{{-- 5. LIVE CHAT ENGINE --}}
{{-- Intake Form --}} {{-- Chat Thread --}}
{{-- BOTTOM TAB BAR --}}
{{-- OFFER POPUP --}} @if($activeOffer)
🎁

{{ $activeOffer->title }}

{{ $activeOffer->description }}

{{ $activeOffer->cta_text }}
@endif