{{ __('workspace') }}

{{ __('More features') }}

{{ __("Tools that don't need to live in the main header — automations, history, integrations, and the bits that keep your workspace humming in the background.") }}

@php $s = $stats ?? []; $deviceHealthCls = match ($s['deviceHealth'] ?? 'healthy') { 'healthy' => 'text-wa-deep', 'partial' => 'text-accent-amber', 'offline' => 'text-accent-coral', default => 'text-ink-500', }; @endphp
{{ __('Active rules') }} {{ ($s['activeRulesNew'] ?? 0) > 0 ? '+' . $s['activeRulesNew'] . ' this week' : 'no new' }}
{{ number_format($s['activeRules'] ?? 0) }} {{ __('across all tools') }}
{{ __('Queued') }} {{ $s['nextScheduled'] ?? '—' }}
{{ number_format($s['scheduledQueued'] ?? 0) }} {{ __('scheduled sends') }}
{{ __('Connected') }} {{ $s['deviceHealth'] ?? 'healthy' }}
{{ $s['deviceActive'] ?? 0 }} / {{ $s['deviceTotal'] ?? 0 }} {{ __('devices live') }}
{{ __('Notifications') }} {{ __('unread') }}
{{ number_format($s['notifActive'] ?? 0) }} {{ __('awaiting attention') }}
@php // Menu-layout awareness. An admin can move the primary header // pages (Dashboard / Campaigns / Flows / Templates / Meta Ads) // down to "More" via /admin/settings/menu-order. Those pages // have NO curated card in the grid below, so a demoted one // would drop out of the header AND be unreachable here — the // "moved a menu to More but it doesn't show in the cards" bug. // Read the saved bar and surface a card for each demoted // primary page so nothing is ever lost. Keys/labels/icons // mirror the header catalogue (components/user/header.blade.php). $__navCfg = json_decode((string) \App\Models\SystemSetting::get('user_nav_order', '[]'), true); $__barKeys = (is_array($__navCfg) && isset($__navCfg['bar']) && is_array($__navCfg['bar'])) ? array_values(array_filter($__navCfg['bar'], 'is_string')) : ['dashboard', 'team-inbox', 'wa-campaigns', 'flows', 'templates', 'devices', 'more']; $__primaryNav = [ 'dashboard' => ['label' => __('Dashboard'), 'href' => url('/dashboard'), 'desc' => __('Home & overview'), 'sw' => 1.6, 'icon' => ''], 'wa-campaigns' => ['label' => __('Campaigns'), 'href' => url('/wa-campaigns'), 'desc' => __('Bulk campaign sends'), 'sw' => 1.5, 'icon' => ''], 'flows' => ['label' => __('Flows'), 'href' => url('/flows'), 'desc' => __('Automation builder'), 'sw' => 1.5, 'icon' => ''], 'templates' => ['label' => __('Templates'), 'href' => url('/templates'), 'desc' => __('Message templates'), 'sw' => 1.5, 'icon' => ''], // Meta Ads is NOT surfaced through the demoted "Navigation" // strip — it has a permanent card in the "All tools" grid // below instead, so it reads like every other tool. ]; $__demotedNav = array_filter($__primaryNav, fn ($k) => !in_array($k, $__barKeys, true), ARRAY_FILTER_USE_KEY); @endphp @if (!empty($__demotedNav)) @endif

{{ __('All tools') }}

{{-- Unified Inbox moved to the main header nav — its hero card used to live here, removed to avoid duplicating the entry. --}} {{-- WhatsApp Tools — official WABA Cloud API extras. --}}
WABA

{{ __('WhatsApp Tools') }}

{{ __('Official WhatsApp (WABA) extras: read receipts & typing, business profile, welcome + ice breakers + commands, QR codes, two-step PIN, and messaging analytics.') }}

{{ __('cloud API') }} {{ __('Open WhatsApp Tools') }}
{{-- Meta Ads — moved off the header, now a first-class tool card here (auto-tabs into Automation via its /meta-ads href in user-more-index.js). --}}
ADS

{{ __('Meta Ads') }}

{{ __('Create and manage Click-to-WhatsApp ad campaigns on Facebook & Instagram — every click opens a chat on your connected number.') }}

{{ __('click-to-chat') }} {{ __('Open Meta Ads') }}
{{-- OpenAI (ChatGPT) Ads — the workspace connects its own Ads API key and manages campaigns on its own ad account. --}}
ADS

{{ __('OpenAI Ads') }}

{{ __('Run advertising campaigns on OpenAI (ChatGPT) with your own ad account — connect your Ads API key, then manage campaigns, budgets and conversions.') }}

{{ __('ChatGPT ads') }} {{ __('Open OpenAI Ads') }}
{{-- Instagram Posts — compose + schedule to a connected Instagram account. Shown only when Instagram is set up (native add-on OR a connected remote Instaflow). Route is plan-gated (instagram_posts); the paywall handles plans without it. --}} @php $igAvailable = \App\Services\Instaflow\InstaflowClient::fromSettings()->isConnected() || (bool) \App\Models\SystemSetting::get('instagram_enabled', false); @endphp @if ($igAvailable)
IG

{{ __('Instagram Posts') }}

{{ __('Compose and schedule Instagram posts — images, reels, stories and carousels. Publish now or queue them to go out automatically.') }}

{{ __('compose & schedule') }} {{ __('Open composer') }}
@endif {{-- Facebook Posts — compose + schedule to a connected Facebook Page. --}} @php $fbAvailable = (bool) \App\Models\SystemSetting::get('facebook_enabled', false); @endphp @if ($fbAvailable)
FB

{{ __('Facebook Posts') }}

{{ __('Compose and schedule Facebook posts — text, links and photos. Publish now or queue them to a connected Page.') }}

{{ __('compose & schedule') }} {{ __('Open composer') }}
@endif {{-- SMS — connect a number; texts land in the unified inbox and campaigns gain an SMS sender. Gated on the sms_enabled toggle. --}} @php $smsAvailable = (bool) \App\Models\SystemSetting::get('sms_enabled', false); @endphp @if ($smsAvailable)
SMS

{{ __('SMS') }}

{{ __('Connect an SMS number (Twilio / MSG91). Texts arrive in the same team inbox as WhatsApp, and campaigns gain an SMS sender.') }}

{{ __('connect & manage') }} {{ __('Open SMS') }}
@endif {{-- LINE — connect a LINE Official Account; inbound lands in the unified inbox and flows/keywords/auto-reply fire like any channel. Gated on the line_enabled toggle. --}} @php $lineAvailable = (bool) \App\Models\SystemSetting::get('line_enabled', false); @endphp @if ($lineAvailable)
LINE

{{ __('LINE') }}

{{ __('Connect a LINE Official Account (Messaging API). Inbound lands in the same team inbox, with broadcasts, rich menus, flows and insights.') }}

{{ __('connect & manage') }} {{ __('Open LINE') }}
@endif {{-- WeChat — connect an Official Account; inbound lands in the unified inbox and flows/keywords/auto-reply fire like any channel. Gated on the wechat_enabled toggle. --}} @php $wechatAvailable = (bool) \App\Models\SystemSetting::get('wechat_enabled', false); @endphp @if ($wechatAvailable)
WeChat

{{ __('WeChat') }}

{{ __('Connect a WeChat Official Account (Service Account). Inbound lands in the same team inbox, with keyword rules, auto-replies and flows.') }}

{{ __('connect & manage') }} {{ __('Open WeChat') }}
@endif {{-- Viber — connect a Public Account; inbound lands in the unified inbox and flows/keywords/auto-reply fire like any channel. Gated on the viber_enabled toggle. --}} @php $viberAvailable = (bool) \App\Models\SystemSetting::get('viber_enabled', false); @endphp @if ($viberAvailable)
Viber

{{ __('Viber') }}

{{ __('Connect a Viber Public Account (Bot). Inbound lands in the same team inbox, with keyword rules, auto-replies and flows.') }}

{{ __('connect & manage') }} {{ __('Open Viber') }}
@endif {{-- Messenger Setup — Get Started, persistent menu, ice breakers and greeting for a connected Page. Same facebook_enabled gate as Facebook Posts; route is plan-gated (access_facebook). --}} @if ($fbAvailable)
FB

{{ __('Messenger Setup') }}

{{ __('Configure the Messenger profile — Get Started button, persistent menu, ice breakers and welcome greeting for a connected Page.') }}

{{ __('growth tools') }} {{ __('Open setup') }}
@endif {{-- Lead Ads — Instant Form leads from Facebook/Instagram ads, mapped into contacts and deals. Still gated on facebook_enabled because it runs on a connected Page, but the route is plan-gated on its OWN feature (access_lead_ads) — it is sold separately from Pages. --}} @if ($fbAvailable)
FB

{{ __('Lead Ads') }}

{{ __('Turn Instant Form submissions into contacts and deals — map each answer, pick the pipeline, and choose who follows up.') }}

{{ __('growth tools') }} {{ __('Open leads') }}
@endif {{-- TikTok — connect account, insights and posting. Gated on the tiktok_enabled channel toggle (route is plan-gated access_tiktok). --}} @php $ttAvailable = (bool) \App\Models\SystemSetting::get('tiktok_enabled', false); @endphp @if ($ttAvailable)
TT

{{ __('TikTok') }}

{{ __('Connect a TikTok account, track profile & video insights, and send videos to your TikTok inbox. DM inbox is partner-gated & region-limited.') }}

{{ __('connect & post') }} {{ __('Open TikTok') }}
TT

{{ __('TikTok Posts') }}

{{ __('Send videos to your TikTok inbox to finish and publish from the app, and track their status from :brand.', ['brand' => brand_name()]) }}

{{ __('compose & send') }} {{ __('Open posts') }}
@endif {{-- AI CRM guide — hub of every CRM page with how-to steps. --}} {{-- Quick Send — manual message-queue sender. NOT the 1:1 inbox (that's /team-inbox). You compose, pick one or many recipients + a device, then send now or schedule, and track per-message delivery. --}}
C0

{{ __('Quick Send') }}

{{ __('Compose a message, pick one or many recipients and a sender, then send now or schedule it — a manual send queue with per-message delivery status.') }}

{{ __('send queue') }} {{ __('Open') }}
{{-- Developers / API — workspace REST API keys for /api/v1. SaaS-standard placement on the user side. --}}
A1

{{ __('Account') }}

{{ __('Profile, photo, password, order history, wallet, affiliate, and support tickets — all in one place.') }}

{{ ucfirst($s['planLabel'] ?? 'Free') }} · {{ \App\Support\FormatSettings::display((int) round(((int) ($s['walletCredits'] ?? 0)) * \App\Services\MessageCreditRate::minorPerCredit()) / 100) }} {{ __('Open') }}
A2

{{ __('Pricing & plans') }}

{{ __('Compare Starter, Growth, Pro and Enterprise. Switch any time — we prorate to the day.') }}

{{ $stats['pricingSubtitle'] ?? __('Free plan · upgrade to unlock') }} {{ __('View plans') }}
06

{{ __('Analytics') }}

{{ __('Delivery, read, and conversion charts across campaigns and devices.') }}

{{ number_format($stats['analytics7d'] ?? 0) }} {{ __('msgs · last 7d') }} {{ __('Open') }}
07

{{ __('Attributes') }}

{{ __('Variables for WhatsApp templates. Built-ins like') }} {{ __('first_name') }} + your custom ones ({{ __('order_id') }}, etc.). Type / in any message to insert.

{{ number_format($stats['attributesTotal'] ?? 0) }} {{ __('saved') }} {{ __('Open') }}
08

{{ __('Contacts') }}

{{ __('All your contacts and groups in one place. Import from CSV, tag, segment, and search.') }}

{{ $s['contactsTotal'] ?? 0 }} people / {{ $s['groupsTotal'] ?? 0 }} groups / {{ $s['tagsTotal'] ?? 0 }} {{ __('tags') }} {{ __('Open') }}
08

{{ __('Broadcasts') }}

{{ __('Template broadcasts to selected contacts with send, delivery, read, failed, and queued tracking.') }}

{{ $s['broadcastQueued'] ?? 0 }} queued{{ $s['broadcastPct'] !== null ? ' / ' . $s['broadcastPct'] . '% delivered' : '' }} {{ __('Open') }}
01

{{ __('Auto Reply') }}

{{ __('Trigger replies on keywords, business hours, or when an agent is away.') }}

{{ $s['autoReplyCount'] ?? 0 }} rules{{ $s['autoReplyMatchPct'] !== null ? ' / ' . $s['autoReplyMatchPct'] . '% match' : '' }} {{ __('Open') }}
WARM

{{ __('WhatsApp Warmer') }}

{{ __('Ramp each number\'s daily send budget with human-like gaps + active hours to reduce ban risk.') }}

@if (\App\Services\WorkspaceEngine::unofficialEnabled()) {{ __('Unofficial API') }} @else @endif {{ __('Open') }}
02

{{ __('Scheduled Messages') }}

{{ __('Queue sends for the right moment — by timezone, segment, or trigger.') }}

{{ $s['scheduledQueued'] ?? 0 }} queued / next {{ $s['nextScheduled'] ?? '—' }} {{ __('Open') }}
03

{{ __('Drip Campaigns') }}

{{ __('Timed follow-up sequences — send, wait days, send again. Stops the moment they reply.') }}

{{ __('durable waits') }} {{ __('Open') }}
03

{{ __('Message History') }}

{{ __('Searchable archive of every message in and out — exportable to CSV.') }}

{{ $s['messageHistoryHuman'] ?? '0' }} {{ __('records') }} {{ __('Open') }}
04

{{ __('Notifications') }}

{{ __('Route alerts to email, Slack, or in-app — set quiet hours per channel.') }}

{{ $s['notifActive'] ?? 0 }} {{ __('unread') }} {{ __('Open') }}
05

{{ __('Integrations') }}

{{ __('Connect Shopify, HubSpot, Zapier, and more — sync contacts and orders.') }}

{{ $s['integrationsConnected'] ?? 0 }} connected / {{ $s['integrationsAvailable'] ?? 0 }} {{ __('available') }} {{ __('Open') }}
{{-- Google account — central place to connect/disconnect the workspace Google. The same OAuth tokens are used by the BookAppointment node, the Google Meet flow node, and the team-inbox composer's "Send Meet link" button. --}} @php // Safe nested-array access — `?->appointment_settings` may // be null on a fresh workspace, and `null['key']` raises a // PHP 8 warning. data_get() handles the chain. $googleConnected = (bool) data_get( \Illuminate\Support\Facades\Auth::user()?->currentWorkspace, 'appointment_settings.google_oauth.access_token', false, ); @endphp
06

{{ __('Google account') }}

{{ __('Connect once — powers Calendar, Meet links in flows, and the inbox "Send Meet link" composer button.') }}

{{ $googleConnected ? 'connected' : 'not connected' }} {{ $googleConnected ? 'Manage' : 'Connect' }}
{{-- Appointments & Booking — customers book a service entirely in chat (day→time, questions, deposit), synced to Google Calendar. The booking runtime is the Node flow BookAppointment node. --}} @php $__bkWs = (int) (\Illuminate\Support\Facades\Auth::user()?->current_workspace_id ?? 0); $bookingTypesCount = $__bkWs ? (int) \App\Models\BookingType::where('workspace_id', $__bkWs)->count() : 0; @endphp

{{ __('Appointments') }}

{{ __('Let customers book your services from chat — day/time picker, questions, deposits, reminders, and Google Calendar sync.') }}

{{ $bookingTypesCount ? $bookingTypesCount.' '.__('service(s)') : __('not set up') }} {{ $bookingTypesCount ? __('Manage') : __('Set up') }}
{{-- AI Call Assistant — voice-AI agent that answers phone calls. Config wizard lives here; the actual real-time call loop runs in the Node bridge. --}} @php $assistantsCount = (int) \App\Models\AiCallAssistant::where( 'workspace_id', \Illuminate\Support\Facades\Auth::user()?->current_workspace_id ?? 0, )->count(); $assistantsLive = (int) \App\Models\AiCallAssistant::where( 'workspace_id', \Illuminate\Support\Facades\Auth::user()?->current_workspace_id ?? 0, ) ->where('status', 'live') ->count(); @endphp
07

{{ __('AI Call Assistant') }}

{{ __('Voice AI that answers phone calls — Gemini brain, ElevenLabs voice, your own tools mid-call.') }}

{{ $assistantsCount }} configured / {{ $assistantsLive }} {{ __('live') }} {{ __('Open') }}
{{-- Call Logs — every voice call's transcript + recording + tool calls + cost. Read-only; writes come from Node's Twilio webhook handler. --}} @php $callLogsCount = (int) \App\Models\AiCallLog::where( 'workspace_id', \Illuminate\Support\Facades\Auth::user()?->current_workspace_id ?? 0, ) ->where('started_at', '>=', now()->subDay()) ->count(); $callLogsMins = (int) (\App\Models\AiCallLog::where( 'workspace_id', \Illuminate\Support\Facades\Auth::user()?->current_workspace_id ?? 0, ) ->where('started_at', '>=', now()->subDay()) ->sum('duration_seconds') / 60); @endphp
08

{{ __('Call Logs') }}

{{ __('Transcripts, recordings, and tool-call timelines for every voice call the AI handled.') }}

{{ $callLogsCount }} calls / {{ $callLogsMins }} min · 24h {{ __('Open') }}
{{-- WhatsApp Forms — Meta-native interactive forms. ONLY shown when the workspace is on the WABA engine. Flows are a Meta Cloud API exclusive feature: publishing a form requires uploading the schema to Graph API and getting back a meta_flow_id; sending uses the interactive type "flow" message Baileys + Twilio don't support. Hiding the card prevents Baileys/Twilio operators from opening the builder, only to fail at publish time with "No WABA provider configured." --}} @php $_wsId = \Illuminate\Support\Facades\Auth::user()?->current_workspace_id ?? 0; // Multi-engine: show WhatsApp Forms whenever WABA is among the // workspace's enabled engines, not only when it's the default. $_showForms = $_wsId && \App\Services\WorkspaceEngine::isEngineEnabled($_wsId, 'waba'); if ($_showForms) { $formsCount = (int) \App\Models\WaForm::where('workspace_id', $_wsId)->count(); $formsLive = (int) \App\Models\WaForm::where('workspace_id', $_wsId) ->where('status', 'published') ->count(); } @endphp @if ($_showForms)
09

{{ __('Forms') }}

{{ __('Native WhatsApp interactive forms — collect leads, surveys, and bookings inside the chat.') }}

{{ $formsCount }} drafted / {{ $formsLive }} {{ __('live') }} {{ __('Open') }}
@endif {{-- WhatsApp Link Generator — trackable wa.me deep-links with a custom short-slug and click analytics. Plain wa.me use case (landing pages, Instagram bios, business cards) — separate from the chatbot widget (which runs a real chat surface) and wa-forms (Meta Flows). --}} @php $wsForWcl = \Illuminate\Support\Facades\Auth::user()?->current_workspace_id ?? 0; $wclCount = (int) \App\Models\WaChatLink::where('workspace_id', $wsForWcl)->count(); $wclClicks = (int) \App\Models\WaChatLink::where('workspace_id', $wsForWcl)->sum('click_count'); @endphp
12

{{ __('WhatsApp Link Generator') }}

{{ __('Mint trackable wa.me short links with a custom slug, pre-typed message, QR code, and click analytics. Drop it on a bio, landing page, or business card.') }}

{{ $wclCount }} links / {{ number_format($wclClicks) }} {{ __('clicks') }} {{ __('Open') }}
{{-- Chatbot Widget — embeddable floating chat bubble for the operator's own site. Each widget can be backed by an AI assistant; conversations land in Team Inbox. --}} @php $wsForCards = \Illuminate\Support\Facades\Auth::user()?->current_workspace_id ?? 0; $widgetsCount = (int) \App\Models\ChatbotWidget::where('workspace_id', $wsForCards)->count(); $widgetsLive = (int) \App\Models\ChatbotWidget::where('workspace_id', $wsForCards) ->where('status', 'active') ->count(); @endphp
10

{{ __('Chatbot Widget') }}

{{ __('Embed a floating chat bubble on your site. AI replies in-browser, hands off to Unified Inbox when needed.') }}

{{ $widgetsCount }} built / {{ $widgetsLive }} {{ __('active') }} {{ __('Open') }}
{{-- AI Training — chat assistants + their knowledge sources. Powers the chatbot widget (and future text channels). --}} @php $aitAssistants = (int) \App\Models\AiChatAssistant::where('workspace_id', $wsForCards)->count(); $aitSources = (int) \App\Models\AiTrainingSource::where('workspace_id', $wsForCards) ->where('status', 'ready') ->count(); @endphp
11

{{ __('AI Training') }}

{{ __('Train chat assistants on your own content — URLs, text snippets, Q&A pairs, plain-text files.') }}

{{ $aitAssistants }} assistants / {{ $aitSources }} {{ __('sources') }} {{ __('Open') }}
{{-- AI Usage — token spend dashboard for this workspace. --}} @php $aiuTokens = 0; try { if (\Illuminate\Support\Facades\Schema::hasTable('ai_token_usage')) { $aiuTokens = (int) \Illuminate\Support\Facades\DB::table('ai_token_usage') ->where('workspace_id', $wsForCards) ->where('created_at', '>=', now()->startOfMonth()) ->sum('total_tokens'); } } catch (\Throwable $e) { } @endphp

{{ __('AI Usage') }}

{{ __('See where your AI spend goes — tokens by model and provider, plan keys vs your own keys, and monthly cap.') }}

{{ number_format($aiuTokens) }} {{ __('tokens this month') }} {{ __('View') }}
{{-- Flow Analytics — execution history, error logs and retry records for the automations built in Flows. Auto-tabs into Automation from its /flows href in user-more-index.js. --}} @php // Real count only — the failed runs the page opens on. No // estimate: if it cannot be read, the footer stays at zero. $faFailedRuns = 0; try { $faFlowIds = \App\Models\Flow::query()->forCurrentWorkspace()->pluck('id'); if ($faFlowIds->isNotEmpty()) { $faFailedRuns = (int) \App\Models\FlowSubscriber::whereIn('flow_id', $faFlowIds) ->where('status', 'failed')->count(); } } catch (\Throwable $e) { } @endphp

{{ __('Flow Analytics') }}

{{ __('Every automation run end to end — execution history, the errors that stopped a run, and the retry records for the ones you re-ran.') }}

{{ number_format($faFailedRuns) }} {{ __('failed runs') }} {{ __('Open') }}
{{-- Lead Finder — pull businesses from the map, add to CRM / campaign. --}}

{{ __('Lead Finder') }}

{{ __('Find businesses by category & city, grab their WhatsApp & email, and push them into Contacts or a campaign.') }}

{{ __('map prospecting') }} {{ __('Open') }}
10

{{ __('Webhooks') }}

{{ __('Push delivery, read, and reply events to any HTTPS endpoint in real time.') }}

{{ $s['webhookEndpoints'] ?? 0 }} endpoints{{ $s['webhookUptimePct'] !== null ? ' / ' . $s['webhookUptimePct'] . '% up' : '' }} {{ __('Open') }}
11

n8n

{{ __('Connect your own n8n and automate with 400+ apps — triggers and actions.') }}

{{ __('Automation') }} {{ __('Open') }}
07

{{ __('Support') }}

{{ __('Talk to a human, browse known issues, or check service status.') }}

{{ $s['supportTotal'] ?? 0 }} tickets / {{ $s['supportOpen'] ?? 0 }} {{ __('open') }} {{ __('Open') }}
08

{{ __('Activity Log') }}

{{ __('Every sign-in, workspace switch, inbox action, and admin change — attributed to user, IP, and time.') }}

{{ number_format($stats['activity24h'] ?? 0) }} {{ __('events · 24h') }} {{ __('Open') }}
09

{{ __('Guidebook') }}

{{ __('Step-by-step playbooks — from first send to advanced segmentation.') }}

{{ number_format($stats['guidebookArticles'] ?? 0) }} {{ __('articles') }} {{ __('Open') }}
10

{{ __('Channels') }}

{{ __('Connect WhatsApp, Instagram, Telegram & more — one inbox, monitor health, rotate senders.') }}

{{ $s['deviceActive'] ?? 0 }} / {{ $s['deviceTotal'] ?? 0 }} {{ __('live') }} {{ __('Open') }}
11

{{ __('Team members') }}

{{ __('Invite teammates, assign roles (owner / admin / member), and scope access per workspace.') }}

{{ $s['planSeats'] ?? 1 }} seat{{ ($s['planSeats'] ?? 1) === 1 ? '' : 's' }} {{ __('active') }} {{ __('Open') }}
{{-- Affiliate history card was moved into the right-aside hero slot below "Verify HMAC every time" — see further down in this view. --}}
{{ __('Shortcuts') }}

{{ __('Jump into common tasks') }}