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:
parent
26990bc114
commit
f1e19fc2f3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user