/**
  *
  * @param WeightsRepository $weightsRepository
  * @return \Illuminate\View\View
  */
 public function entries(WeightsRepository $weightsRepository)
 {
     $date = Carbon::today()->format('Y-m-d');
     JavaScript::put(["menuEntries" => $this->menuEntriesRepository->getEntriesForTheDay($date), "caloriesForTheDay" => $this->caloriesRepository->getCaloriesForDay($date), "calorieAverageFor7Days" => $this->caloriesRepository->getCaloriesFor7Days($date)]);
     return view('main.home-page');
 }
 /**
  * Get the user's menu (food, recipe) entries for the day
  * @param $date
  * @return mixed
  */
 public function index($date)
 {
     return $this->menuEntriesRepository->getEntriesForTheDay($date);
 }