{{-- 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'], ]; @endphp @foreach($channelItems as $ch) @endforeach
{{-- Bottom Actions --}}
{{ __('Quick Replies') }} {{ __('Settings') }} {{ __('Exit Inbox') }}