@php
$is_in_chat_mode = $is_in_chat_mode ?? (isset($conversation) && $conversation->isInChatMode());
@endphp
@if (!$is_in_chat_mode)
@php
$show_settings_btn = Auth::user()->can('viewMailboxMenu', Auth::user());
@endphp
@if (\Eventy::filter('mailbox.show_buttons', true, $mailbox))
@endif
@action('mailbox.after_sidebar_buttons')
@endif