out_method == App\Mailbox::OUT_METHOD_SMTP) @endif autofocus {{-- This added to prevent autocomplete in Chrome --}}autocomplete="new-password" @if ($out_oauth_enabled) readonly @endif>
@php
$active_oauth_provider = '';
if ($out_oauth_enabled) {
$active_oauth_provider = $mailbox->oauthGetParam('provider');
}
@endphp
{{-- Microsoft Exchange --}}
@if ($active_oauth_provider != \MailHelper::OAUTH_PROVIDER_GOOGLE)
isOauthProvider(\MailHelper::OAUTH_PROVIDER_MICROSOFT) && $out_oauth_enabled) class="text-success" @endif>Microsoft Exchange
@if (!$mailbox->oauthEnabled())
@if ($mailbox->out_username && $mailbox->out_password && $mailbox->isOutUsernameOauth())
– {{ __('Connect') }}
@endif
@elseif ($mailbox->isOauthProvider(\MailHelper::OAUTH_PROVIDER_MICROSOFT) && $out_oauth_enabled)
– {{ __('Disconnect') }}
@endif
({{ __('Help') }})
@endif
{{-- Google Workspace --}}
@if ($active_oauth_provider != \MailHelper::OAUTH_PROVIDER_MICROSOFT)
isOauthProvider(\MailHelper::OAUTH_PROVIDER_GOOGLE) && $out_oauth_enabled) class="text-success" @endif>Google Workspace
@if (!$mailbox->oauthEnabled())
@if ($mailbox->out_username && $mailbox->out_password && $mailbox->isOutUsernameOauth())
– {{ __('Connect') }}
@endif
@elseif ($mailbox->isOauthProvider(\MailHelper::OAUTH_PROVIDER_GOOGLE) && $out_oauth_enabled)
– {{ __('Disconnect') }}
@endif
({{ __('Help') }})
@endif