Exemplo n.º 1
0
 public function welcome(TierDescriptor $descriptor, TransactionRepository $transactions)
 {
     $tier = $transactions->getUserTier(Auth::user());
     if ($tier != 'free') {
         Session::now("heading_msgs", array_merge(Session::get("heading_msgs", []), [new AlertMsg("alert-warning", sprintf(_("You have already registered for the <strong>%s</strong> tier."), $tier))]));
     }
     return view('payment.storefront', ['tiers' => $descriptor->getTiers(), 'errorMsg' => Request::session()->get('txErrorMsg')]);
 }