Deploy Ladill Care / deploy (push) Successful in 1m24s
Match Frontdesk by linking branches and team from settings instead of the admin sidebar, and simplify Care plan upgrade button copy.
51 lines
3.0 KiB
PHP
51 lines
3.0 KiB
PHP
<x-app-layout title="Add practitioner">
|
|
<div class="mx-auto max-w-lg">
|
|
<h1 class="text-xl font-semibold text-slate-900">Add practitioner</h1>
|
|
<p class="mt-1 text-sm text-slate-500">Creates a clinical listing for bookings. Invite them under Team if they also need to sign in.</p>
|
|
|
|
<form method="POST" action="{{ route('care.practitioners.store') }}" class="mt-6 space-y-4 rounded-2xl border border-slate-200 bg-white p-6">
|
|
@csrf
|
|
<div>
|
|
<label class="block text-sm font-medium">Name</label>
|
|
<input type="text" name="name" value="{{ old('name') }}" required class="mt-1 w-full rounded-lg border-slate-300 text-sm" placeholder="Dr. Ama Mensah">
|
|
@error('name')<p class="mt-1 text-sm text-red-600">{{ $message }}</p>@enderror
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Specialty (optional)</label>
|
|
<input type="text" name="specialty" value="{{ old('specialty') }}" class="mt-1 w-full rounded-lg border-slate-300 text-sm" placeholder="General practice">
|
|
</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') == $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') == $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') == $member->id)>
|
|
{{ $member->user_ref }} · {{ config('care.roles.'.$member->role, $member->role) }}
|
|
</option>
|
|
@endforeach
|
|
</select>
|
|
<p class="mt-1 text-xs text-slate-500">Link after inviting them under Settings → Team.</p>
|
|
</div>
|
|
<button type="submit" class="btn-primary w-full">Save</button>
|
|
</form>
|
|
</div>
|
|
</x-app-layout>
|