        }
       
    }

    public function scopeStatistical()
    {
        return $this->where('status', 3)->sum('price');
    }

    public function payments(){
        return $this->hasOne(Payments::class, 'order_id', 'id');
    }

}
