Files
ladill-care/resources/views/care/settings/modules.blade.php
T
isaaccladandCursor dec282d25d
Deploy Ladill Care / deploy (push) Successful in 53s
Embed Ladill Queue on role pages and add specialty modules under Settings.
Remove the standalone Service Queues nav so call-next/now-serving lives on clinical queue, appointments, pharmacy, lab, and specialty surfaces; Pro orgs can activate dentistry and related modules with branch departments and queue stubs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 15:55:47 +00:00

54 lines
3.1 KiB
PHP

<x-app-layout title="Modules · Settings">
<x-settings.page title="Specialty modules" description="Activate specialty practice surfaces for {{ $organization->name }}. Departments and queues are provisioned per branch; deactivating hides UI without deleting clinical history.">
<p class="text-sm">
<a href="{{ route('care.settings') }}" class="font-medium text-indigo-600 hover:text-indigo-800"> Facility settings</a>
</p>
@if (session('success'))
<p class="rounded-lg bg-emerald-50 px-3 py-2 text-sm text-emerald-800">{{ session('success') }}</p>
@endif
@if (session('error'))
<p class="rounded-lg bg-rose-50 px-3 py-2 text-sm text-rose-800">{{ session('error') }}</p>
@endif
@if (! $canUseSpecialtyModules)
<x-settings.card title="Pro feature" description="Specialty modules require Care Pro or Enterprise.">
<p class="text-sm text-slate-600">Unlock dentistry, eye care, physiotherapy, maternity, and radiology practice pages with matching departments and queue stubs.</p>
<a href="{{ route('care.pro.index') }}" class="btn-primary mt-4 inline-flex text-sm">View plans</a>
</x-settings.card>
@else
<form method="POST" action="{{ route('care.settings.modules.update') }}" class="space-y-6">
@csrf
@method('PUT')
<div class="grid gap-4 sm:grid-cols-2">
@foreach ($catalog as $key => $module)
<label class="flex cursor-pointer flex-col rounded-2xl border border-slate-200 bg-white p-5 shadow-sm transition hover:border-indigo-200 {{ ! empty($enabled[$key]) ? 'ring-1 ring-indigo-200' : '' }}">
<div class="flex items-start justify-between gap-3">
<div>
<p class="text-sm font-semibold text-slate-900">{{ $module['label'] }}</p>
<p class="mt-1 text-xs text-slate-500">{{ $module['description'] }}</p>
</div>
<input type="checkbox" name="modules[{{ $key }}]" value="1"
@checked(old("modules.{$key}", ! empty($enabled[$key])))
@disabled(! $canManage)
class="mt-0.5 rounded border-slate-300">
</div>
<p class="mt-3 text-[11px] uppercase tracking-wide text-slate-400">
Dept · {{ $module['department_name'] ?? $module['label'] }}
· Queue · {{ $module['queue_name'] ?? $module['label'] }}
</p>
</label>
@endforeach
</div>
@if ($canManage)
<div class="flex justify-end">
<button type="submit" class="btn-primary">Save modules</button>
</div>
@endif
</form>
@endif
</x-settings.page>
</x-app-layout>