@@ -38,9 +38,9 @@  | 
                                                    ||
| 38 | 38 | return array_map(  | 
                                                        
| 39 | 39 | 'intval',  | 
                                                        
| 40 | 40 | \DB::table($object->getTable())  | 
                                                        
| 41 | - ->where($this->getQualifiedForeignKeyName($object), $orig->getKey())  | 
                                                        |
| 42 | - ->pluck($this->getQualifiedRelatedKeyName($object))  | 
                                                        |
| 43 | - ->toArray()  | 
                                                        |
| 41 | + ->where($this->getQualifiedForeignKeyName($object), $orig->getKey())  | 
                                                        |
| 42 | + ->pluck($this->getQualifiedRelatedKeyName($object))  | 
                                                        |
| 43 | + ->toArray()  | 
                                                        |
| 44 | 44 | );  | 
                                                        
| 45 | 45 | }  | 
                                                        
| 46 | 46 | |
@@ -134,8 +134,8 @@  | 
                                                    ||
| 134 | 134 | ])->render();  | 
                                                        
| 135 | 135 | |
| 136 | 136 | return $pdf->loadHTML($html)  | 
                                                        
| 137 | -                   ->setPaper('a4', 'landscape') | 
                                                        |
| 138 | -                   ->download(app('scaffold.module')->url().'.pdf'); | 
                                                        |
| 137 | +                    ->setPaper('a4', 'landscape') | 
                                                        |
| 138 | +                    ->download(app('scaffold.module')->url().'.pdf'); | 
                                                        |
| 139 | 139 | }  | 
                                                        
| 140 | 140 | |
| 141 | 141 | /**  | 
                                                        
@@ -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,  |