Exemplo n.º 1
0
 /**
  * Show the admin panel.
  *
  * @param  App\Repositories\ContactRepository $contact_gestion
  * @param  App\Repositories\BlogRepository $blog_gestion
  * @param  App\Repositories\CommentRepository $comment_gestion
  * @return Response
  */
 public function admin(ContactRepository $contact_gestion, BlogRepository $blog_gestion, CommentRepository $comment_gestion)
 {
     $nbrMessages = $contact_gestion->getNumber();
     $nbrUsers = $this->user_gestion->getNumber();
     $nbrPosts = $blog_gestion->getNumber();
     $nbrComments = $comment_gestion->getNumber();
     return view('back.index', compact('nbrMessages', 'nbrUsers', 'nbrPosts', 'nbrComments'));
 }
 /**
  * نمایش داشبورد ادمین
  *
  * @param  App\Repositories\PostRepository $PostRepository
  * @param  App\Repositories\CommentRepository $CommentRepository
  * @return Response
  */
 public function Index(PostRepository $PostRepository, CommentRepository $CommentRepository)
 {
     $nbrPosts = $PostRepository->getNumber();
     $nbrComments = $CommentRepository->getNumber();
     $posts = $PostRepository->lists($this->nbrPages);
     $links = $posts->setPath('')->render();
     return view('admin.DashBoard', compact('posts', 'links', 'nbrPosts', 'nbrComments'));
 }
Exemplo n.º 3
0
 /**
  * Show the media panel.
  *
  * @return Response
  */
 public function filemanager(ContactRepository $contact_gestion, BlogRepository $blog_gestion, CommentRepository $comment_gestion)
 {
     $url = config('medias.url');
     $nbrMessages = $contact_gestion->getNumber();
     $nbrUsers = $this->user_gestion->getNumber();
     $nbrPosts = $blog_gestion->getNumber();
     $nbrComments = $comment_gestion->getNumber();
     return view('back.filemanager', compact('url', 'nbrMessages', 'nbrUsers', 'nbrPosts', 'nbrComments'));
 }
Exemplo n.º 4
0
 /**
  * Show the admin panel.
  *
  * @param  App\Repositories\ContactRepository $contact_gestion
  * @param  App\Repositories\BlogRepository $blog_gestion
  * @param  App\Repositories\CommentRepository $comment_gestion
  * @return Response
  */
 public function index(BlogRepository $blog_gestion, CommentRepository $comment_gestion)
 {
     $nbrPosts = $blog_gestion->getNumber();
     $nbrComments = $comment_gestion->getNumber();
     $tasklistall = Tasklist::all();
     Session::put('tasklisttkey', $tasklistall);
     $taskcount = Tasklist::count();
     Session::put('taskcountkey', $taskcount);
     return view('back.partials.ru', compact('nbrPosts', 'nbrComments', 'taskcountkey', 'tasklisttkey'));
 }
 /**
  * نمایش فرم افزودن پست
  *
  * @return Response
  */
 public function addPostForm()
 {
     $nbrPosts = $this->PostRepository->getNumber();
     $nbrComments = $this->CommentRepository->getNumber();
     $nbrTags = $this->PostRepository->getTags();
     $url = config('medias.url');
     $FormUrl = Route('insertPost');
     $FormMethod = "POST";
     return view('admin.Post.Form', compact('nbrTags', 'nbrPosts', 'nbrComments', 'FormUrl', 'FormMethod', 'url'));
 }
Exemplo n.º 6
0
 /**
  * Show the admin panel.
  *
  * @param  App\Repositories\ContactRepository $contact_gestion
  * @param  App\Repositories\BlogRepository $blog_gestion
  * @param  App\Repositories\CommentRepository $comment_gestion
  * @return Response
  */
 public function admin(ContactRepository $contact_gestion, BlogRepository $blog_gestion, CommentRepository $comment_gestion)
 {
     $nbrMessages = $contact_gestion->getNumber();
     $nbrUsers = $this->user_gestion->getNumber();
     $nbrPosts = $blog_gestion->getNumber();
     $nbrComments = $comment_gestion->getNumber();
     $tasklistall = Tasklist::all();
     Session::put('tasklisttkey', $tasklistall);
     $taskcount = Tasklist::count();
     Session::put('taskcountkey', $taskcount);
     return view('back.index', compact('nbrMessages', 'nbrUsers', 'nbrPosts', 'nbrComments', 'taskcountkey', 'tasklisttkey'));
 }