Example #1
0
 function __construct(Request $request)
 {
     parent::__construct($request);
     $this->viewParameters['showButton'] = true;
     $this->viewParameters['editButton'] = false;
     $this->viewParameters['deleteButton'] = false;
 }
Example #2
0
 function __construct(Request $request)
 {
     parent::__construct($request);
     // todo, provisional hasta establecer las accioner de la fila de productos
     $this->viewParameters['editButton'] = false;
     $this->viewParameters['deleteButton'] = false;
     $this->viewParameters['deleteSelectButton'] = false;
 }
Example #3
0
 function __construct(Request $request)
 {
     parent::__construct($request);
     $actions = $this->request->route()->getAction();
     // if request comes from delegate request, filter on model, only request from supervisor
     if ($actions['resource'] === 'octopus-supervisor-request') {
         $this->routeSuffix = 'octopusSupervisorRequest';
     }
 }
Example #4
0
 function __construct(Request $request)
 {
     parent::__construct($request);
     $this->viewParameters['checkBoxColumn'] = false;
     $this->viewParameters['deleteSelectButton'] = false;
     $actions = $this->request->route()->getAction();
     // if request comes from user Todos
     if ($actions['resource'] === 'projects-user-todo') {
         $this->routeSuffix = 'projectsUserTodo';
     }
 }
Example #5
0
 function __construct(Request $request)
 {
     parent::__construct($request);
     $this->viewParameters['newButton'] = false;
     $actions = $this->request->route()->getAction();
     // if request comes from delegate request, filter on model, only request from supervisor
     if ($actions['resource'] === 'octopus-laboratory-order') {
         $this->routeSuffix = 'octopusLaboratoryOrder';
         $this->viewParameters['checkBoxColumn'] = false;
         $this->viewParameters['showButton'] = true;
     }
 }
 /**
  * PayPalController constructor.
  * @param Request $request
  */
 public function __construct(Request $request)
 {
     parent::__construct($request);
     $this->preferences = Preference::getValues(12);
     // Set mode
     if (config('market.payPalMode') == 'live') {
         $clientID = config('market.payPalLiveClientId');
         $secret = config('market.payPalLiveSecret');
     } else {
         $clientID = config('market.payPalSandboxClientId');
         $secret = config('market.payPalSandboxSecret');
     }
     // init PayPal API Context
     $this->apiContext = new ApiContext(new OAuthTokenCredential($clientID, $secret));
     // SDK configuration
     $this->apiContext->setConfig(['mode' => config('market.payPalMode'), 'http.ConnectionTimeOut' => 30, 'log.LogEnabled' => true, 'log.FileName' => storage_path() . '/logs/paypal.log', 'log.LogLevel' => 'FINE']);
 }
Example #7
0
 function __construct(Request $request)
 {
     parent::__construct($request);
     $this->viewParameters['newButton'] = false;
     $this->viewParameters['checkBoxColumn'] = false;
     $this->viewParameters['showButton'] = true;
     $this->viewParameters['editButton'] = false;
     $this->viewParameters['deleteButton'] = false;
     $this->viewParameters['deleteSelectButton'] = false;
     $actions = $this->request->route()->getAction();
     // if request comes from supervisor
     if ($actions['resource'] === 'octopus-supervisor-stock') {
         $this->routeSuffix = 'octopusSupervisorStock';
         $this->viewParameters['showButton'] = true;
     }
     // if request comes from laboratory
     if ($actions['resource'] === 'octopus-laboratory-stock') {
         $this->routeSuffix = 'octopusLaboratoryStock';
     }
 }
Example #8
0
 function __construct(Request $request)
 {
     parent::__construct($request);
     $this->viewParameters['newButton'] = false;
     $this->viewParameters['checkBoxColumn'] = false;
     $this->viewParameters['showButton'] = true;
     $this->viewParameters['editButton'] = false;
     $this->viewParameters['deleteButton'] = false;
     $this->viewParameters['deleteSelectButton'] = false;
     $actions = $this->request->route()->getAction();
     // if request came from User Todos
     if ($actions['resource'] === 'projects-user-history') {
         $this->routeSuffix = 'projectsUserHistory';
     } elseif ($actions['resource'] === 'projects-history') {
         $this->viewParameters['newButton'] = false;
         $this->viewParameters['checkBoxColumn'] = true;
         $this->viewParameters['showButton'] = false;
         $this->viewParameters['editButton'] = true;
         $this->viewParameters['deleteButton'] = true;
         $this->viewParameters['deleteSelectButton'] = true;
     }
 }
 function __construct(Request $request)
 {
     parent::__construct($request);
     $this->viewParameters['cancelButton'] = false;
 }