@@ -17,13 +17,13 @@ |
||
17 | 17 | |
18 | 18 | $total = $this->createModel()->count(); |
19 | 19 | $signedLastWeek = $this->createModel() |
20 | - ->where('created_at', '>=', $weekAgo)->count(); |
|
20 | + ->where('created_at', '>=', $weekAgo)->count(); |
|
21 | 21 | $signedLastMonth = $this->createModel() |
22 | - ->where('created_at', '>=', $monthAgo)->count(); |
|
22 | + ->where('created_at', '>=', $monthAgo)->count(); |
|
23 | 23 | $signedStatistics = $this->createModel() |
24 | - ->where('created_at', '>=', $monthAgo) |
|
25 | - ->select([DB::raw('COUNT(id) AS cnt'), DB::raw('DATE(created_at) as dt')]) |
|
26 | - ->groupBy('dt')->pluck('cnt', 'dt'); |
|
24 | + ->where('created_at', '>=', $monthAgo) |
|
25 | + ->select([DB::raw('COUNT(id) AS cnt'), DB::raw('DATE(created_at) as dt')]) |
|
26 | + ->groupBy('dt')->pluck('cnt', 'dt'); |
|
27 | 27 | |
28 | 28 | return view(app('scaffold.template')->dashboard('members'), [ |
29 | 29 | 'total' => $total, |
@@ -192,7 +192,7 @@ |
||
192 | 192 | |
193 | 193 | $instance = $eloquent |
194 | 194 | ->when($searchByKey, function ($query) use ($searchableKey, $term) { |
195 | - return $query->where($searchableKey, (int)$term); |
|
195 | + return $query->where($searchableKey, (int) $term); |
|
196 | 196 | }) |
197 | 197 | ->when(!$searchByKey, function ($query) use ($searchableKey, $term) { |
198 | 198 | return $query->orWhere($searchableKey, 'LIKE', "%{$term}%"); |
@@ -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); |