$user->getRouteKey(), 'key' => [ 'public' => $user->getPublicKey(), 'route' => $user->getRouteKey(), ], 'reporting_to' => $user->reporting_to, 'name' => $user->name, 'firstname' => $user->firstname, 'surname' => $user->surname, 'email' => $user->email, 'user_group' => $user->user_group, 'office_id' => $user->office_id, 'title' => $user->title, 'wordpress_user' => $user->wordpress_user, 'active' => $user->active, 'print_profile' => $user->print_profile, 'profile_pic' => $user->profile_pic, 'town_knowledge' => $user->town_knowledge, 'knowledge' => $user->knowledge, 'ships' => $user->ships, 'statement' => $user->statement, 'password' => $user->password, 'api_token' => $user->api_token, 'remember_token' => $user->remember_token, 'sex' => $user->sex, 'dob' => $user->dob, 'designation' => $user->designation, 'mobile' => $user->mobile, 'phone' => $user->phone, 'address' => $user->address, 'street' => $user->street, 'city' => $user->city, 'district' => $user->district, 'state' => $user->state, 'country' => $user->country, 'photo' => $user->photo, 'web' => $user->web, 'permissions' => $user->permissions, 'email_verified_at' => $user->email_verified_at, 'last_login' => $user->last_login, 'user_id' => $user->user_id, 'user_type' => $user->user_type, 'upload_folder' => $user->upload_folder, 'deleted_at' => $user->deleted_at, 'team_id' => $user->team_id, 'url' => [ 'public' => trans_url('staff/'.$user->getPublicKey()), 'user' => guard_url('staff/user/'.$user->getRouteKey()), ], 'status' => trans('app.'.$user->status), 'created_at' => format_date($user->created_at), 'updated_at' => format_date($user->updated_at), ]; } }