@@ -36,7 +36,7 @@  | 
                                                    ||
| 36 | 36 | protected function uploadProfile($profile)  | 
                                                        
| 37 | 37 |      { | 
                                                        
| 38 | 38 | $profile_pic = [  | 
                                                        
| 39 | -            'storage' => 'admin/profile/' . isset($profile->user->name) ? str_replace(' ', '_', strtolower($profile->user->name)) : '', | 
                                                        |
| 39 | +            'storage' => 'admin/profile/'.isset($profile->user->name) ? str_replace(' ', '_', strtolower($profile->user->name)) : '', | 
                                                        |
| 40 | 40 | 'width' => '222',  | 
                                                        
| 41 | 41 | 'height' => '222',  | 
                                                        
| 42 | 42 | 'quality' => '70',  | 
                                                        
@@ -163,8 +163,8 @@ discard block  | 
                                                    ||
| 163 | 163 | $children = [  | 
                                                        
| 164 | 164 | [  | 
                                                        
| 165 | 165 | 'type' => 'submenu',  | 
                                                        
| 166 | - 'name' => 'All ' . $plural,  | 
                                                        |
| 167 | - 'is_active' => request()->routeIs($route . '.index') ? 'active' : '',  | 
                                                        |
| 166 | + 'name' => 'All '.$plural,  | 
                                                        |
| 167 | + 'is_active' => request()->routeIs($route.'.index') ? 'active' : '',  | 
                                                        |
| 168 | 168 | 'link' => adminRedirectRoute($route),  | 
                                                        
| 169 | 169 | 'conditions' => [  | 
                                                        
| 170 | 170 | [  | 
                                                        
@@ -175,8 +175,8 @@ discard block  | 
                                                    ||
| 175 | 175 | ],  | 
                                                        
| 176 | 176 | [  | 
                                                        
| 177 | 177 | 'type' => 'submenu',  | 
                                                        
| 178 | - 'name' => 'Create ' . $route,  | 
                                                        |
| 179 | - 'is_active' => request()->routeIs($route . '.create') ? 'active' : '',  | 
                                                        |
| 178 | + 'name' => 'Create '.$route,  | 
                                                        |
| 179 | + 'is_active' => request()->routeIs($route.'.create') ? 'active' : '',  | 
                                                        |
| 180 | 180 | 'link' => adminCreateRoute($route),  | 
                                                        
| 181 | 181 | 'conditions' => [  | 
                                                        
| 182 | 182 | [  | 
                                                        
@@ -89,7 +89,7 @@  | 
                                                    ||
| 89 | 89 |                  'profile_pic' => $this->profile_pic->store('admin/user', 'public'), | 
                                                        
| 90 | 90 | ]);  | 
                                                        
| 91 | 91 | $image = Image::make($this->profile_pic->getRealPath());  | 
                                                        
| 92 | -            $image->save(public_path('storage/' . $profile->profile_pic)); | 
                                                        |
| 92 | +            $image->save(public_path('storage/'.$profile->profile_pic)); | 
                                                        |
| 93 | 93 | }  | 
                                                        
| 94 | 94 | }  | 
                                                        
| 95 | 95 | |