@php $locale = app()->getLocale(); // Translated static text $texts = [ 'en' => [ 'title' => 'Iqra Virtual Assistant', 'online' => 'Online', 'input_placeholder' => 'Type your message...', 'welcome' => 'Hello! Welcome to Iqra School. How can I help you today?', 'suggestions' => [ 'School Timings', 'Fee Structure', 'Contact Details' ] ], 'hi' => [ 'title' => 'इकरा वर्चुअल असिस्टेंट', 'online' => 'ऑनलाइन', 'input_placeholder' => 'अपना संदेश लिखें...', 'welcome' => 'नमस्ते! इकरा स्कूल में आपका स्वागत है। मैं आज आपकी क्या मदद कर सकता हूँ?', 'suggestions' => [ 'स्कूल का समय', 'फीस संरचना', 'संपर्क विवरण' ] ], 'gu' => [ 'title' => 'ઇકરા વર્ચ્યુઅલ આસિસ્ટન્ટ', 'online' => 'ઓનલાઇન', 'input_placeholder' => 'તમારો સંદેશ લખો...', 'welcome' => 'નમસ્તે! ઇકરા સ્કૂલમાં તમારું સ્વાગત છે. આજે હું તમારી શું મદદ કરી શકું?', 'suggestions' => [ 'સ્કૂલનો સમય', 'સ્કૂલ ફી', 'સંપર્ક વિગતો' ] ] ]; $activeText = $texts[$locale] ?? $texts['en']; @endphp
{{-- Chat Trigger Button --}} {{-- Chat Window --}}
{{-- Header --}}
I

{{ $activeText['title'] }}

{{ $activeText['online'] }}
{{-- Chat Messages Area --}}
{{-- Message loop --}} {{-- Typing Indicator --}}
{{-- Bottom suggestions and entry --}}
{{-- Suggestion Chips --}}
@foreach($activeText['suggestions'] as $suggestion) @endforeach
{{-- Form input --}}