public function __construct() { parent::__construct(); $this->paymentMenu = new Menu(); $this->paymentMenu->addItem(lang('Usage'), url('admin.payment')); $this->paymentMenu->addItem(lang('History'), url('admin.payment.history')); }
public function __construct() { parent::__construct(); $this->contentProviders = ModelContentProvider::all(); if ($this->input('organisation')) { $this->organisations = ModelOrganisation::getByQuery($this->input('organisation'), 20, 0); } }
public function __construct($organisationId) { parent::__construct(); $this->organisation = ModelOrganisation::getById($organisationId); if (!$this->organisation->hasRow()) { redirect(url('admin.home')); } $this->organisationsMenu = new Menu(); $this->organisationsMenu->addItem(lang('Overview'), url('admin.organisation.home', ['organisationId' => $this->organisation->id])); $this->organisationsMenu->addItem(lang('Activity'), url('admin.organisation.activity', ['organisationId' => $this->organisation->id])); $this->organisationsMenu->addItem(lang('Invoices'), url('admin.organisation.invoices', ['organisationId' => $this->organisation->id])); }
public function __construct() { parent::__construct(); $this->settings = ModelSettings::getInstance(); if ($this->isPostBack()) { /* @var $input \Pecee\Http\Input\InputItem */ foreach ($this->input('data') as $input) { $this->settings->data->{$input->getIndex()} = $input->getValue(); } $this->settings->update(); $this->setMessage(lang('Settings saved'), 'success'); response()->refresh(); } }