{% set dealers = entries('so', 'special_offer').where('slug', request_segment(5)).first() %}
{% set specialOfferDealers = dealers.special_offer_dealer.where('city_id', request_segment(4)) %}
{% if dealers and specialOfferDealers is not empty %}
    {% for dealer in specialOfferDealers %}
        <li><a class="dealerStore" data-store="{{ dealer.id }}"><span>{{ dealer.name }}</span><div>{{ dealer.address }} - Phone : {{ dealer.phone }}</div></a></li>
    {% endfor %}
{% else %}
    <li><a store="">Dealer / store is not available !!!</a></li>
{% endif %}
