public function getTotalExpense() { return DB::table('expenses')->where('vendor_id', '=', $this->id)->whereNull('deleted_at')->sum('amount'); }