Deploy Ladill Care / deploy (push) Successful in 43s
Hospital admins can manage assignable doctors and invite team members from Ladill mailboxes; invited staff only see Care tools they need. Co-authored-by: Cursor <cursoragent@cursor.com>
60 lines
3.4 KiB
PHP
60 lines
3.4 KiB
PHP
<x-app-layout title="Edit practitioner">
|
|
<div class="mx-auto max-w-lg">
|
|
<h1 class="text-xl font-semibold text-slate-900">Edit practitioner</h1>
|
|
|
|
<form method="POST" action="{{ route('care.practitioners.update', $practitioner) }}" class="mt-6 space-y-4 rounded-2xl border border-slate-200 bg-white p-6">
|
|
@csrf
|
|
@method('PUT')
|
|
<div>
|
|
<label class="block text-sm font-medium">Name</label>
|
|
<input type="text" name="name" value="{{ old('name', $practitioner->name) }}" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Specialty (optional)</label>
|
|
<input type="text" name="specialty" value="{{ old('specialty', $practitioner->specialty) }}" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Branch (optional)</label>
|
|
<select name="branch_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
<option value="">All branches</option>
|
|
@foreach ($branches as $branch)
|
|
<option value="{{ $branch->id }}" @selected(old('branch_id', $practitioner->branch_id) == $branch->id)>{{ $branch->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Department (optional)</label>
|
|
<select name="department_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
<option value="">None</option>
|
|
@foreach ($departments as $department)
|
|
<option value="{{ $department->id }}" @selected(old('department_id', $practitioner->department_id) == $department->id)>{{ $department->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Link team member (optional)</label>
|
|
<select name="member_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
<option value="">No login linked</option>
|
|
@foreach ($members as $member)
|
|
<option value="{{ $member->id }}" @selected(old('member_id', $practitioner->member_id) == $member->id)>
|
|
{{ $member->user_ref }} · {{ config('care.roles.'.$member->role, $member->role) }}
|
|
</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<label class="flex items-center gap-2 text-sm">
|
|
<input type="checkbox" name="is_active" value="1" @checked(old('is_active', $practitioner->is_active))>
|
|
Active
|
|
</label>
|
|
<button type="submit" class="btn-primary w-full">Save changes</button>
|
|
</form>
|
|
|
|
<form method="POST" action="{{ route('care.practitioners.destroy', $practitioner) }}" class="mt-4"
|
|
onsubmit="return confirm('Remove this practitioner from Care? Existing appointments keep their history.')">
|
|
@csrf
|
|
@method('DELETE')
|
|
<button type="submit" class="btn-secondary w-full text-rose-700">Remove practitioner</button>
|
|
</form>
|
|
</div>
|
|
</x-app-layout>
|