Add Business tier and Paystack prepaid billing for POS.
Deploy Ladill POS / deploy (push) Successful in 35s
Deploy Ladill POS / deploy (push) Successful in 35s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,9 +30,14 @@ class AppServiceProvider extends ServiceProvider
|
||||
$restaurant = PosLocation::owned((string) $account->public_id)
|
||||
->where('service_style', PosLocation::STYLE_RESTAURANT)
|
||||
->exists();
|
||||
$view->with('isPro', app(SubscriptionService::class)->isPro($account));
|
||||
$svc = app(SubscriptionService::class);
|
||||
$view->with('isPro', $svc->isPro($account));
|
||||
$view->with('hasPaidPlan', $svc->hasPaidPlan($account));
|
||||
$view->with('isEnterprise', $svc->isEnterprise($account));
|
||||
} else {
|
||||
$view->with('isPro', false);
|
||||
$view->with('hasPaidPlan', false);
|
||||
$view->with('isEnterprise', false);
|
||||
}
|
||||
$view->with('posRestaurant', $restaurant);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user