Add Queue Enterprise billing and visible upgrade CTAs for all roles.
Deploy Ladill Queue / deploy (push) Successful in 1m32s
Deploy Ladill Queue / deploy (push) Successful in 1m32s
Enterprise charges per active branch (GHS 299+) with wallet subscribe/renew; sidebar and dashboard upsell no longer gated behind settings.view. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Models\Member;
|
||||
use App\Models\ServiceQueue;
|
||||
use App\Services\Qms\DashboardStats;
|
||||
use App\Services\Qms\OrganizationResolver;
|
||||
use App\Services\Qms\PlanService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\View\View;
|
||||
|
||||
@@ -42,7 +43,9 @@ class DashboardController extends Controller
|
||||
|
||||
$operational = $this->stats->forOrganization($owner, $organization->id, $branchScope);
|
||||
$branches = (clone $branchQuery)->withCount('serviceQueues')->orderBy('name')->get();
|
||||
$plans = app(PlanService::class);
|
||||
$hasPaidPlan = $plans->hasPaidPlan($organization);
|
||||
|
||||
return view('qms.dashboard', compact('organization', 'orgStats', 'branches', 'operational'));
|
||||
return view('qms.dashboard', compact('organization', 'orgStats', 'branches', 'operational', 'hasPaidPlan'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user