Add Queue Enterprise billing and visible upgrade CTAs for all roles.
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:
isaacclad
2026-06-30 01:23:36 +00:00
co-authored by Cursor
parent 0770faaa9f
commit 165c7238fe
11 changed files with 382 additions and 83 deletions
@@ -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'));
}
}