/** * sidebar function * Create sidebar * @return string * @author joharijumali **/ public static function sidebar() { // $Menu = Header::navigationdata(); $flow = URI::segment(3) == 'step' ? true : false; $navValue = array(array(Navigation::HEADER, Str::upper(Lang::line('admin.monitor')->get())), array(Lang::line('admin.dashboard')->get(), url('admin/home/dashboard'), false, false, null, 'tasks'), array(Navigation::HEADER, Str::upper(Lang::line('admin.sysmgmt')->get())), array(Lang::line('admin.configmanagement')->get(), url('admin/system/sysConfig'), false, false, null, 'chevron-right'), array(Lang::line('admin.datamanagement')->get(), url('admin/data/board'), false, false, null, 'chevron-right'), array(Lang::line('admin.pagemanagement')->get(), url('admin/modul/page'), false, false, null, 'chevron-right'), array(Lang::line('admin.flowmanagement')->get(), url('admin/modul/flow'), $flow, false, null, 'chevron-right'), array(Lang::line('admin.navsetup')->get(), url('admin/system/navigate'), false, false, null, 'chevron-right'), array(Lang::line('admin.log')->get(), url('admin/system/logger'), false, false, null, 'chevron-right'), array(Navigation::HEADER, Str::upper(Lang::line('admin.sysuser')->get())), array(Lang::line('admin.navuserlist')->get(), url('admin/user/list'), false, false, null, 'chevron-right'), array(Lang::line('admin.navuserrole')->get(), url('admin/user/role'), false, false, null, 'chevron-right'), array(Navigation::HEADER, Lang::line('global.logout')->get()), array(Lang::line('global.logout')->get(), url('admin/login/logout'), false, false, null, 'off')); return Navigation::lists(Navigation::links($navValue)); }
public static function laravel_init() { // Load AutoLoad Aliases \Laravel\Autoloader::alias('\\Cloudmanic\\WarChest\\Libraries\\LaravelAuth', 'LaravelAuth'); \Laravel\Autoloader::alias('\\Cloudmanic\\WarChest\\Libraries\\Me', 'Me'); // Extend the Laravel Auth library to use our own custom driver. \Auth::extend('cloudmanic_auth', function () { return new LaravelAuth(); }); // Set Api auth filter. \Laravel\Routing\Route::filter('api_auth', function () { return CloudAuth::sessioninit(); }); // Build a micro for activating a class or not. We use this in a main navigation // to set the html class to active or not. \Laravel\HTML::macro('is_active', function ($name, $home = false, $class = 'active') { $base = \Laravel\URI::segment(1); // Is the the default route? if ($home && empty($base)) { return $class; } // Compare the segment. if ($base == $name) { return $class; } return ''; }); }
/** * Flow Step Managment function * Component : step, stepinfo, resetstepdata, deletestep * Method : ajax post get * @return void * @author joharijumali@gmail.com **/ public function get_step() { $data['flow'] = Str::title(Flow::find(URI::segment(5))->flowname); $data['steplist'] = Menu::flowtree(URI::segment(5)); $data['allrole'] = Role::arrayRoles(); $data['pagelist'] = $listpage = Page::listSteppages(); return View::make('admin::modul.step', $data); }