Deploy Ladill Care / deploy (push) Successful in 37s
Settings toggle provisions Queue org via API; reception staff manage counters without leaving Care. Co-authored-by: Cursor <cursoragent@cursor.com>
56 lines
3.2 KiB
PHP
56 lines
3.2 KiB
PHP
<x-app-layout title="Settings">
|
|
<div class="mx-auto max-w-2xl">
|
|
<h1 class="text-xl font-semibold text-slate-900">Facility settings</h1>
|
|
|
|
<form method="POST" action="{{ route('care.settings.update') }}" enctype="multipart/form-data" class="mt-6 space-y-5 rounded-2xl border border-slate-200 bg-white p-6">
|
|
@csrf @method('PUT')
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700">Organization name</label>
|
|
<input type="text" name="name" value="{{ old('name', $organization->name) }}" @disabled(! $canManage) required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700">Facility type</label>
|
|
<select name="facility_type" @disabled(! $canManage) class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
@foreach ($facilityTypes as $value => $label)
|
|
<option value="{{ $value }}" @selected(old('facility_type', data_get($organization->settings, 'facility_type', 'clinic')) === $value)>{{ $label }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700">Timezone</label>
|
|
<select name="timezone" @disabled(! $canManage) class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
@foreach (timezone_identifiers_list() as $tz)
|
|
<option value="{{ $tz }}" @selected(old('timezone', $organization->timezone) === $tz)>{{ $tz }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
|
|
@if ($canManage)
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700">Logo</label>
|
|
<input type="file" name="logo" accept="image/png,image/jpeg,image/webp,image/svg+xml" class="mt-2 block w-full text-sm">
|
|
@if (\App\Support\OrganizationBranding::hasCustomLogo($organization))
|
|
<label class="mt-2 flex items-center gap-2 text-sm"><input type="checkbox" name="remove_logo" value="1"> Remove current logo</label>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="rounded-xl border border-slate-200 p-4">
|
|
<h2 class="text-sm font-semibold text-slate-900">Ladill Queue</h2>
|
|
<p class="mt-1 text-xs text-slate-500">Manage service queues and counters in Care. You must also enable Care integration in Ladill Queue settings.</p>
|
|
<label class="mt-3 flex items-center gap-2 text-sm">
|
|
<input type="checkbox" name="queue_integration_enabled" value="1" @checked(data_get($organization->settings, 'queue_integration_enabled'))>
|
|
Enable Ladill Queue integration
|
|
</label>
|
|
</div>
|
|
|
|
<button type="submit" class="btn-primary">Save settings</button>
|
|
@endif
|
|
</form>
|
|
|
|
<p class="mt-4 text-sm text-slate-500">{{ $branchCount }} branch(es) configured.</p>
|
|
</div>
|
|
</x-app-layout>
|