1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Add link to show Bluevine offer

This commit is contained in:
Hillel Coren 2017-10-15 12:54:43 +03:00
parent 26990bc114
commit f1e19fc2f3

View File

@ -42,10 +42,14 @@ class DashboardController extends BaseController
$expenses = $dashboardRepo->expenses($account, $userId, $viewAll);
$tasks = $dashboardRepo->tasks($accountId, $userId, $viewAll);
$showBlueVinePromo = $user->is_admin
&& env('BLUEVINE_PARTNER_UNIQUE_ID')
&& ! $account->company->bluevine_status
&& $account->created_at <= date('Y-m-d', strtotime('-1 month'));
$showBlueVinePromo = false;
if ($user->is_admin && env('BLUEVINE_PARTNER_UNIQUE_ID')) {
$showBlueVinePromo = ! $account->company->bluevine_status
&& $account->created_at <= date('Y-m-d', strtotime('-1 month'));
if (request()->bluevine) {
$showBlueVinePromo = true;
}
}
$showWhiteLabelExpired = Utils::isSelfHost() && $account->company->hasExpiredPlan(PLAN_WHITE_LABEL);