zilong 4 gadi atpakaļ
vecāks
revīzija
ce69a16246
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      app/Models/Docter.php

+ 6 - 0
app/Models/Docter.php

xqd
@@ -96,6 +96,12 @@ class Docter extends BaseModel
         return $base_price*100;
     }
 
+    public function getAppointPriceAttribute()
+    {
+        $appoint_price = DocterSetting::where('docter_id', $this->id)->where('type', 1)->where('status', 2)->value('appoint_price');
+        return $appoint_price*100;
+    }
+
     public function getIsCanPhoneAttribute()
     {
         if ($this->is_phone == 1) {