Beispiel #1
0
 public function postAdd()
 {
     $inputs = $this->request->all();
     Category::create($inputs);
     $cats = Category::all();
     $theme = "Admin";
     $ddl_cats = array();
     $ddl_cats[0] = 'انتخاب کنید';
     foreach ($cats as $cat) {
         $ddl_cats[$cat->id] = $cat->title;
     }
     return $this->theme->baseDashboard("Post::CatAdd", compact("ddl_cats", "cats", "theme"));
 }
Beispiel #2
0
 public function getShowPost($permalink = "")
 {
     if (!$permalink) {
         exit('Not found.');
     }
     $post = $this->db->table('cms.cms_posts', ['permalink', $permalink])->first();
     if (!$post) {
         exit('404 not found');
     }
     return $this->theme->baseDashboard("Front::view.single", ['post' => $post]);
 }
Beispiel #3
0
 public function getUpdate(Post $ad)
 {
     return $this->theme->baseDashboard('Post::ad.AdUpdate')->with(compact('ad'));
 }
Beispiel #4
0
 public function index()
 {
     $themeWidgets = $this->widgets->getWidgets();
     $sidebars = $this->sidebar->getHook()->getAreas();
     return $this->theme->baseDashboard("Widget::index", compact('sidebars', 'themeWidgets'));
 }
 public function index()
 {
     return $this->theme->baseDashboard("Setting::index");
 }
Beispiel #6
0
 public function getList()
 {
     $sliders = Slider::all();
     return $this->theme->baseDashboard("Sliders::SliderList", compact('sliders'));
 }
Beispiel #7
0
 public function register()
 {
     return $this->theme->baseDashboard("Admin::register");
 }
 public function index()
 {
     $permissions = PermissionModel::all();
     return $this->theme->baseDashboard("UserManagement::permission.index", ["permissions" => $permissions]);
 }
Beispiel #9
0
 public function getList()
 {
     $pages = Post::where('type', PostType::page)->get();
     return $this->theme->baseDashboard("Post::PageList")->with('pages', $pages);
 }
Beispiel #10
0
 public function getList()
 {
     $mainMenus = MainMenu::all();
     return $this->theme->baseDashboard("Menu::MainMenuList", compact('mainMenus'));
 }
Beispiel #11
0
 public function getCreate()
 {
     return $this->theme->baseDashboard("Menu::create", ['areas' => $this->hooks->getHook()->getAreas()]);
 }