@@ -65,8 +65,8 @@ |
||
| 65 | 65 | // prevent duplicated execution |
| 66 | 66 | if (null === $this->query && $this->model) { |
| 67 | 67 | $this->initQuery() |
| 68 | - ->applyFilters() |
|
| 69 | - ->applySorting(); |
|
| 68 | + ->applyFilters() |
|
| 69 | + ->applySorting(); |
|
| 70 | 70 | |
| 71 | 71 | $this->query = $this->assembler()->getQuery(); |
| 72 | 72 | } |
@@ -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, |