<section class="jobs">
<div class="container">
<div class="row justify-content-center">
<div class="col-12">
<div class="row align-items-center">
{% if offers is empty %}
<div class="col-lg-12 {% if offersResult != false %} mt-5 {% endif %} px-lg-0">
<span class="industry">
<p style="font-size: 20px !important;">{{'USER_ZONE.HOME_PAGE.NO_MATCH_OFFERS'|trans}}</p>
</span>
</div>
{% else %}
<div class="col-lg-12 job px-lg-0">
<span class="industry">
<h1>{{ 'MAIN_PAGE.JOB_OFFER'|trans }}
{% if app.request.locale == 'pl' %}
{{ seo_text.seoTextPL != '' ? seo_text.seoTextPL|default : seo_text.seoTextEN|default }}
{% else %}
{{ seo_text.seoTextEN != '' ? seo_text.seoTextEN|default : seo_text.seoTextPL|default }}
{% endif %}
</h1>
</span>
</div>
{% endif %}
{% set showFilter = 0 %}
{% set jobOffer = 0 %}
{% for offer in offers %}
{% set boxToken = generate_token() %}
{% set localizationNumber = offer.offerNumber %}
<div class="col-lg-12 job py-3 py-lg-2 {% if localizationNumber > 1 %} offer_name_show_list_location {% endif %}" data-id="{{ boxToken }}" data-localization="{{ localizationNumber }}">
{% set arrayOffer = {
pl: 'oferta',
en:'offer'
} %}
{% set arrayOfferName = {
pl: offer.namePl != '' ? offer.namePl : offer.nameEn ,
en:offer.nameEn != '' ? offer.nameEn : offer.namePl
} %}
{% if localizationNumber <= 1 %}
<a href="{{ path('front-offer', queryParams|default([])|merge({ _locale: offer.language|default('pl'), offer: arrayOfferts[app.request.locale], temporaryId: offer.temporaryId,branch_extra: slug(arrayOfferName[offer.language|default('pl')]) })) }}" class="">
{% endif %}
<div class="row align-items-sm-center align-content-sm-center">
<div class="job__image col-3 col-lg-2 text-lg-center">
{% if offer.mainOffer|default(null) is not null %}
<img src="{{ offer.mainOffer.logo.fileName|default(null) is null or offer.mainOffer.logo.extension|default(null) is null ? asset('/default_photo/logo_default.png')|imagine_filter('logo_offer') : asset('firm/' ~ offer.mainOffer.logo.fileName ~ '.' ~ offer.mainOffer.logo.extension)|default()|imagine_filter('logo_offer') }}" class="img-fluid" alt="">
{% else %}
<img src="{{ offer.logo.fileName|default(null) is null or offer.logo.extension|default(null) is null ? asset('/default_photo/logo_default.png')|imagine_filter('logo_offer') : asset('firm/' ~ offer.logo.fileName ~ '.' ~ offer.logo.extension)|default()|imagine_filter('logo_offer') }}" class="img-fluid" alt="">
{% endif %}
</div>
<div class="job__type col-9 col-lg-4">
<h3 class="job__position">{{ arrayOfferName[offer.language|default('pl')] }}</h3>
<div class="job__company">{{ offer.invoiceData.name|default }}</div>
</div>
<div class="col-md-8 col-lg-4 col-sm-8 col-12 mt-3 mt-lg-0">
<div class="row">
<div class="job__localization my-lg-2 col-sm-6 col-6">
<div class="row align-content-center align-items-center">
<div class="col-1 col-sm-2 col-xl-1 localization-wrapper">
<i class="fas fa-map-marker-alt"></i>
</div>
{% if offer.workData|default(null) %}
{% if offer.workData.address.city|default(null) %}
{% if offer.offers|default(null) is not null and localizationNumber > 1%}
<div class="col"><span class="offer_show_list_location" data-id="{{ boxToken }}" data-localization="{{ localizationNumber }}">{{ localizationNumber }} {{ get_many_location(localizationNumber, app.request.locale) }}</span></div>
<div class="col-12"></div>
<div class="col-1 col-sm-2 col-xl-1 localization-wrapper"></div>
<div class="col box_many_location box_many_location_{{ boxToken }} mt-2" style="display: none">
{% for childOffer in offer.offers|default([]) %}
{% if childOffer.workData.address.city|default(null) is not iterable %}
<div class="col-12"></div>
<div class="col-1 col-sm-2 col-xl-1"></div>
<div class="col element_many_location" style="margin-top: 8px">
<a href="{{ path('front-offer', queryParams|default([])|merge({ _locale: childOffer.language|default('pl'), offer: arrayOffer[app.request.locale], temporaryId: childOffer.temporaryId ,branch_extra: slug(arrayOfferName[childOffer.language|default('pl')])})) }}" class="">
{{ childOffer.workData.address.city|default('') }}
</a>
</div>
{% endif %}
{% endfor %}
</div>
{% else %}
{% if offer.workData.address.city|default([]) is iterable %}
<div class="col">{{ offer.workData.address.city.0|default('-') }}</div>
{% else %}
<div class="col">{{ offer.workData.address.city|default('-') }}</div>
{% endif %}
{% endif %}
{% endif %}
{% else %}
<div class="col">{{ 'MAIN_PAGE.NONE'|trans }}</div>
{% endif %}
</div>
</div>
<div class="job__salary col-sm-6 my-lg-2 col-6">
{% set break = false %}
{% for data in offer.salaryData %}
{% if data.checked is defined and data != '' %}
{% if data.checked != '' and data.from != '' and data.to != '' and break == false%}
{{ data.from|number_format(0, ' ', ' ')|default }} - {{ data.to|number_format(0, ' ', ' ')|default }} {{ data.currency|default }}
{% set break = true %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
<div class="job__info mt-3 my-lg-2 col-md-4 col-lg-2 col-sm-4 col-6 d-none d-sm-block">
{% if offer.workData != null and offer.workData != '' %}
{% if offer.workData.remote_work is defined and offer.workData.remote_work != '' %}
{% if offer.workData.remote_work.checked == true %}
<div class="job__recruitment"><i class="fmx-lg-2 fas fa-check"></i>{{ 'MAIN_PAGE.REMOTE'|trans }}{% if offer.workData.remote_work.option != null %}: {{ offer.workData.remote_work.option|default }} %{% endif %}</div>
{% else %}
<div class="job__recruitment"><i class="fmx-lg-2 fas fa-check"></i>{{ 'MAIN_PAGE.OFFICE'|trans }}</div>
{% endif %}
{% endif %}
{% if offer.workData.recruitment_remote is defined and offer.workData.recruitment_remote != '' %}
{% if offer.workData.recruitment_remote.checked == true %}
<div class="job__recruitment"><i class="fmx-lg-2 fas fa-check"></i>{{ 'MAIN_PAGE.REMOTE_RECRUITMENT'|trans }}</div>
{% endif %}
{% endif %}
{% else %}
{{ 'MAIN_PAGE.NONE'|trans }}
{% endif %}
</div>
</div>
{% if localizationNumber <= 1 %}
</a>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</section>