@if(isset($prescription)) @foreach($prescription->getMedicine as $key => $prescription) @php $availableQuantity = App\Models\Medicine::whereId($prescription->medicine)->first()->available_quantity; @endphp @endforeach @else @endif
{{ __('messages.medicines') }} {{ __('messages.ipd_patient_prescription.dosage') }} {{ __('messages.prescription.duration') }} {{ __('messages.prescription.time') }} {{ __('messages.medicine_bills.dose_interval') }} {{ __('messages.prescription.comment') }} {{ __('messages.common.add') }}
{{ Form::select('medicine[]', $medicines['medicines'], $prescription->medicine,['class' => 'form-select prescriptionMedicineId', 'data-id' => $key]) }} {{ __('messages.item.available_quantity').' : '. $availableQuantity }}
{{ Form::text('dosage[]', $prescription->dosage, ['class' => 'form-control prescription-dose', 'id' => 'prescriptionMedicineNameId']) }} {{ Form::select('day[]', \App\Models\Prescription::DOSE_DURATION, $prescription->day, ['class' => 'form-control prescription-dose', 'data-control'=>'select2','id' => 'prescriptionMedicineDayId']) }} {{ Form::select('time[]', \App\Models\Prescription::MEAL_ARR, $prescription->time,['class' => 'form-select prescriptionMedicineMealId']) }} {{ Form::select('dose_interval[]', \App\Models\Prescription::DOSE_INTERVAL, $prescription->dose_interval,['class' => 'form-select prescriptionMedicineMealId']) }} {{ Form::textarea('comment[]', $prescription->comment, ['class' => 'form-control', 'rows'=>1]) }}
{{ Form::select('medicine[]', $medicines['medicines'], null,['class' => 'form-select prescriptionMedicineId', 'data-id' => 1]) }}
{{ Form::text('dosage[]', null, ['class' => 'form-control prescription-dose', 'id' => 'prescriptionMedicineNameId']) }} {{ Form::select('day[]', \App\Models\Prescription::DOSE_DURATION, null , ['class' => 'form-control prescriptionMedicineMealId',]) }} {{ Form::select('time[]', \App\Models\Prescription::MEAL_ARR, null,['class' => 'form-select prescriptionMedicineMealId']) }} {{ Form::select('dose_interval[]', \App\Models\Prescription::DOSE_INTERVAL, null,['class' => 'form-select prescriptionMedicineMealId']) }} {{ Form::textarea('comment[]', null, ['class' => 'form-control', 'rows'=>1]) }}