<x-layouts.app title="Inbox">
    @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

    <div id="inbox-app" data-inbox='@json($inboxData)'></div>
</x-layouts.app>
