{% extends "Theme/carriereinlimburg/pages/vacancy_detail.html.twig" %}
{% block vacancy_block_sidebar_recruiter %}{% endblock %}
{% block custom_header_attribute %}{% if heroImage is not empty %}data-custom-header="{{ media_asset(heroImage) }}" {% endif %}{% endblock %}
{#{% block content %}#}
{# Modal #}
{#{{ render(controller(#}
{#'App\\Controller\\Page\\ApplicantController::asyncFormModalAction',#}
{#{ 'id': vacancy.id }#}
{#)) }}#}
{#<header data-component="MenuMobile,Favorite"#}
{#data-vacancy-id="{{ vacancy.id }}"#}
{#class="fixed-top vacancy-header-top">#}
{#<div class="row">#}
{#<div class="col-12 col-sm-6 is-align-items-center is-display-flex is-padding-x-30">#}
{#<h2 class="d-none d-sm-flex">{% if vacancy.options.functie is defined %}{{ vacancy.options.functie|first }}{% else %}{{ vacancy.title }}{% endif %}</h2>#}
{#</div>#}
{#<div class="col-12 col-sm-6 button-set h-align h-align-right is-margin-bottom-0 is-margin-bottom-mobile-15 is-margin-top-mobile-15 is-padding-x-30">#}
{#{% if vacancy.published %}#}
{#{% if vacancy.externalUrl %}#}
{#<a target="_blank" href="{{ vacancy.externalUrl }}"#}
{#title="{{ 'Apply'|trans }}"#}
{#class="is-btn is-btn__cta">#}
{#<i class="fal fa-pencil icon-before"></i>#}
{#{{ 'Apply'|trans }}#}
{#</a>#}
{#{% else %}#}
{#<a href="{{ path('vacancy_apply', {'id': vacancy.id }) }}"#}
{#title="{{ 'Apply'|trans }}"#}
{#class="is-btn is-btn__cta{% if not is_mobile() %} apply-btn_modal{% endif %}"#}
{#{% if not is_mobile() %}data-toggle="modal"#}
{#data-target="#vacancyApplyModal"{% endif %}>#}
{#<i class="fal fa-pencil icon-before"></i>#}
{#{{ 'Apply'|trans }}#}
{#</a>#}
{#{% endif %}#}
{#{% if feature('feature_vacancy_save_as_favorite') %}#}
{#<span class="d-none" data-is-favorited="true">#}
{#<i class="fal fa-times icon-before"></i>#}
{#{{ 'Remove'|trans }}#}
{#</span>#}
{#<span class="d-none" data-is-favorited="false">#}
{#<i class="fal fa-star icon-before"></i>#}
{#{{ 'Save'|trans }}#}
{#</span>#}
{#<a href="javascript:void(0)" title="{{ 'Save as favorite'|trans }}"#}
{#class="is-btn is-btn_add-to-favorites is-btn-outlined-primary favorite-add favorite-vacancy">#}
{#</a>#}
{#{% endif %}#}
{#{% endif %}#}
{#</div>#}
{#</div>#}
{#</header>#}
{# Version 2 of vacancy view #}
{#<div data-component="Vacancy,Favorite,Apply,CustomHeader"#}
{#data-vacancy-id="{{ vacancy.id }}"{% if vacancy.company.heroName is defined and vacancy.company.heroName is not empty %} data-custom-header="{{ media_asset(vacancy.company.hero) }}" {% endif %}#}
{#class="component component--default component--vacancy-detail component--vacancy-detail__second-version">#}
{#<div class="row">#}
{#<div class="col">#}
{#<div class="card vacancy-header is-box-shadow-0 animation-element fadeup-element">#}
{#<div class="vacancy-intro">#}
{#<div class="card-body">#}
{#{% if vacancy.site != current_site() %}#}
{#<div class="row">#}
{#<div class="col-12">#}
{#<div class="alert alert-success is-margin-bottom-30 is-padding-15">#}
{#Deze vacature staat origineel op <a class="is-margin-top-0 is-color-black"#}
{#target="_blank"#}
{#href="{{ site_url('vacancy_detail', vacancy.site, {'id': vacancy.id, 'slug': vacancy.slug}) }}">#}
{#{{ vacancy.site }}#}
{#</a>.#}
{#</div>#}
{#</div>#}
{#</div>#}
{#{% endif %}#}
{#<div class="row">#}
{#{% if vacancy.company.logo is defined and vacancy.company.logo %}#}
{#<div class="col-12 col-md-2">#}
{#<figure class="logo logo-left">#}
{#<a href="{{ path('company_detail', {'id': vacancy.company.id, 'slug': vacancy.company.slug}) }}"#}
{#title="{{ 'View office page'|trans }}">#}
{#<img loading="lazy" src="{{ media_asset(vacancy.company.logo) }}"#}
{#alt="{{ vacancy.company.name }}">#}
{#</a>#}
{#</figure>#}
{#</div>#}
{#{% endif %}#}
{#<div class="col-12 col-sm-12 col-md-10">#}
{#<div class="vacancy-title">#}
{#<h1>{{ vacancy.title }}</h1>#}
{#</div>#}
{#<div class="vacancy-options">#}
{#<ul>#}
{#{% for optionValue in vacancy.optionValues if optionValue.option.visibleInDetail %}#}
{#<li>#}
{#<i class="{{ optionValue.option.fontAwesomeIcon }}"></i>{{ optionValue.value }}#}
{#</li>#}
{#{% endfor %}#}
{#{% if config_setting('site_vacancy_city_visible_on_detail') %}#}
{#<li>#}
{#{% if config_setting('site_vacancy_city_on_detail_icon') %}#}
{#<i class="{{ config_setting('site_vacancy_city_on_detail_icon') }}"></i>#}
{#{% else %}#}
{#<i class="fal fa-map-marker-alt"></i>#}
{#{% endif %}#}
{#{{ vacancy.city }}#}
{#<span class="option-sub">#}
{#<a title="{{ 'Show on map'|trans }}"#}
{#data-component="MapModal"#}
{#data-lat="{{ vacancy.latitude }}"#}
{#data-long="{{ vacancy.longitude }}" data-zoom="9">#}
{#( <i class="far fa-fw fa-map"></i>#}
{#{{ 'Show on map'|trans }})#}
{#</a>#}
{#</span>#}
{#</li>#}
{#{% endif %}#}
{#</ul>#}
{#</div>#}
{#{% if vacancy.published %}#}
{#<div class="vacancy-actions">#}
{#{% if vacancy.externalUrl %}#}
{#<a target="_blank" href="{{ vacancy.externalUrl }}"#}
{#title="{{ 'Apply to vacancy'|trans }}"#}
{#class="is-btn is-btn__cta"#}
{#data-settings='{"class": "buttonProps"}'>#}
{#<i class="fal fa-pencil icon-before"></i>#}
{#{{ 'Apply'|trans }}#}
{#</a>#}
{#{% else %}#}
{#<a href="{{ path('vacancy_apply', {'id': vacancy.id }) }}"#}
{#title="Apply to vacancy"#}
{#class="is-btn is-btn__cta{% if not is_mobile() %} apply-btn_modal{% endif %}"#}
{#data-settings='{"class": "buttonProps"}'>#}
{#<i class="fal fa-pencil icon-before"></i>#}
{#{{ 'Apply'|trans }}#}
{#</a>#}
{#{% endif %}#}
{#{% if feature('feature_vacancy_save_as_favorite') %}#}
{#<div class="widget widget--favorite">#}
{#<span class="d-none" data-is-favorited="true">#}
{#<i class="far fa-times icon-before"></i>#}
{#{{ 'Remove'|trans }}#}
{#<span class="d-none d-md-block"> {{ 'as favorite'|trans }}</span>#}
{#</span>#}
{#<span class="d-none" data-is-favorited="false">#}
{#<i class="far fa-star icon-before"></i>#}
{#{{ 'Save as favorite'|trans }}#}
{#</span>#}
{#<a href="javascript:void(0)"#}
{#class="favorite-add favorite-vacancy">#}
{#</a>#}
{#</div>#}
{#{% endif %}#}
{#<div class="widget widget--share dropdown show">#}
{#<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"#}
{#data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">#}
{#<i class="fal fa-share-alt icon-before is-color-primary"></i>{{ 'Share vacancy'|trans }}#}
{#</a>#}
{#<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">#}
{#{% if 'facebook' in config_setting('site_vacancy_share_on') %}#}
{#<a href="https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}"#}
{#title="{{ 'Share'|trans }} {{ vacancy.title }} {{ "on Facebook"|trans }}"#}
{#class="facebook dropdown-item"><i#}
{#class="fab fa-facebook-f fa-fw is-color-primary"></i> Facebook#}
{#</a>#}
{#{% endif %}#}
{#{% if 'linkedIn' in config_setting('site_vacancy_share_on') %}#}
{#<a href="https://www.linkedin.com/shareArticle?url={{ app.request.uri }}&title={{ vacancy.title }}&summary={{ vacancy.intro }}&source=LinkedIn"#}
{#title="{{ 'Share'|trans }} {{ vacancy.title }} {{ 'on'|trans }} LinkedIn"#}
{#class="linkedin dropdown-item"><i#}
{#class="fab fa-linkedin-in fa-fw is-color-primary"></i>#}
{#LinkedIn#}
{#</a>#}
{#{% endif %}#}
{#{% if 'twitter' in config_setting('site_vacancy_share_on') %}#}
{#<a href="https://twitter.com/intent/tweet?text={{ vacancy.title }}&url={{ app.request.uri }}"#}
{#title="{{ 'Share'|trans }} {{ vacancy.title }} {{ 'on Twitter'|trans }}"#}
{#class="twitter dropdown-item"><i#}
{#class="fab fa-x-twitter fa-fw is-color-primary"></i> Twitter#}
{#</a>#}
{#{% endif %}#}
{#{% if 'email' in config_setting('site_vacancy_share_on') %}#}
{#<a href="mailto:?" title="{{ 'Share by mail'|trans }}"#}
{#class="mail dropdown-item" target="_blank"#}
{#data-settings='{"class": "buttonProps"}'>#}
{#<i class="fal fa-envelope-open icon-before"></i>#}
{#E-mail#}
{#</a>#}
{#{% endif %}#}
{#{% if 'whatsapp' in config_setting('site_vacancy_share_on') %}#}
{#<a href="{{ getShareOnWhatsAppUrl(vacancy.title) }}"#}
{#title="{{ 'Share with Whatsapp'|trans }}"#}
{#class="whatsapp dropdown-item" target="_blank"#}
{#data-settings='{"class": "buttonProps"}'>#}
{#<i class="fab fa-whatsapp icon-before"></i>#}
{#Whatsapp#}
{#</a>#}
{#{% endif %}#}
{#</div>#}
{#</div>#}
{#</div>#}
{#{% endif %}#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#<div class="row">#}
{#<main class="col-12 col-lg-8">#}
{#<div class="card is-box-shadow-0 animation-element fadeup-element fade-start-section">#}
{#<div class="card-body vacancy-content">#}
{#{% include 'pages/blocks/inavailable_message.html.twig' %}#}
{#{% if config_setting('site_vacancy_intro_visible_on_detail') %}#}
{#{{ vacancy.intro|raw }}#}
{#{% endif %}#}
{#{{ vacancy|vacancy_description|raw }}#}
{#{% if vacancy.canApply %}#}
{#<div class="button-set h-align h-align-left">#}
{#{% if vacancy.externalUrl %}#}
{#<a target="_blank" href="{{ vacancy.externalUrl }}" title="{{ 'Apply'|trans }}"#}
{#class="is-btn is-btn__cta "#}
{#data-settings='{"class": "buttonProps"}'>#}
{#<i class="fal fa-pencil icon-before"></i>#}
{#{{ 'Apply to vacancy'|trans }}#}
{#</a>#}
{#{% else %}#}
{#<a href="{{ path('vacancy_apply', {'id': vacancy.id }) }}"#}
{#title="{{ 'Apply to vacancy'|trans }}"#}
{#class="is-btn is-btn__cta{% if not is_mobile() %} apply-btn_modal{% endif %} "#}
{#data-settings='{"class": "buttonProps"}'>#}
{#<i class="fal fa-pencil icon-before"></i>#}
{#{{ 'Apply to vacancy'|trans }}#}
{#</a>#}
{#{% endif %}#}
{#<a href="/vacatures" class="is-color-base is-hover-color-primary"><i#}
{#class="fal fa-angle-left icon-before is-color-primary"></i> {{ 'To vacancy overview'|trans }}#}
{#</a>#}
{#</div>#}
{#{% endif %}#}
{#{% if vacancy.startDate and vacancy.endDate %}#}
{#<ul class="c-start-date">#}
{#{% if vacancy.startDate %}#}
{#<li>#}
{#<i class="fal fa-calendar-alt is-color-primary"></i>{{ 'Open since'|trans }} {{ vacancy.startDate|date('d-m-Y') }}#}
{#</li>#}
{#{% endif %}#}
{#{% if vacancy.endDate %}#}
{#<li>#}
{#<i class="fal fa-hourglass-start is-color-primary"></i>{{ 'Closing date'|trans }} {{ vacancy.endDate|date('d-m-Y') }}#}
{#</li>#}
{#{% endif %}#}
{#</ul>#}
{#{% endif %}#}
{#</div>#}
{#</div>#}
{#{% if vacancy.recruiter %}#}
{#<div class="widget widget--recruiter card is-box-shadow-0 animation-element fadeup-element">#}
{#<div class="card-body">#}
{#<div class="row">#}
{#<div class="recruiter-img col-12 col-sm-3 col-lg-12 col-xl-3 is-margin-right-0">#}
{#<img loading="lazy" src="{{ vich_uploader_asset(vacancy.recruiter, 'picture') }}"#}
{#alt="{{ vacancy.recruiter.firstname }} {{ vacancy.recruiter.lastname }}">#}
{#</div>#}
{#<div class="recruiter-info col-12 col-sm-9 col-lg-12 col-xl-9">#}
{#<h2>{{ 'For more information'|trans }}</h2>#}
{#<p>#}
{#<span>{{ vacancy.recruiter.firstname }} {{ vacancy.recruiter.lastname }}</span><br>#}
{#<a href="mailto:{{ vacancy.recruiter.email }}">{{ vacancy.recruiter.email }}</a><br>#}
{#<a href="{{ vacancy.recruiter.phone|formatPhoneRFC3966 }}">{{ vacancy.recruiter.phone }}</a>#}
{#</p>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#{% endif %}#}
{#</main>#}
{#<aside class="col-12 col-lg-4">#}
{#<div class="widget widget--office card is-box-shadow-0 animation-element fadeup-element">#}
{#<div class="card-body">#}
{#{% if vacancy.company.video %}#}
{#<div class="embed-responsive embed-responsive-16by9">#}
{#<iframe width="560" height="315" class="embed-responsive-item"#}
{#src="{{ vacancy.company.video }}" frameborder="0"#}
{#allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"#}
{#allowfullscreen>#}
{#</iframe>#}
{#</div>#}
{#{% elseif vacancy.company.logo %}#}
{#<figure class="company-logo">#}
{#<a href="{{ path('company_detail', {'id': vacancy.company.id, 'slug': vacancy.company.slug}) }}"#}
{#title="{{ 'View office page'|trans }}">#}
{#<img loading="lazy" src="{{ media_asset(vacancy.company.logo)|imagine_filter('w480') }}"/>#}
{#</a>#}
{#</figure>#}
{#{% endif %}#}
{#<h2 class="is-font-size-20">{{ vacancy.company.name }}</h2>#}
{#<h2 class="is-font-size-18">{{ 'Company description'|trans }}</h2>#}
{#<p>{{ vacancy.company.description|raw }}</p>#}
{#</div>#}
{#</div>#}
{#{% if vacancy.startDate and vacancy.endDate %}#}
{#<div class="widget widget--vac-info card is-box-shadow-0 is-background-color-default animation-element fadeup-element">#}
{#<div class="card-body">#}
{#<h3>{{ 'Vacancy information'|trans }}</h3>#}
{#<ul class="is-margin-bottom-0">#}
{#{% if vacancy.startDate %}#}
{#<li>#}
{#<i class="fal fa-calendar-alt is-color-primary"></i>{{ 'Open since'|trans }} {{ vacancy.startDate|date('d-m-Y') }}#}
{#</li>#}
{#{% endif %}#}
{#{% if vacancy.endDate %}#}
{#<li>#}
{#<i class="fal fa-hourglass-start is-color-primary"></i>{{ 'Closing date'|trans }} {{ vacancy.endDate|date('d-m-Y') }}#}
{#</li>#}
{#{% endif %}#}
{#</ul>#}
{#</div>#}
{#</div>#}
{#{% endif %}#}
{#{% if feature('feature_vacancy_related_vacancies') and relatedVacancies is not empty %}#}
{#<div class="col-12">#}
{#<div class="component component--related-vacancies animation-element fadeup-element">#}
{#<h2 class="is-font-size-27">{{ 'Related vacancies'|trans }}</h2>#}
{#<div class="row">#}
{#{% for vacancy in relatedVacancies[:3] %}#}
{#<div class="col-12 {% if not loop.first %}{% endif %} flex-same-height-item animation-element fadeup-element">#}
{#<div data-component="Favorite" data-vacancy-id="{{ vacancy.id }}"#}
{#class="card is-box-shadow-0 is-border-1 is-border-color-tertiary vacancy__first-version">#}
{#<div class="card-body">#}
{#<div class="vacancy">#}
{#<div class="vacancy-top">#}
{#<div class="vacancy-title">#}
{#<a title="{{ vacancy.title }}"#}
{#href="{{ path('vacancy_detail', {'id' : vacancy.id, 'slug' : vacancy.slug}) }}">#}
{#<h3>{{ vacancy.title }}</h3>#}
{#</a>#}
{#</div>#}
{#<div class="vacancy-badges">#}
{#{% if vacancy.new %}#}
{#<span class="badge badge--topvacancy badge__primary">#}
{#<p>{{ 'New'|trans }}</p>#}
{#</span>#}
{#{% endif %}#}
{#{% if vacancy.featured %}#}
{#<span class="badge badge--topvacancy badge__accent">#}
{#<p>{{ 'Featured vacancy'|trans }}</p>#}
{#</span>#}
{#{% endif %}#}
{#</div>#}
{#</div>#}
{#<div class="vacancy-body" data-format="IntroFormatter">#}
{#{{ vacancy.intro|raw }}#}
{#</div>#}
{#<div class="vacancy-footer d-block">#}
{#<div data-format="FooterFormatter"#}
{#class="vacancy-options w-100">#}
{#<ul>#}
{#<li>#}
{#<i class="fal fa-map-marker-alt"></i> {{ vacancy.city }}#}
{#</li>#}
{#{% for optionValue in vacancy.optionValues %}#}
{#<li>#}
{#<i class="{{ optionValue.option.fontAwesomeIcon }}"></i>{{ optionValue.value }}#}
{#</li>#}
{#{% endfor %}#}
{#</ul>#}
{#</div>#}
{#<a href="{{ path('vacancy_detail', {'id' : vacancy.id, 'slug' : vacancy.slug}) }}"#}
{#title="{{ vacancy.title }}">#}
{#{{ 'Show vacancy'|trans }} <i#}
{#class="far fa-angle-right icon-after"></i>#}
{#</a>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#{% endfor %}#}
{#</div>#}
{#</div>#}
{#</div>#}
{#{% endif %}#}
{#<div class="widget widget--sm widget--sm__default text-center animation-element fadeup-element">#}
{#{% if config_setting('site_social_facebook') %}#}
{#<a href="{{ config_setting('site_social_facebook') }}"#}
{#title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Facebook"#}
{#target="_blank"><i#}
{#class="fab fa-fw fa-facebook-f"></i></a>#}
{#{% endif %}#}
{#{% if config_setting('site_social_twitter') %}#}
{#<a href="{{ config_setting('site_social_twitter') }}"#}
{#title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Twitter"#}
{#target="_blank"><i#}
{#class="fab fa-fw fa-x-twitter"></i></a>#}
{#{% endif %}#}
{#{% if config_setting('site_social_linkedin') %}#}
{#<a href="{{ config_setting('site_social_linkedin') }}"#}
{#title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} LinkedIn"#}
{#target="_blank"><i#}
{#class="fab fa-fw fa-linkedin-in"></i></a>#}
{#{% endif %}#}
{#{% if config_setting('site_social_youtube') %}#}
{#<a href="{{ config_setting('site_social_youtube') }}"#}
{#title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Youtube"#}
{#target="_blank"><i#}
{#class="fab fa-fw fa-youtube"></i></a>#}
{#{% endif %}#}
{#{% if config_setting('site_social_instagram') %}#}
{#<a href="{{ config_setting('site_social_instagram') }}"#}
{#title="{{ 'Follow %site-company-name% on'|trans({'%site-company-name%': site_company_name|default('Getnoticed')}) }} Instagram"#}
{#target="_blank"><i class="fab fa-fw fa-instagram"></i></a>#}
{#{% endif %}#}
{#</div>#}
{#</aside>#}
{#</div>#}
{#</div>#}
{#{% endblock %}#}