Top supplies the sound: cì → zī (initial drifted between dental affricates, a common Old Chinese pattern).
次 is mostly phonetic, but its sense of 'sequence, ordering' echoes faintly in
资's modern senses of credentials and qualifications — resources arranged in rank order.