@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
Rincian Obat
@error ('items')
{{ $message }}
@enderror
@foreach (old( 'items', $draftItems ?? (isset($prescription) ? $prescription->items : [['drug_id' => '', 'quantity' => 1]]) ) as $index => $item) @include('pharmacy.prescriptions.partials.item-row', ['index' => $index, 'item' => $item, 'itemsRequired' => $itemsRequired]) @endforeach
Obat Jumlah Dosis Frekuensi Durasi Aturan Pakai Aksi
@error ('notes')
{{ $message }}
@enderror
@if ($showActions)
Batal
@endif @push('scripts') @endpush @include('regular_checkups.partials.text_editor_assets')