|
@@ -13,6 +13,18 @@
|
|
|
<p class="font-weight-bold alert alert-warning border-warning mb-2">You need to complete the patient's comprehensive care plan before ordering cellular devices.</p>
|
|
|
@endif
|
|
|
|
|
|
+ @if(!$patient->is_bp_and_pulse_updated)
|
|
|
+ <p class="font-weight-bold alert alert-warning border-warning mb-2">
|
|
|
+ You need to complete the patient's BP settings before ordering cellular BP device.
|
|
|
+ </p>
|
|
|
+ @endif
|
|
|
+
|
|
|
+ @if(!$patient->is_weight_and_bmi_settings_updated)
|
|
|
+ <p class="font-weight-bold alert alert-warning border-warning mb-2">
|
|
|
+ You need to complete the patient's Weight/BMI settings before ordering cellular weight scale.
|
|
|
+ </p>
|
|
|
+ @endif
|
|
|
+
|
|
|
<input type="hidden" name="clientUid" value="{{ $patient->uid }}">
|
|
|
<input type="hidden" name="noteUid" value="{{ request()->input('note-uid') }}">
|
|
|
<label class="text-secondary font-weight-bold">Add Supply Order</label>
|
|
@@ -21,8 +33,15 @@
|
|
|
<select name="productUid" class="form-control form-control-sm">
|
|
|
<option value=""> --select--</option>
|
|
|
@foreach($products as $product)
|
|
|
- @if($patient->has_cm_setup_been_performed || !$product->has_imei_number)
|
|
|
+ @if(!$product->has_imei_number)
|
|
|
<option value="{{$product->uid}}">{{$product->title}}</option>
|
|
|
+ @elseif($patient->has_cm_setup_been_performed)
|
|
|
+ @if($product->bdt_device_category === 'BP' && $patient->is_bp_and_pulse_updated)
|
|
|
+ <option value="{{$product->uid}}">{{$product->title}}</option>
|
|
|
+ @endif
|
|
|
+ @if($product->bdt_device_category === 'WEIGHT' && $patient->is_weight_and_bmi_settings_updated)
|
|
|
+ <option value="{{$product->uid}}">{{$product->title}}</option>
|
|
|
+ @endif
|
|
|
@endif
|
|
|
@endforeach
|
|
|
</select>
|