@@ -153,7 +153,7 @@ |
||
| 153 | 153 | * @return $this|BaseCollection |
| 154 | 154 | * @throws Exception |
| 155 | 155 | */ |
| 156 | - public function switch($id, $value) |
|
| 156 | + public function switch ($id, $value) |
|
| 157 | 157 | { |
| 158 | 158 | if ($position = $this->position($id)) { |
| 159 | 159 | $this->offsetSet($position, $value); |
@@ -18,13 +18,13 @@ |
||
| 18 | 18 | |
| 19 | 19 | $total = $this->createModel()->count(); |
| 20 | 20 | $signedLastWeek = $this->createModel() |
| 21 | - ->where('created_at', '>=', $weekAgo)->count(); |
|
| 21 | + ->where('created_at', '>=', $weekAgo)->count(); |
|
| 22 | 22 | $signedLastMonth = $this->createModel() |
| 23 | - ->where('created_at', '>=', $monthAgo)->count(); |
|
| 23 | + ->where('created_at', '>=', $monthAgo)->count(); |
|
| 24 | 24 | $signedStatistics = $this->createModel() |
| 25 | - ->where('created_at', '>=', $monthAgo) |
|
| 26 | - ->select([DB::raw('COUNT(id) AS cnt'), DB::raw('DATE(created_at) as dt')]) |
|
| 27 | - ->groupBy('dt')->pluck('cnt', 'dt'); |
|
| 25 | + ->where('created_at', '>=', $monthAgo) |
|
| 26 | + ->select([DB::raw('COUNT(id) AS cnt'), DB::raw('DATE(created_at) as dt')]) |
|
| 27 | + ->groupBy('dt')->pluck('cnt', 'dt'); |
|
| 28 | 28 | |
| 29 | 29 | return view(Architect::template()->dashboard('members'), [ |
| 30 | 30 | 'total' => $total, |