@php $user = auth()->user(); $tenant = $user->tenant; $inboxData = [ 'companyName' => $tenant->company_name, 'operatorName' => $user->full_name, 'aiEnabled' => (bool) optional($tenant->aiSetting)->ai_enabled, 'conversationsEndpoint' => url('/api/conversations'), 'messagesEndpointBase' => url('/api/conversations'), 'notesEndpointBase' => url('/api/conversations'), 'quickRepliesEndpoint' => url('/api/quick-replies'), 'aiEndpointBase' => url('/api/ai/conversations'), 'productsEndpoint' => url('/api/products'), 'createOrderEndpoint' => url('/api/orders'), 'orderDetailBaseUrl' => url('/app/orders'), 'csrfToken' => csrf_token(), ]; @endphp