mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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);
|
$expenses = $dashboardRepo->expenses($account, $userId, $viewAll);
|
||||||
$tasks = $dashboardRepo->tasks($accountId, $userId, $viewAll);
|
$tasks = $dashboardRepo->tasks($accountId, $userId, $viewAll);
|
||||||
|
|
||||||
$showBlueVinePromo = $user->is_admin
|
$showBlueVinePromo = false;
|
||||||
&& env('BLUEVINE_PARTNER_UNIQUE_ID')
|
if ($user->is_admin && env('BLUEVINE_PARTNER_UNIQUE_ID')) {
|
||||||
&& ! $account->company->bluevine_status
|
$showBlueVinePromo = ! $account->company->bluevine_status
|
||||||
&& $account->created_at <= date('Y-m-d', strtotime('-1 month'));
|
&& $account->created_at <= date('Y-m-d', strtotime('-1 month'));
|
||||||
|
if (request()->bluevine) {
|
||||||
|
$showBlueVinePromo = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$showWhiteLabelExpired = Utils::isSelfHost() && $account->company->hasExpiredPlan(PLAN_WHITE_LABEL);
|
$showWhiteLabelExpired = Utils::isSelfHost() && $account->company->hasExpiredPlan(PLAN_WHITE_LABEL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user