$country->getRouteKey(), 'key' => [ 'public' => $country->getPublicKey(), 'route' => $country->getRouteKey(), ], 'code' => $country->code, 'name' => $country->name, 'continent' => $country->continent, 'region' => $country->region, 'surfacearea' => $country->surfacearea, 'indepyear' => $country->indepyear, 'population' => $country->population, 'life_expectancy' => $country->life_expectancy, 'gnp' => $country->gnp, 'gnpoid' => $country->gnpoid, 'local_name' => $country->local_name, 'government_form' => $country->government_form, 'head_of_state' => $country->head_of_state, 'capital' => $country->capital, 'code2' => $country->code2, ')' => $country->), 'deleted_at' => $country->deleted_at, 'url' => [ 'public' => trans_url('locations/'.$country->getPublicKey()), 'user' => guard_url('locations/country/'.$country->getRouteKey()), ], 'status' => trans('app.'.$country->status), 'created_at' => format_date($country->created_at), 'updated_at' => format_date($country->updated_at), ]; } }