@php
$supportEmail = $loan_officer_email ?? config('mail.support_email') ?? env('SUPPORT_EMAIL', 'hello@instamortgage.com');
// Determine if the user is logged in
$isLoggedIn = auth()->check();
// If the user is logged in, get their subscription status
$showSupport = true;
if ($isLoggedIn) {
$user = auth()->user();
// If user is subscribed to all or any one, do not show support info
if (
(!$user->unsubscribed_from_property_emails || !$user->unsubscribed_from_opportunity_alerts)
&& $user->last_login_at
) {
$showSupport = false;
}
}
@endphp
@if(!$isLoggedIn && $showSupport)
If this was a mistake, Login to Account to change the email preferences.