public function doNotification(Internship $i, $note = null) { // Should always be a grad-level internship if we've made it to this transition, but double check if ($i->isGraduate()) { $agency = $i->getAgency(); Email::sendRegistrarEmail($i, $agency); } }
public function doNotification(Internship $i, $note = null) { $agency = $i->getAgency(); // If this is an undergrad internship, then send the Registrar an email // Graduate level internships have another workflow state to go through before we alert the Registrar if ($i->isUndergraduate()) { Email::sendRegistrarEmail($i, $agency); } // If this is a graduate email, send the notification email to the grad school office if ($i->isGraduate()) { Email::sendGradSchoolNotification($i, $agency); } }