{% set storeDetail = entries('store','store').where('user_id', adv.created_by_id).first() %} {% set user = setting_value('visiosoft.theme.restate::default_owner') ? entries('users', 'users').find(setting_value('visiosoft.theme.restate::default_owner')) : adv.created_by %} {% set cat1 = entries('cats','category').where('id', adv.cat1).first() %} {% set cat2 = entries('cats','category').where('id', adv.cat2).first() %}

{{ cat1.name }} {% if cat2 %} / {{ cat2.name }} {% endif %}

{{ trans('visiosoft.theme.restate::field.ads_no') }} : {{ adv.id }}
{% if setting_value('visiosoft.theme.restate::print_logo') %} {% else %} {{ img('visiosoft.theme.restate::images/logo-multi.dd5166a.png').class('float-right header-logo-print')|raw }} {% endif %}
{% set country = entries('location','countries').find(adv.country_id) ? entries('location','countries').find(adv.country_id).name : null %} {% set city = entries('location', 'cities').find(adv.city) ? entries('location', 'cities').find(adv.city).name : null %}
{% if country %} {{ country }} {{ city ? ',' ~ city : '' }} {% endif %}
{{ adv.title }}
{% if storeDetail is not null%} {{ storeDetail.name }} {% set phone = storeDetail.gsm_phone ?? storeDetail.land_phone %} {% if phone %}
{{ phone }} {% endif %} {% else %} {{ user.name }}, {% if user.gsm_phone is not null %}
{{ user.gsm_phone }} {% endif %} {% endif %}
{% if adv.thumbnail is not null %} {{ img(adv.thumbnail).class('product-small-image h-auto w-100 float-right')|raw }} {% else %} {{ img('visiosoft.theme.restate::images/no-image.png').class('product-small-image w-100 float-right')|raw }} {% endif %}

{{ currency_format(adv.price,adv.currency, {'separator' : '.', 'point' : ','}) }}

{% if storeDetail is not null %} {{ img(storeDetail.file.make.url ?? 'visiosoft.theme.restate::images/no-image-user.6f6a83e.svg').class('h-75 w-special-3 float-right')|raw }} {% endif %}