@@ -49,4 +49,9 @@ class SupplyOrder extends Model
{
return $this->hasOne(Pro::class, 'id', 'created_by_pro_id');
}
+
+ public function Note()
+ {
+ return $this->hasOne(Note::class, 'id', 'note_id');
+ }
@@ -178,6 +178,11 @@
</div>
</form>
+ @if($iSupplyOrder->note && !$iSupplyOrder->note->is_signed_by_hcp)
+ <small class="text-danger text-sm">
+ <i class="fas fa-exclamation-triangle text-danger"></i> Note not signed by HCP.
+ </small>
+ @endif
</td>
</tr>
@endforeach