{% block content %}
<div data-component="Company,CustomHeader" data-id="{{ company.id }}"
class="page page_company-detail_layout_base" {% if company.hero is defined and company.hero is not empty %} data-custom-header="{{ media_asset(company.hero) }}" {% endif %}>
{% block company_header %}
<div class="card company-header">
<div class="company-intro">
<div class="card-body">
<div class="row">
{% if company.logo %}
<div class="col-12 col-md-2">
<figure class="logo logo-left">
<img loading="lazy" src="{{ media_asset(company.logo) }}"
alt="{{ company.logo.metaInformation }}"/>
</figure>
</div>
{% endif %}
<div class="col-12{% if company.logo %} col-md-10{% endif %}">
<div class="company-title">
<h1>{{ company.name }}</h1>
</div>
<p>{{ company.address }}
{#{% if feature('feature_company_map') %}#}
<span class="on-map">
<span class="option-sub">
<a href="#map" title="{{ 'Show on map'|trans }}"
data-component="MapModal"
data-lat="{{ company.latitude }}"
data-long="{{ company.longitude }}" data-zoom="9">
( <i class="fas fa-fw fa-map"></i>
{{ 'Show on map'|trans }})
</a>
</span>
</span>
{#{% endif %}#}
</p>
<div class="company-actions">
<a href="{{ path('vacancies_with_filter', {'filters' : 'company/'~company.slug}) }}"
title="{{ 'View'|trans }} {{ 'amount_of_vacancies'|trans({'count': company.publishedVacancyCount}) }}"
class="is-btn is-background-color-accent">
{{ 'View'|trans }} {{ 'amount_of_vacancies'|trans({'count': company.publishedVacancyCount}) }}
</a>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock company_header %}
{% block company_content %}
<div class="row">
{% block company_block_main %}
<main class="col-12 col-lg-8">
<div class="card">
<div class="card-body">
<div class="company-content">
{% if not map %}
<p>{{ company.description|raw }}</p>
{% else %}
<div id="googleMap" style="height:500px;width:100%;" data-latitude="{{ company.latitude }}"
data-longitude="{{ company.longitude }}"
data-mapStyle='[ { "stylers": [ { "color": "#b9d9e1" }, { "visibility": "simplified" } ] }, { "featureType": "administrative", "elementType": "labels", "stylers": [ { "visibility": "off" } ] }, { "featureType": "administrative.country", "elementType": "geometry.stroke", "stylers": [ { "color": "#80A1BE" }, { "visibility": "on" }, { "weight": 2 } ] }, { "featureType": "administrative.locality", "stylers": [ { "visibility": "off" } ] }, { "featureType": "administrative.province", "elementType": "geometry.stroke", "stylers": [ { "color": "#80A1BE" }, { "visibility": "on" }, { "weight": 1 } ] }, { "featureType": "landscape.man_made", "elementType": "geometry.fill", "stylers": [ { "color": "#f6f6f6" }, { "visibility": "simplified" }, { "weight": 0.1 } ] }, { "featureType": "landscape.natural", "elementType": "geometry", "stylers": [ { "color": "#f6f6f6" }, { "gamma": 1 }, { "visibility": "on" } ] }, { "featureType": "poi", "elementType": "geometry.fill", "stylers": [ { "visibility": "off" } ] }, { "featureType": "road", "stylers": [ { "visibility": "off" } ] }, { "featureType": "road.arterial", "elementType": "geometry.fill", "stylers": [ { "color": "#ffffff" }, { "visibility": "simplified" }, { "weight": 0.1 } ] }, { "featureType": "road.highway", "stylers": [ { "color": "#ffffff" }, { "visibility": "on" }, { "weight": 0.5 } ] }, { "featureType": "road.local", "elementType": "geometry.fill", "stylers": [ { "color": "#ffffff" }, { "visibility": "off" } ] }, { "featureType": "transit", "stylers": [ { "visibility": "off" } ] }, { "featureType": "water", "elementType": "geometry.fill", "stylers": [ { "color": "#B9D8E0" } ] } ]'></div>
{% endif %}
</div>
<a href="{{ path('vacancies_with_filter', {'filters' : 'company/'~company.slug}) }}"
title="{{ 'View'|trans }} {{ 'amount_of_vacancies'|trans({'count': company.publishedVacancyCount}) }}"
class="is-btn is-background-color-accent">{{ 'View'|trans }} {{ 'amount_of_vacancies'|trans({'count': company.publishedVacancyCount}) }}</a>
{% if feature('feature_company_testimonials') %}
{% if relatedTestimonials is not empty %}
<hr>
<div class="component component--testimonial">
<h2>{{ 'What do your colleagues say'|trans }}</h2>
<div class="row">
{% for testimonial in relatedTestimonials[:2] %}
<div class="col-12 col-md-6 testimonial">
<div class="row">
<div class="col-12">
<div class="testimonial-content bubble bubble-info flat-shadow-1 has-after">
<p>
{{ testimonial.intro[:95]|striptags('<a>') }}
{% if testimonial.intro|length > 95 %}
[
<a href="{{ path('testimonial_detail', {id: testimonial.id, slug: testimonial.slug}) }}">...</a>]
{% endif %}
</p>
</div>
</div>
</div>
<div class="row">
{% if testimonial.employee is not empty %}
<div class="col-12 col-sm-4 col-md-3 testimonial-img">
<img loading="lazy" class="is-border-2 is-border-color-secondary"
src="{{ media_asset(testimonial.employee.picture) }}"
alt="{{ testimonial.employee.picture.metaInformation }}">
</div>
{% elseif testimonial.authorPicture %}
<div class="col-12 col-sm-4 col-md-3 testimonial-img">
<img loading="lazy" class="is-border-2 is-border-color-secondary"
src="{{ media_asset(testimonial.authorPicture) }}"
alt="{{ testimonial.authorPicture.metaInformation }}">
</div>
{% endif %}
<div class="col-8 col-sm-8 col-md-9 author">
{% if testimonial.employee is not empty %}
<p>
<b>{{ testimonial.employee.firstName }} {{ testimonial.employee.lastName }}</b>
{% if testimonial.employee.company is not empty %}
<br><span>{{ testimonial.employee.company.name }}</span>
{% endif %}
</p>
{% else %}
<p>
<b>{{ testimonial.employeeName }}</b><br><span>{{ testimonial.company }}</span>
</p>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
</main>
{% endblock company_block_main %}
{% block company_block_sidebar %}
<aside class="col-12 col-lg-4">
<div class="widget widget--latest-vacancies">
<h2>{{ 'Latest vacancies'|trans }}</h2>
{% if companyVacancies is not empty %}
<div class="row">
{% for vacancy in companyVacancies %}
<div class="col-12 col-md-6 col-lg-12">
<div class="card card_related_vacancies" data-component="Favorite">
<div class="card-body">
<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>
{% include('pages/partials/vacancy_favorite.html.twig') %}
</div>
<div class="vacancy-footer d-block">
<div class="vacancy-options">
<ul>
{% if vacancy.city %}
{% if config_setting('site_vacancy_show_location') %}
<li><i class="fal fa-map-marker-alt"></i> {{ vacancy.city }}
</li>
{% endif %}
{% endif %}
{% 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="{{ 'Show vacancy'|trans }}" class="is-btn is-color-primary is-padding-0 is-min-width-auto">
{{ 'Show vacancy'|trans }} <i class="far fa-angle-right icon-after"></i>
</a>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<a href="{{ path('vacancies_with_filter', {'filters' : 'company/'~company.slug}) }}" title="{{ 'All vacancies'|trans }}"
class="is-btn is-color-primary is-padding-0 is-min-width-auto">
{{ 'All vacancies'|trans }}<i class="far fa-angle-right icon-after"></i>
</a>
{% endif %}
</div>
</aside>
{% endblock company_block_sidebar %}
</div>
{% endblock company_content %}
{% block company_footer %}
<!-- extra footer section for e.g. related items -->
{% endblock company_footer %}
</div>
{% endblock %}