App\Repositories\Lead\LeadRepository::percantageCompleted PHP 메소드

percantageCompleted() 공개 메소드

public percantageCompleted ( )
    public function percantageCompleted()
    {
        if (!$this->allLeads() || !$this->allCompletedLeads()) {
            $totalPercentageLeads = 0;
        } else {
            $totalPercentageLeads = $this->allCompletedLeads() / $this->allLeads() * 100;
        }
        return $totalPercentageLeads;
    }