public function __construct() { parent::__construct(); $this->page_attributes->title = 'Data Pengadaan Barang'; $this->page_attributes->source = 'pages.barang.pembelian.'; $this->page_attributes->breadcrumb = ['Data Pengadaan Barang' => route('shop.buy.index')]; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Administrasi'; $this->page_attributes->source = 'pages.konfigurasi.administrasi.'; $this->page_attributes->breadcrumb = ['Administrasi' => route('config.administrative.index')]; }
public function __construct(UsersRepository $usersRepository, Role $role, Permission $permission) { parent::__construct(); $this->users = $usersRepository; $this->role = $role; $this->permission = $permission; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Packing'; $this->page_attributes->source = 'pages.toko.packing.'; $this->page_attributes->breadcrumb = ['Packing' => route('shop.packing.create')]; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Laporan Penjualan'; $this->page_attributes->source = 'pages.laporan.penjualan.'; $this->page_attributes->breadcrumb = []; }
public static function get_filter_jquery() { $filter_group = Request::input('filter_group'); $filter_value = Request::input('filter_value'); $sort = Request::input('sortby'); AdminController::admingetuser($filter_group, $filter_value, $sort); }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Laporan Transaksi Batal'; $this->page_attributes->source = 'pages.laporan.batal.'; $this->page_attributes->breadcrumb = []; }
/** * Initialize user controller. * * @param type UserRepository $user * * @return type */ public function __construct(UserRepository $user, PermissionRepository $permission, RoleRepository $roles) { $this->repository = $user; $this->permission = $permission; $this->roles = $roles; parent::__construct(); }
/** * Inject the models. * @param User $user * @param Role $role * @param Permission $permission */ public function __construct(User $user, Role $role, Permission $permission) { parent::__construct(); $this->user = $user; $this->role = $role; $this->permission = $permission; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Rekap Penjualan & Penggunaan Voucher'; $this->page_attributes->source = 'pages.laporan.rekap.'; $this->page_attributes->breadcrumb = []; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Diskon'; $this->page_attributes->source = 'pages.promosi.diskon.'; $this->page_attributes->breadcrumb = ['Diskon' => route('promote.discount.index')]; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Laporan Abandoned Cart'; $this->page_attributes->source = 'pages.laporan.abandoned.'; $this->page_attributes->breadcrumb = []; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Policy'; $this->page_attributes->source = 'pages.konfigurasi.policy.'; $this->page_attributes->breadcrumb = ['Policy' => route('config.policy.index')]; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Validasi Bayar'; $this->page_attributes->source = 'pages.toko.pembayaran.'; $this->page_attributes->breadcrumb = ['Validasi Bayar' => route('shop.pay.create')]; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Transaksi Selesai'; $this->page_attributes->source = 'pages.toko.lengkap.'; $this->page_attributes->breadcrumb = ['Transaksi Selesai' => route('shop.completeorder.create')]; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Transaksi Batal'; $this->page_attributes->source = 'pages.toko.batal.'; $this->page_attributes->breadcrumb = ['Transaksi Batal' => route('shop.cancelorder.create')]; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Data Penjualan'; $this->page_attributes->source = 'pages.toko.penjualan.'; $this->page_attributes->breadcrumb = ['Data Penjualan' => route('shop.sell.index')]; }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Data Kostumer'; $this->page_attributes->source = 'pages.kostumer.kostumer.'; $this->page_attributes->breadcrumb = ['Data Kostumer' => route('customer.customer.index')]; $this->middleware('password.needed', ['only' => ['destroy']]); }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Kategori'; $this->page_attributes->source = 'pages.barang.kategori.'; $this->page_attributes->breadcrumb = ['Kategori' => route('goods.category.index')]; $this->middleware('password.needed', ['only' => ['destroy']]); }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Voucher'; $this->page_attributes->source = 'pages.promosi.voucher.'; $this->page_attributes->breadcrumb = ['Voucher' => route('promote.voucher.index')]; $this->middleware('password.needed', ['only' => ['destroy']]); }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Website'; $this->page_attributes->source = 'pages.konfigurasi.website.'; $this->page_attributes->breadcrumb = ['Website' => route('config.website.index')]; $this->middleware('password.needed', ['only' => ['deleteSlider']]); }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Kirim Barang'; $this->page_attributes->source = 'pages.toko.pengiriman.'; $this->page_attributes->breadcrumb = ['Kirim Barang' => route('shop.shipping.create')]; $this->middleware('password.needed', ['only' => ['destroy']]); }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Kurir'; $this->page_attributes->source = 'pages.konfigurasi.kurir.'; $this->page_attributes->breadcrumb = ['Kurir' => route('shop.courier.index')]; $this->middleware('password.needed', ['only' => ['destroy']]); }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Produk Extension'; $this->page_attributes->source = 'pages.konfigurasi.extension.'; $this->page_attributes->breadcrumb = ['Produk Extension' => route('config.extension.index')]; $this->middleware('password.needed', ['only' => ['destroy']]); }
public function __construct() { parent::__construct(); $this->page_attributes->title = 'Varian'; $this->page_attributes->source = 'pages.barang.produk.varian.'; $this->page_attributes->breadcrumb = ['Produk' => route('goods.product.index')]; $this->middleware('password.needed', ['only' => ['destroy']]); }
public function __construct() { parent::__construct(); $works = DB::table('works as w')->leftJoin('department_works as dw', 'dw.id', '=', 'w.last_department_work_id')->leftJoin('departments as d', 'd.id', '=', 'dw.department_id')->where('w.created_by', $this->currentUser->getId())->where(function ($query) { return $query->where('dw.accepted', '!=', 1)->orWhere('w.last_department_work_id', '=', null); })->count(); $continuigWorks = DB::table('works as w')->leftJoin('department_works as dw', 'dw.id', '=', 'w.last_department_work_id')->leftJoin('departments as d', 'd.id', '=', 'dw.department_id')->where(['dw.accepted' => 1, 'dw.situation' => 0])->count(); $doneWorks = DB::table('works as w')->leftJoin('department_works as dw', 'dw.id', '=', 'w.last_department_work_id')->leftJoin('departments as d', 'd.id', '=', 'dw.department_id')->where(['dw.accepted' => 1, 'dw.situation' => 1])->count(); view()->share(['todoCount' => $works, 'continuingCount' => $continuigWorks, 'doneCount' => $doneWorks]); }
public static function index($loginRedirect) { $startUrl = ""; AdminHistoryManager::clearHistory(); if ($loginRedirect) { $defaultModel = AdminController::getDefaultModelForUser(); $startUrl = "/admin/" . $defaultModel; AdminHistoryManager::addHistoryLink($startUrl, $defaultModel); } else { AdminHistoryManager::addHistoryLink(); } $ajaxRequest = \Request::ajax() && \Request::get('getIgnore_isAjax') ? true : false; $getSearchResults = isset($_GET['getIgnore_getSearchResults']) && $ajaxRequest ? true : false; $searchIsOpen = isset($_GET['getIgnore_searchIsOpen']) && $ajaxRequest ? true : false; /** @var \App\BaseModel $entity */ $entity = self::$entity; /** @var \App\BaseModel $fullEntity */ $fullEntity = self::$modelConfig->myFullEntityName(); $indexType = self::$modelConfig->index ? ucfirst(self::$modelConfig->index) : ''; $searchParams = array(); $searchDataWithFieldValues = array(); $ordering = Tools::getSearchAndOrderGets(false, false, false, true); if ($indexType == 'Tree') { $objects = $fullEntity::where('depth', 0)->orderBy('position', 'asc')->get(); } else { $searchDataWithFieldValues = AdminHelper::getSearchData(self::$modelConfig, true); $input = array(); AdminHelper::standaloneCheck(self::$modelConfig, 'index', $input); $orderAndDirection = AdminHelper::getOrderParams(self::$modelConfig); $objects = $fullEntity::searchResultsEntities(self::$modelConfig)->where(function ($query) { if (self::$modelConfig->name == 'User' && !\Auth::user()->is_superadmin) { $query->where('is_superadmin', 0); } })->orderBy($orderAndDirection['orderBy'], $orderAndDirection['direction'])->paginate(self::$modelConfig->perPage); } $addEntity = true; if ($indexType == 'Tree' && self::$modelConfig->maxFirstLevelItems && $fullEntity::where('depth', 0)->count() >= self::$modelConfig->maxFirstLevelItems) { $addEntity = false; } $viewData = array('active' => $entity, 'modelConfig' => self::$modelConfig, 'objects' => $objects, 'addEntity' => $addEntity, 'searchParams' => $searchParams, 'searchDataWithFieldValues' => $searchDataWithFieldValues, 'ordering' => $ordering, 'ajaxRequest' => $ajaxRequest, 'loginRedirect' => $loginRedirect, 'getSearchResults' => $getSearchResults, 'searchIsOpen' => $searchIsOpen, 'indexType' => $indexType); if ($ajaxRequest) { $view = \View::make('gtcms.admin.elements.index' . $indexType . 'Content')->with($viewData); if ($loginRedirect) { $data = array('success' => true, 'setUrl' => $startUrl, 'view' => $view->render()); return \Response::json($data); } $data = array('success' => true, 'view' => $view->render(), 'setHistoryLinks' => false, 'modelConfigName' => self::$modelConfig->name, 'indexView' => true, 'setUrl' => "/admin/" . $entity . Tools::getGets(), 'getParams' => Tools::getGets(), 'entity' => $entity, 'searchDataWithFieldValues' => $searchDataWithFieldValues || $ordering ? true : false); return \Response::json($data); } else { return \View::make('gtcms.admin.elements.index')->with($viewData); } }
public function __construct() { parent::__construct(); }
function __construct(Employee $employee) { parent::__construct(); $this->employee = $employee; }
/** * Initialize permission controller * @param type PermissionRepositoryInterface $permission * @return type */ public function __construct(PermissionRepositoryInterface $permission) { $this->model = $permission; parent::__construct(); }