Bonus Payouts: Your contract is everything
The question of whether or not an employee is entitled to their bonus upon leaving their job is not so much a question of whether they are terminated by the employer or whether they resign, but rather, whether the bonus has already been earned and is payable at the time of departure. As such, the answer will almost always depend on the language of the employment contract.