public function index()
 {
     $view = new \Zewa\View();
     $view->setView('privacy');
     $view->setLayout('marketplace');
     $view->setProperty($this->data);
     return $view->render();
 }
 public function index($complete = false)
 {
     $view = new \Zewa\View();
     $view->setView('contact');
     $view->setLayout('marketplace');
     $this->data['complete'] = $complete;
     $view->setProperty($this->data);
     return $view->render();
 }
 private function transactionSingle($transactionId)
 {
     $this->data['transaction'] = json_decode($this->rewards->getUserTransaction($this->data['user']->unique_id, $transactionId));
     $view = new \Zewa\View();
     $view->setProperty($this->data);
     $view->setLayout(false);
     $view->setView('transaction');
     return $view;
 }
 public function index()
 {
     $this->data['featured'] = json_decode($this->rewards->getRewards(1, 5, ['featured' => true]))->result;
     $view = new \Zewa\View();
     $view->setView('home');
     $view->setLayout('marketplace');
     $view->setProperty($this->data);
     return $view->render();
 }
 private function rewardSingle($rewardId)
 {
     $this->data['reward'] = json_decode($this->rewards->getReward($rewardId));
     if (empty($this->data['reward'])) {
         return false;
     }
     //        $this->data['product']->related = $this->merch->fetchRewards(1, 5, ['categoryId' => $this->data['product']->category_id]);
     $view = new \Zewa\View();
     $view->setView('reward');
     $view->setProperty($this->data);
     return $view;
 }
 public function review()
 {
     if (!$this->logged) {
         $this->request->setFlashdata('notice', (object) ['type' => 'warning', 'message' => _("You must be logged in to checkout") . ' <a data-target="#loginModal" data-toggle="modal" href="javascript:void(0)">' . _("Click here to login") . '</a>']);
         $this->router->redirect($this->router->baseURL('?r=' . base64_encode(urlencode($this->router->uri))));
     }
     $this->user = $this->request->session('user');
     $stripe = $this->configuration->stripe;
     \Stripe\Stripe::setApiKey($stripe->secret_key);
     if ($this->request->post()) {
         $this->processCartCheckout();
     }
     $this->data['shipping'] = $this->user->shipping;
     $view = new \Zewa\View();
     $view->setProperty($this->data);
     $view->setLayout('marketplace');
     $view->setModule('checkout');
     $view->setView('review');
     return $view->render();
 }
                        All Digital Rewards<br/>
                        P.O. Box 3480<br/>
                        Lake Havasu City, AZ 96403
                    </p>
                </div>
                <div class="col-md-5">
                    <?php 
if (!empty($complete) && $complete == true) {
    ?>
                        <p class="alert alert-success text-center">Your inquiry has been submitted!</p>
                    <?php 
} else {
    ?>

                        <?php 
    $view = new \Zewa\View();
    $view->setView('includes/contact');
    $view->setLayout(false);
    echo $view->render();
    ?>

                    <?php 
}
?>

                </div>
            </div>
        </div>

        <!-- ./reward-->
    </div>