@@ -228,25 +228,25 @@ |
||
228 | 228 | if(!is_null($father) && is_null($mother) && is_null($guardian)){ |
229 | 229 | Security_user::where('id',$student['student_id']) |
230 | 230 | ->update(['address_area_id' => $father->address_area_id]); |
231 | - }elseif(!is_null($mother) && (is_null($father) && is_null($guardian))){ |
|
231 | + } elseif(!is_null($mother) && (is_null($father) && is_null($guardian))){ |
|
232 | 232 | Security_user::where('id',$student['student_id']) |
233 | 233 | ->update(['address_area_id' => $mother->address_area_id]); |
234 | - }elseif(!is_null($guardian) && is_null($father) && is_null($mother)){ |
|
234 | + } elseif(!is_null($guardian) && is_null($father) && is_null($mother)){ |
|
235 | 235 | Security_user::where('id',$student['student_id']) |
236 | 236 | ->update(['address_area_id' => $guardian->address_area_id]); |
237 | - }elseif(!is_null($mother) && !is_null($father) && ($father->address_area_id == $mother->address_area_id)){ |
|
237 | + } elseif(!is_null($mother) && !is_null($father) && ($father->address_area_id == $mother->address_area_id)){ |
|
238 | 238 | Security_user::where('id',$student['student_id']) |
239 | 239 | ->update(['address_area_id' => $mother->address_area_id]); |
240 | - }elseif(!is_null($mother) && !is_null($father) && ($father->address_area_id !== $mother->address_area_id) && !is_null($guardian)){ |
|
240 | + } elseif(!is_null($mother) && !is_null($father) && ($father->address_area_id !== $mother->address_area_id) && !is_null($guardian)){ |
|
241 | 241 | Security_user::where('id',$student['student_id']) |
242 | 242 | ->update(['address_area_id' => $guardian->address_area_id]); |
243 | - }elseif(!is_null($father) && $father->address == $student['address']){ |
|
243 | + } elseif(!is_null($father) && $father->address == $student['address']){ |
|
244 | 244 | Security_user::where('id',$student['student_id']) |
245 | 245 | ->update(['address_area_id' => $father->address_area_id]); |
246 | - }elseif(!is_null($mother) && $mother->address == $student['address']){ |
|
246 | + } elseif(!is_null($mother) && $mother->address == $student['address']){ |
|
247 | 247 | Security_user::where('id',$student['student_id']) |
248 | 248 | ->update(['address_area_id' => $mother->address_area_id]); |
249 | - }elseif(!is_null($guardian) && $guardian->address == $student['address']){ |
|
249 | + } elseif(!is_null($guardian) && $guardian->address == $student['address']){ |
|
250 | 250 | Security_user::where('id',$student['student_id']) |
251 | 251 | ->update(['address_area_id' => $guardian->address_area_id]); |
252 | 252 | } |