public function getTrackCards()
 {
     $countQuery = GiftCardQuery::create()->filterByLender(Auth::getUser()->getLender());
     $countCards = $countQuery->count();
     $countRedeemed = $countQuery->filterByClaimed(1)->count();
     $cards = GiftCardQuery::create()->filterByLender(Auth::getUser()->getLender())->orderByDate('desc')->find();
     return View::make('lender.gift-cards-track', compact('countCards', 'countRedeemed', 'cards'));
 }
Exemple #2
0
 public function resendEmailToRecipient($id)
 {
     $giftCard = GiftCardQuery::create()->findOneById($id);
     $this->lenderMailer->sendGiftCardMailToRecipient($giftCard);
     \Flash::success("Email successfully sent!");
     return Redirect::route('admin:get:gift-cards');
 }