@php($prescription = $prescription ?? null)
@php($presetAppointment = $presetAppointment ?? null)
@php($presetRegularCheckup = $presetRegularCheckup ?? null)
@php($fixedRegularCheckup = $fixedRegularCheckup ?? ($presetRegularCheckup ?? $prescription?->regularCheckup))
@php($isMcuEnabled = $isMcuEnabled ?? true)
@php($isCompactRegularPrescription = $isCompactRegularPrescription ?? false)
@php($cancelUrl = $cancelUrl ?? route('pharmacy.prescriptions.index'))
@php($submitLabel = $submitLabel ?? 'Simpan Resep')
@php($showActions = $showActions ?? true)
@php($itemsRequired = $itemsRequired ?? true)
@php($appointmentOptions = $appointmentOptions ?? [])
@php($regularCheckupOptions = $regularCheckupOptions ?? [])
@if ($isCompactRegularPrescription)
@else
@if ($fixedRegularCheckup)
Sumber Check-up Reguler:
{{ $fixedRegularCheckup->checkup_number }} — {{ $fixedRegularCheckup->patient?->name ?? 'Pasien tidak tersedia' }}.
@endif
@error ('patient_id')
{{ $message }}
@enderror
@if (!$fixedRegularCheckup)
@error ('regular_checkup_id')
{{ $message }}
@enderror
@endif
@if ($isMcuEnabled)
@error ('appointment_id')
{{ $message }}
@enderror
@endif
@error ('prescription_date')
{{ $message }}
@enderror
@endif