Add industry packages that provision workflow stages on onboarding.
Deploy Ladill Queue / deploy (push) Successful in 1m39s

Queue Core stays generic; selecting Healthcare, Banking, Restaurant, and other industries installs departments, stages (queues), service points, workflows, terminology, and announcement profiles without code changes per vertical. Care-linked orgs skip stage materialization so Care remains the clinical provisioner.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 18:00:31 +00:00
co-authored by Cursor
parent 0854b431bc
commit a4d8775a82
15 changed files with 2302 additions and 65 deletions
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Qms;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Qms\Concerns\ScopesToAccount;
use App\Services\Qms\Industry\IndustryPackageRegistry;
use App\Services\Qms\OrganizationResolver;
use App\Support\OrganizationBranding;
use Illuminate\Http\RedirectResponse;
@@ -16,6 +17,7 @@ class OnboardingController extends Controller
public function __construct(
protected OrganizationResolver $organizations,
protected IndustryPackageRegistry $packages,
) {}
public function show(Request $request): View|RedirectResponse
@@ -24,10 +26,18 @@ class OnboardingController extends Controller
return redirect()->route('qms.dashboard');
}
$industries = [];
foreach ($this->packages->all() as $package) {
$industries[$package->key] = [
'label' => $package->label(),
'description' => $package->description(),
];
}
return view('qms.onboarding.show', [
'user' => $request->user(),
'timezones' => timezone_identifiers_list(),
'industries' => config('qms.industry_templates'),
'industries' => $industries,
'appointmentModes' => config('qms.appointment_modes'),
]);
}
@@ -40,7 +50,7 @@ class OnboardingController extends Controller
$validated = $request->validate([
'organization_name' => ['required', 'string', 'max:255'],
'industry' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.industry_templates')))],
'industry' => ['required', 'string', 'in:'.implode(',', array_keys(config('industry_packages.packages', [])))],
'appointment_mode' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.appointment_modes')))],
'branch_name' => ['required', 'string', 'max:255'],
'branch_address' => ['nullable', 'string', 'max:500'],
@@ -57,6 +67,11 @@ class OnboardingController extends Controller
]);
}
return redirect()->route('qms.dashboard')->with('success', 'Welcome to Ladill Queue!');
$packageLabel = $this->packages->get($validated['industry'])?->label() ?? 'your industry';
return redirect()->route('qms.dashboard')->with(
'success',
"Welcome to Ladill Queue — {$packageLabel} workflow provisioned."
);
}
}