diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 8e12497..471005b 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -64,7 +64,7 @@ SQL return view('user.profile')->with(compact('user', 'ejaculations', 'tags')); } - public function statsAll($name) + public function stats($name) { $user = User::where('name', $name)->first(); if (empty($user)) { @@ -74,7 +74,7 @@ SQL $availableMonths = $this->makeStatsAvailableMonths($user); $graphData = $this->makeGraphData($user); - return view('user.stats.all')->with(compact('user', 'graphData', 'availableMonths')); + return view('user.stats.index')->with(compact('user', 'graphData', 'availableMonths')); } public function statsYearly($name, $year) diff --git a/resources/views/user/stats/base.blade.php b/resources/views/user/stats/base.blade.php index 2a6555c..43392e4 100644 --- a/resources/views/user/stats/base.blade.php +++ b/resources/views/user/stats/base.blade.php @@ -3,8 +3,8 @@ @section('sidebar') @if (!$user->is_protected || $user->isMe())