Doctor Clinic Management

@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
Select Doctor
@if ($doctors->isEmpty()) No doctors found. Please ensure users have doctor roles assigned. @endif
@if ($doctor)
Selected Doctor:
{{ $doctor->name }}
{{ $doctor->email }} @if ($doctor->getRoleNames()->isNotEmpty()) | Role: {{ $doctor->getRoleNames()->implode(', ') }} @endif
{{ $doctorAssociations->count() }} Clinic(s) Associated
@endif
@if (!$doctorId)
Please select a doctor to manage their clinic associations.
@endif @if ($doctorId) @if ($showForm)
{{ $editingAssociationId ? 'Edit' : 'Add' }} Clinic Association for {{ $doctor->name }}
@error('selectedClinicId')
{{ $message }}
@enderror @if ($availableClinics->isEmpty() && !$editingAssociationId) All available clinics are already associated with this doctor. @endif
Consultation Fees (Optional)
$ @error('inPersonFee')
{{ $message }}
@enderror
$ @error('videoFee')
{{ $message }}
@enderror
$ @error('homeVisitFee')
{{ $message }}
@enderror
@endif
@forelse ($doctorAssociations as $association) @empty @endforelse
Clinic Name Status Primary Consultation Fees Actions
{{ $association->clinic->name }}
{{ $association->clinic->city }}, {{ $association->clinic->state }}
{{ ucfirst($association->status) }} @if ($association->is_primary) Primary @else @endif @if ($association->in_person_fee) In-Person: ${{ number_format($association->in_person_fee, 2) }}
@endif @if ($association->video_fee) Video: ${{ number_format($association->video_fee, 2) }}
@endif @if ($association->home_visit_fee) Home Visit: ${{ number_format($association->home_visit_fee, 2) }} @endif @if (!$association->in_person_fee && !$association->video_fee && !$association->home_visit_fee) No fees set @endif

No clinic associations found for this doctor
Click "Add Clinic Association" to get started.
@endif
@push('scripts') @endpush