public function creditsAvailable($model)
    {
        $credits = $this->config['plans'][$this->subscription->stripe_plan]['credits'];
        return $credits['limit'] - $this->creditsUsed($model);
    }