__construct() public method

AdminController constructor.
public __construct ( AdminRepository $admin )
$admin App\Repositories\AdminRepository
Exemplo n.º 1
0
 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')];
 }
Exemplo n.º 3
0
 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')];
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     $this->page_attributes->title = 'Laporan Penjualan';
     $this->page_attributes->source = 'pages.laporan.penjualan.';
     $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')];
 }
Exemplo n.º 7
0
 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')];
 }
Exemplo n.º 8
0
 /**
  * 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();
 }
 public function __construct()
 {
     parent::__construct();
     $this->page_attributes->title = 'Laporan Transaksi Batal';
     $this->page_attributes->source = 'pages.laporan.batal.';
     $this->page_attributes->breadcrumb = [];
 }
Exemplo n.º 10
0
 /**
  * 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;
 }
Exemplo n.º 11
0
 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 = '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')];
 }
Exemplo n.º 16
0
 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')];
 }
Exemplo n.º 17
0
 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']]);
 }
Exemplo n.º 18
0
 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 = '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 = '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']]);
 }
Exemplo n.º 22
0
 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']]);
 }
Exemplo n.º 24
0
 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]);
 }
Exemplo n.º 26
0
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 27
0
 /**
  * Construtor padrão
  */
 public function __construct()
 {
     parent::__construct();
     $this->define_nomes_filtros();
 }
Exemplo n.º 28
0
 /**
  * Initialize permission controller
  * @param type PermissionRepositoryInterface $permission
  * @return type
  */
 public function __construct(PermissionRepositoryInterface $permission)
 {
     $this->model = $permission;
     parent::__construct();
 }
 function __construct(Employee $employee)
 {
     parent::__construct();
     $this->employee = $employee;
 }
Exemplo n.º 30
0
 function __construct(Group $group)
 {
     parent::__construct();
     $this->group = $group;
 }