/** * 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')); }
/** * 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')); }
public function json_disabled() { $tasklists = Tasklist::all(); return View('back.tasklist.json_disabled', compact('tasklists')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return Tasklist::all()->toJson(); }