Files
ladill-queue/resources/views/qms/settings/edit.blade.php
T
isaaccladandCursor 1abc99fa1f
Deploy Ladill Queue / deploy (push) Successful in 32s
Standardize settings pages on shared centered card layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 21:11:29 +00:00

62 lines
3.8 KiB
PHP

<x-app-layout title="Settings">
<x-settings.page title="Organization settings">
<form method="POST" action="{{ route('qms.settings.update') }}" class="space-y-6">
@csrf @method('PUT')
<x-settings.card title="Organization" description="Name, timezone, appointment mode, and notification preferences.">
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-slate-700">Organization name</label>
<input name="name" value="{{ $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">Timezone</label>
<input name="timezone" value="{{ $organization->timezone }}" @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">Appointment mode</label>
<select name="appointment_mode" @disabled(! $canManage) class="mt-1 w-full rounded-lg border-slate-300 text-sm">
@foreach ($appointmentModes as $v => $l)
<option value="{{ $v }}" @selected(($organization->settings['appointment_mode'] ?? 'hybrid') === $v)>{{ $l }}</option>
@endforeach
</select>
</div>
<div>
<label class="block text-sm font-medium text-slate-700">Industry</label>
<select name="industry" @disabled(! $canManage) class="mt-1 w-full rounded-lg border-slate-300 text-sm">
@foreach ($industries as $v => $l)
<option value="{{ $v }}" @selected(($organization->settings['industry'] ?? '') === $v)>{{ $l }}</option>
@endforeach
</select>
</div>
<label class="flex items-center gap-2 text-sm">
<input type="checkbox" name="notifications_enabled" value="1" @checked($organization->settings['notifications_enabled'] ?? true) @disabled(! $canManage)>
Enable SMS/email queue notifications
</label>
</div>
</x-settings.card>
<x-settings.card title="Integrations" description="Allow Ladill Care and Frontdesk to manage queues in-app via the Queue API. Both apps must also enable integration in their settings.">
<div class="space-y-2">
<label class="flex items-center gap-2 text-sm">
<input type="checkbox" name="care_integration_enabled" value="1" @checked(data_get($organization->settings, 'integrations.care_enabled')) @disabled(! $canManage)>
Ladill Care can manage queues
</label>
<label class="flex items-center gap-2 text-sm">
<input type="checkbox" name="frontdesk_integration_enabled" value="1" @checked(data_get($organization->settings, 'integrations.frontdesk_enabled')) @disabled(! $canManage)>
Ladill Frontdesk can manage queues
</label>
</div>
</x-settings.card>
@if ($canManage)
<div class="flex justify-end">
<button type="submit" class="btn-primary">Save settings</button>
</div>
@endif
</form>
<p class="text-sm text-slate-600">{{ $branchCount }} branch{{ $branchCount === 1 ? '' : 'es' }} configured.</p>
</x-settings.page>
</x-app-layout>