public function qurbaniCompleteAlert(Qurbani $qurbani) { if (!$qurbani->getIscomplete()) { $subject = "Your Qurbani has been done"; $htmlBody = "\r\n <html>\r\n <head></head>\r\n <body>\r\n <p>\r\n Salam Aleikum,<br/>\r\n This is to confirm that your qurbani as follows has been done:\r\n <ul>\r\n <li><strong>Sheep:</strong> " . $qurbani->getSheep() . "</li>\r\n <li><strong>Cows:</strong> " . $qurbani->getCows() . "</li>\r\n <li><strong>Camels:</strong> " . $qurbani->getCamels() . "</li>" . ($qurbani->getInstructions() == null ? "" : "<li><strong>On Behalf of:</strong> <br/>" . nl2br($qurbani->getInstructions()) . "</li>") . "</ul>\r\n <br/>\r\n We would like to take this opportunity to thank you for your donation. May Allah accept it from you. Amin.<br/>\r\n <br/>\r\n Shukran<br/>\r\n The Projects Team, EKDA<br/>\r\n 11B Sunnybank Road<br/>\r\n Aberdeen, United Kingdom<br/>\r\n AB24 3NJ<br/>\r\n www.ekda.org<br/>\r\n Scottish Charity Reg No: SC041294<br/>\r\n </p>\r\n </body>\r\n </html>\r\n "; $recipients = $this->isNotProduction ? $this->supportEmail : $qurbani->getEmail(); $this->emailRepository->sendMail($this->defaultSender, $recipients, $subject, null, $htmlBody); } }
public function __construct(Qurbani $qurbani = null) { if ($qurbani != null) { $this->qurbanikey = $qurbani->getQurbanikey(); $this->qurbanimonth = $qurbani->getQurbanimonth(); $this->sheep = $qurbani->getSheep(); $this->cows = $qurbani->getCows(); $this->camels = $qurbani->getCamels(); $this->total = $qurbani->getTotal(); $this->fullname = $qurbani->getFullname(); $this->email = $qurbani->getEmail(); $this->mobile = $qurbani->getMobile(); $this->instructions = $qurbani->getInstructions(); $this->donationid = $qurbani->getDonationid(); $this->isvoid = $qurbani->getIsvoid(); $this->iscomplete = $qurbani->getIscomplete(); $this->createddate = $qurbani->getCreateddate(); } }