public function detailWithAddresses($id)
    {
        $dealer = $this->detail($id);

        if ($dealer->dealersToAddresses) {
            $addressesId = array_map(function($value) {
                return $value['addressId'];
            }, $dealer->dealersToAddresses);

            $addresses = $this->client->addresses()
                ->ids(array_values($addressesId))
                ->all();

            $dealer->addresses = $addresses;
        }

        return $dealer;
    }