{{-- Account Switcher (details/summary = no Alpine needed) --}}
@php $activeAccount = $activeAccountId ? $emailAccounts->firstWhere('id', $activeAccountId) : null; $displayAccount = $activeAccount ?? $emailAccounts->first(); @endphp
{{ $activeAccountId ? ($displayAccount->email ?? auth()->user()->email) : __('All Accounts') }}
{{-- Dropdown --}}
@foreach($emailAccounts as $acct) @endforeach @if($activeAccountId)
@endif
{{-- Compose Button --}}
{{-- Nav Links --}}
{{-- Inbox --}} {{-- Sent --}} {{-- Starred --}} {{-- Snoozed --}}
{{-- Channels (with chevron, click to filter by channel) --}} @php $channelItems = [ ['key' => 'email', 'label' => __('Email'), 'icon' => 'mail'], ['key' => 'whatsapp', 'label' => __('WhatsApp'), 'icon' => 'message-circle'], ['key' => 'sms', 'label' => __('SMS'), 'icon' => 'message-circle'], ['key' => 'telegram', 'label' => __('Telegram'), 'icon' => 'send'], ['key' => 'slack', 'label' => __('Slack'), 'icon' => 'hash'], ['key' => 'chat', 'label' => __('Live Chat'), 'icon' => 'message-square'], ]; // Instagram is shipped as an addon — only show its sidebar filter // button when the addon is installed AND active. This mirrors the // logic in /settings/channels which also gates the Instagram card // on addon status so users without the addon don't see a dead // filter that returns zero rows. $igActive = \Illuminate\Support\Facades\Schema::hasTable('addons') && \App\Models\Addon::where('slug', 'instagram')->where('status', 'active')->exists(); if ($igActive) { $channelItems[] = ['key' => 'instagram', 'label' => __('Instagram'), 'icon' => 'instagram']; } @endphp @foreach($channelItems as $ch) @endforeach
{{-- Bottom Actions --}}
{{ __('Quick Replies') }} {{ __('Settings') }} {{ __('Exit Inbox') }}