@if($showWelcome && empty($messages))
👋
{{ $currentLanguage === 'ar' ? 'مرحباً بك في' : 'Welcome to' }} {{ $restaurant->restaurant_name ?? $restaurant->name ?? 'Our Restaurant' }}!
{{ $currentLanguage === 'ar' ? 'أنا هنا لمساعدتك في العثور على الطبق المثالي' : 'I\'m here to help you find the perfect dish' }}
@foreach($quickFilters as $filter)
{{ $filter['icon'] }} {{ $filter['label'] }}
@endforeach
@endif
@foreach($messages as $index => $msg)
@if($msg['sender'] === 'user')
@else
@if(!empty($msg['message']))
{{ $msg['message'] }}
@endif
@if(!empty($msg['items']))
@foreach($msg['items'] as $itemIndex => $item)
@if($item['has_promotion'] && isset($item['discount_percentage']))
{{ $item['discount_percentage'] }}% OFF
@endif
@if($item['type'])
@endif
{{ $item['name'] }}
{{ $item['category'] }}
@if($item['has_promotion'] && isset($item['promotional_price']))
{{ $item['promotional_price'] }}
{{ $item['formatted_price'] }}
@else
{{ $item['formatted_price'] }}
@endif
{{ $currentLanguage === 'ar' ? 'إضافة' : 'Add' }}
@endforeach
@endif
@if(!empty($msg['upsells']))
{{ $currentLanguage === 'ar' ? 'قد يعجبك أيضاً' : 'You may also like' }}
@foreach($msg['upsells'] as $upsellIndex => $upsell)
{{ $upsell['name'] }}
@if($upsell['has_promotion'] && isset($upsell['promotional_price']))
{{ $upsell['promotional_price'] }}
{{ $upsell['formatted_price'] }}
@else
{{ $upsell['formatted_price'] }}
@endif
@endforeach
@endif
@endif
@endforeach
@if($isTyping || $isLoading)
{{ $currentLanguage === 'ar' ? 'يكتب...' : 'AI is typing...' }}
@endif
@if($errorMessage)
@endif