$city->getRouteKey(), 'key' => [ 'public' => $city->getPublicKey(), 'route' => $city->getRouteKey(), ], 'name' => $city->name, 'country_id' => $city->country_id, 'country_code' => $city->country_code, 'district' => $city->district, 'population' => $city->population, 'deleted_at' => $city->deleted_at, 'url' => [ 'public' => trans_url('location/'.$city->getPublicKey()), 'user' => guard_url('location/city/'.$city->getRouteKey()), ], 'status' => trans('app.'.$city->status), 'created_at' => format_date($city->created_at), 'updated_at' => format_date($city->updated_at), ]; } }