Allow explicit multi-branch practitioner assignment for telemedicine.
Deploy Ladill Care / deploy (push) Successful in 1m29s

Replace optional “All branches” with required branch checkboxes; doctors may switch only among assigned sites, never org-wide by default.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 08:50:03 +00:00
co-authored by Cursor
parent d643687335
commit 899b08179e
17 changed files with 478 additions and 103 deletions
@@ -47,13 +47,19 @@
</div>
<div>
<label class="block text-sm font-medium text-slate-700">Branch (optional)</label>
<select name="branch_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
<option value="">All branches</option>
<label class="block text-sm font-medium text-slate-700">
<span x-text="role === 'doctor' ? 'Home branch' : 'Branch (optional)'"></span>
</label>
<select name="branch_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm"
:required="role === 'doctor'">
<option value="" x-text="role === 'doctor' ? 'Select a branch…' : 'No branch lock'"></option>
@foreach ($branches as $branch)
<option value="{{ $branch->id }}" @selected(old('branch_id') == $branch->id)>{{ $branch->name }}</option>
@endforeach
</select>
<p class="mt-1 text-xs text-slate-500" x-show="role === 'doctor'" x-cloak>
Required for doctors. Add more sites later under Practitioners (telemedicine).
</p>
</div>
<div class="rounded-xl border border-slate-100 bg-slate-50 p-4" x-show="role === 'doctor'" x-cloak>