{% extends "front/base.html.twig" %}{% block title %} {{ pro.proInfo.fullname | capitalize }}{% endblock %}{% if pro is instanceof('App\\Entity\\Coach') %} {% set type = 'coach' %}{% elseif pro is instanceof('App\\Entity\\Club') %} {% set type = 'club' %}{% elseif pro is instanceof('App\\Entity\\Operator') %} {% set type = 'operator' %}{% endif %}{# Profile photo #}{% if pro.photo is fileexists('avatar_directory') %} {% set avatar = pro.photo %}{% else %} {% set avatar = 'default-profile.png' %}{% endif %}{# Cover photo #}{% if pro.proInfo.coverPhoto and pro.proInfo.coverPhoto is fileexists('avatar_directory') %} {% set cover = pro.proInfo.coverPhoto %}{% else %} {% set cover = 'cover.png' %}{% endif %}{% block stylesheets %}{% if inactive %} <style> body { overflow: hidden; /* Hide scrollbars */ } </style>{% endif %}{% endblock %}{% block body %} <section class="mt-0 first-section pro-public overflow-hidden-mobile" id="pro-detail"> <div class="container-fluid"> <div class="row justify-content-center"> <div class="col-md-12 wrap-col"> <div class="cover-wrapper"> {% if app.user and app.user == pro %} <div class="preview-edit"> <a href="{{ path('pro_page') }}" class="btn main-btn btn-sm">{{ 'pro_page.edit_page' | trans }}</a> {% if app.user.proInfo.pageVisible == false %} <form action="{{ path('publish_my_page') }}" method="post"> <button type="submit" class="btn second-btn btn-sm">{{ 'pro_page.publish_page' | trans }}</button> </form> {% endif %} </div> {% endif %} <div class="cover-content"> <img loading="lazy" class="cover-image" src="{{ asset('/images/profiles/' ~ cover) }}"> </div> </div> </div> </div> </div> <div class="container-fluid"> <div class="row"> <div class="public-page-sidebar-col pro-card-col"> <div class="pro-sidebar {{ type }}" id="pro-details-sidebar"> <div class="pro-profile-wrap"> <div class="profile-wrapper"> <img loading="lazy" class="profile-image" src="{{ asset('/images/profiles/' ~ avatar) }}"> </div> </div> <div class="like-wrap"> <button class="btn btn-share" data-toggle="modal" data-target="#share-socials"> <i class="fal fa-arrow-square-up"></i> </button> {% if is_granted('ROLE_TRAINEE') %} <a href="{{ path('add_pro_favorite', {'id': pro.id}) }}" class="btn btn-like" data-update data-token="{{ csrf_token('favorite' ~ pro.id) }}"> <i class="fas fa-heart {% if app.user.isProFavorite(pro) %}favorite{% endif %}"></i> </a> {% else %} <button type="button" class="btn btn-like" data-toggle="modal" data-target="#add-to-favorite"> <i class="fas fa-heart"></i> </button> {% endif %} </div> {# <img loading="lazy" class="pro-profile-pic" src="{{ asset('/images/profiles/' ~ avatar) }}"> #} <h1 class="pro-name">{{ pro.proInfo.fullname }}</h1> <div class="pro-review"> {% set averageNotes = getAverageNotes(pro)%} {% set average = averageNotes.total %} {% if average != 0 %} <p class="average-note">{{ average }}</p> {% for i in 1..5 %} {% if average >= i %} <i class="fas fa-star"></i> {% else %} {% if average > (i - 1) %} <i class="fas fa-star-half-alt"></i> {% else %} <i class="far fa-star"></i> {% endif %} {% endif %} {% endfor %} {% else %} {% for i in 1..5 %} <i class="fas fa-star grey-star"></i> {% endfor %} {% endif %} <span class="pro-review-note" data-toggle="modal" data-target="#view-notes">({{ averageNotes.count }})</span> </div> {% if pro is instanceof('App\\Entity\\Coach') %} <div class="pro-extra-infos"> <i class="fas fa-circle"></i> <span class="pro-extra-text"> Mobilité: {% if pro.isMobile %} {{ 'pro_page.mobile' | trans | capitalize }} {% elseif not pro.isMobile %} {{ 'pro_page.static' | trans | capitalize }} {% endif %} </span> </div> {% endif %} <div class="pro-extra-infos"> <i class="fal fa-map-marker-alt"></i> <span class="pro-extra-text">{{ pro.address.fullAddress }}</span> </div> {% if pro.telephone %} <div class="pro-extra-infos"> <i class="fal fa-phone-alt"></i> <a class="pro-extra-text" href="tel:{{ pro.telephone }}">{{ pro.telephone }}</a> </div> {% endif %} <div class="pro-extra-infos email"> <i class="fal fa-envelope"></i> <a class="pro-extra-text" href="mailto:{{ pro.proInfo.contactEmail }}">{{ pro.proInfo.contactEmail }}</a> </div> {% if pro.proInfo.website %} <div class="pro-extra-infos"> <i class="fal fa-desktop"></i> <a class="pro-extra-text" href={{ pro.proInfo.website }} target="_blank"> {{ 'pro_page.visit_website' | trans }} </a> </div> {% endif %} {% if pro.languages | length > 0 %} <div class="pro-extra-infos-2"> <p class="extra-info-title">{{ 'pro_page.languages' | trans | capitalize }}</p> <span class="pro-languages"> {% for language in pro.languages %} <img loading="lazy" src="{{ asset('/images/flag/' ~ language.slug ~ '.png') }}" alt="{{ language.name }}"> {% endfor %} </span> </div> {% endif %} {% if pro.proInfo.facebook or pro.proInfo.twitter or pro.proInfo.instagram or pro.proInfo.linkedin or pro.proInfo.youtube %} <div class="pro-extra-infos-2"> <p class="extra-info-title">{{ 'pro_page.social_network' | trans | capitalize }}</p> <span class="pro-social-media"> {% if pro.proInfo.facebook != null %} <a href="{{ pro.proInfo.facebook }}" class="social-media-item" target="_blank"> <i class="fab fa-facebook-f"></i> </a> {% endif %} {% if pro.proInfo.twitter != null %} <a href="{{ pro.proInfo.twitter }}" class="social-media-item" target="_blank"> <i class="fab fa-x-twitter"></i> </a> {% endif %} {% if pro.proInfo.instagram != null %} <a href="{{ pro.proInfo.instagram }}" class="social-media-item" target="_blank"> <i class="fab fa-instagram"></i> </a> {% endif %} {% if pro.proInfo.linkedin != null %} <a href="{{ pro.proInfo.linkedin }}" class="social-media-item" target="_blank"> <i class="fab fa-linkedin"></i> </a> {% endif %} {% if pro.proInfo.youtube != null %} <a href="{{ pro.proInfo.youtube }}" class="social-media-item" target="_blank"> <i class="fab fa-youtube"></i> </a> {% endif %} {% if pro.proInfo.twitch != null %} <a href="{{ pro.proInfo.twitch }}" class="social-media-item" target="_blank"> <i class="fab fa-twitch"></i> </a> {% endif %} {% if pro.proInfo.tiktok != null %} <a href="{{ pro.proInfo.tiktok }}" class="social-media-item" target="_blank"> <i class="fab fa-tiktok"></i> </a> {% endif %} </span> </div> {% endif %} {% if not app.user or (app.user and not app.user.isPro) %} <hr> <button class="btn main-btn w-100" data-toggle="modal" data-target="#contact">{{ 'pro_page.contact_button' | trans | capitalize }}</button> {% endif %} </div> </div> {% if not app.user or (app.user and not app.user.isPro) %} {% include "front/pro/_contact-modal.html.twig" with {"pro": pro, "from": "pro"} %} {% endif %} <!-- Modal social media share --> <div class="modal fade" id="share-socials" tabindex="-1" role="dialog" aria-labelledby="share-socials" aria-hidden="true"> <div class="modal-dialog modal modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-body"> <div class="modal-title-wrap"> <h5 class="modal-title">{{ "pro_page.share_pro" | trans }}</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <i class="fal fa-times"></i> </button> </div> <div class="row" id="social-networks"> <div class="col-3"> <a href="https://www.facebook.com/sharer/sharer.php?u={{ url('view_pro', {'type': type, 'slug': pro.slug}) }}" target="_blank"> <div class="card"> <div id="icon"> <i class="fab fa-facebook-f"></i> </div> </div> </a> </div> <div class="col-3"> <a href="https://twitter.com/intent/tweet?text={{ url('view_pro', {'type': type, 'slug': pro.slug}) }}" target="_blank"> <div class="card"> <div id="icon"> <i class="fab fa-x-twitter"></i> </div> </div> </a> </div> <div class="col-3"> <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ url('view_pro', {'type': type, 'slug': pro.slug}) }}&title={{ pro.proInfo.fullname }}" target="_blank"> <div class="card"> <div id="icon"> <i class="fab fa-linkedin-in"></i> </div> </div> </a> </div> <div class="col-3"> <a href="https://api.whatsapp.com/send?&text={{ url('view_pro', {'type': type, 'slug': pro.slug}) }}" target="_blank"> <div class="card"> <div id="icon"> <i class="fab fa-whatsapp"></i> </div> </div> </a> </div> </div> </div> </div> </div> </div> <div class="public-page-content-col pro-card-col"> <div class="row pro-row"> {% if pro.proInfo.gallery | length > 0 and pro.proInfo.videos | length > 0 %} {% set mediaCol = 'col-lg-12 col-xl-6' %} {% else %} {% set mediaCol = 'col-lg-12' %} {% endif %} {% if pro.proInfo.gallery | length > 0 %} <div class="{{ mediaCol }} pro-col"> <div class="pro-content-card h-100"> <h3 class="pro-content-card-title">{{ 'pro_page.photos' | trans | capitalize }}</h3> <div class="pro-content-box media align-items-start"> <div class="row"> {% if pro.proInfo.gallery | length > 6 %} <div class="col-12 text-center p-0"> <a data-target="#all-photos" class="all-media mb-2" data-toggle="modal">{{ 'pro_page.all_photos' | trans }}</a> </div> {% endif %} <div class="col-12 p-0"> <div class="row public-photos"> {% for photo in pro.proInfo.gallery | reverse | slice(0, 7) %} {% if loop.index <= 6 %} <div class="img-col col-6 col-sm-4 col-lg-4"> <div class="photo-item"> <img loading="lazy" data-target="#all-photos" data-toggle="modal" src="{{ asset('/images/gallery/' ~ photo.name) }}" alt="{{ photo.name }}"> {% if pro.proInfo.gallery | length > 6 and loop.index == 6 %} {% set galleryRest = pro.proInfo.gallery | length - 6 %} <div class="more-photos" data-target="#all-photos" data-toggle="modal"> <span>+ {{ galleryRest }}</span> </div> {% endif %} </div> </div> {% endif %} {% endfor %} </div> </div> </div> </div> <!-- Modal see all photos --> <div class="modal fade bd-example-modal-xl" id="all-photos" tabindex="-1" role="dialog" aria-labelledby="all-photos" aria-hidden="true"> <div class="modal-dialog modal-xl modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-body"> <div class="modal-title-wrap"> <h5 class="modal-title">{{ 'pro_page.all_photos' | trans }}</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <i class="fal fa-times"></i> </button> </div> <div class="row public-photos"> {% for photo in pro.proInfo.gallery | reverse %} <div class="img-col col-6 col-sm-6 col-md-4 col-xl-3"> <div class="photo-item"> <a data-fslightbox href="{{ asset('/images/gallery/' ~ photo.name) }}"> <img loading="lazy" src="{{ asset('/images/gallery/' ~ photo.name) }}" alt="image"> </a> </div> </div> {% endfor %} </div> </div> </div> </div> </div> </div> </div> {% endif %} {% if pro.proInfo.videos | length > 0 %} {% if pro.proInfo.gallery | length > 0 %} {% set videoItemCol = 'col-12 col-sm-6 col-md-6 col-lg-6' %} {% else %} {% set videoItemCol = 'col-12 col-sm-6 col-md-6 col-lg-3' %} {% endif %} <div class="{{ mediaCol }} pro-col"> <div class="pro-content-card h-100"> <h3 class="pro-content-card-title">{{ 'pro_page.videos' | trans | capitalize }}</h3> <div class="pro-content-box media align-items-start"> {% if pro.proInfo.videos | length > 0 %} <div class="row"> {% if pro.proInfo.videos | length > 4 %} <div class="col-12 text-center"> <a data-target="#all-videos" class="all-media" data-toggle="modal" class="col-12 text-center">{{ 'pro_page.all_videos' | trans }}</a> </div> {% endif %} {% for video in pro.proInfo.videos | reverse | slice(0, 4) %} <div class="video-col {{ videoItemCol }}"> <div class="video-thumbnail"> {% if video.type == 'youtube' %} <img loading="lazy" src="http://i1.ytimg.com/vi/{{ video.videoId }}/mqdefault.jpg" alt=" {{ video.videoId }}"> {% else %} <img loading="lazy" srcset="https://vumbnail.com/{{ video.videoId }}.jpg 640w" alt="{{ video.videoId }}" /> {% endif %} <button class="play" data-toggle="modal" data-target="#watch-video-{{ video.id }}"> <i class="fal fa-play-circle"></i> </button> {% if pro.proInfo.videos | length > 4 and loop.last %} {% set videoRest = pro.proInfo.videos | length - 4 %} <div class="more-photos" data-target="#all-videos" data-toggle="modal"> <span>+ {{ videoRest }}</span> </div> {% endif %} </div> </div> {% endfor %} </div> {% else %} <p class="empty-media">0 {{ 'pro_page.video' | trans | capitalize }}</p> {% endif %} </div> <!-- Modal see all video --> <div class="modal fade bd-example-modal-xl" id="all-videos" tabindex="-1" role="dialog" aria-labelledby="all-videos" aria-hidden="true"> <div class="modal-dialog modal-xl modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-body"> <div class="modal-title-wrap"> <h5 class="modal-title">{{ 'pro_page.all_videos' | trans }}</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <i class="fal fa-times"></i> </button> </div> <div class="row"> {% for video in pro.proInfo.videos | reverse %} <div class="video-col col-12 col-sm-6 col-md-4 col-xl-3"> <div class="video-thumbnail"> {% if video.type == 'youtube' %} <img loading="lazy" src="http://i1.ytimg.com/vi/{{ video.videoId }}/mqdefault.jpg" alt=" {{ video.videoId }}"> {% else %} <img loading="lazy" srcset="https://vumbnail.com/{{ video.videoId }}.jpg 640w" alt="{{ video.videoId }}" /> {% endif %} <button class="play" data-toggle="modal" data-target="#watch-video-{{ video.id }}"> <i class="fal fa-play-circle"></i> </button> </div> </div> {% endfor %} </div> </div> </div> </div> </div> </div> </div> {% endif %} {% for video in pro.proInfo.videos %} <!-- Modal watch video --> <div class="modal fade watch-video-modal" id="watch-video-{{ video.id }}" tabindex="-1" role="dialog" aria-labelledby="video" aria-hidden="true"> <div class="modal-dialog modal-lg modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-body"> <div class="modal-title-wrap"> <h5 class="modal-title">{{ 'pro_page.watch_video' | trans }}</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <i class="fal fa-times"></i> </button> </div> <div class="row"> {% if video.type == 'youtube' %} <iframe class="yt_player_iframe" width="640" height="360" id="watched-video" frameborder="0" allowfullscreen src="https://www.youtube.com/embed/{{ video.videoId }}"></iframe> {% else %} <iframe class="vi_player_iframe" width="640" height="360" id="watched-video" frameborder="0" allowfullscreen src="https://player.vimeo.com/video/{{ video.videoId }}"></iframe> {% endif %} </div> </div> </div> </div> </div> {% endfor %} </div> {% if pro is instanceof('App\\Entity\\Coach') %} {% if proDescription.description != null %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.about_me' | trans }}</h3> <div class="pro-content-box description"> <p class="description-text"> {{ proDescription.description |nl2br }} </p> </div> </div> </div> </div> {% endif %} <div class="row pro-row"> <div class="col-lg-6 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.sports' | trans | capitalize }}</h3> <div class="pro-content-box sports"> {% for sport in pro.proInfo.sports %} <span class="coach-sport-item">{{ ("sport_name." ~ sport.slug) | trans }}</span> {% endfor %} {% for sport in sports %} {% if sport not in pro.proInfo.sports %} <span class="coach-sport-item not-sport-item">{{ ("sport_name." ~ sport.slug) | trans }}</span> {% endif %} {% endfor %} </div> </div> </div> <div class="col-lg-6 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.areas' | trans | capitalize }}</h3> <div class="pro-content-box areas"> {% for key, splittedArea in splittedAreas %} <div class="area-wrap"> <div class="title-wrap"> <h5 class="title">{{ key | countryName(app.request.locale) }}</h5> </div> {% for area in splittedArea %} {% if area.city == null and splittedArea | length == 1 %} <div class="area-item"> <i class="fal fa-map-marker-alt"></i> <span class="city">{{ 'pro_page.area_country' | trans }}</span> </div> {% else %} <div class="area-item"> <i class="fal fa-map-marker-alt"></i> <span class="city">{{ area.city }}</span> </div> {% endif %} {% endfor %} </div> {% endfor %} </div> </div> </div> </div> {% if pro.coachInfo.experience | length > 0 or pro.coachInfo.formation | length > 0 %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.experience_formation' | trans | capitalize }} </h3> <div class="pro-content-box formation-experience align-items-start"> <div class="pro-experiences"> {% for experience in pro.coachInfo.experience %} <div class="experience-item"> <h4 class="experience-job">{{ experience.jobTitle }}</h4> <span class="experience-domain">{{ experience.sector }}</span> <span class="experience-address"> <i class="fal fa-map-marker-alt"></i> {{ experience.address }} </span> <span class="experience-period"> <i class="far fa-calendar-alt"></i> {{ experience.begin }} - {{ experience.end }} </span> <p class="expererience-description"> {{ experience.description |nl2br }} </p> </div> {% endfor %} </div> <div class="pro-formations mt-3"> {% for formation in pro.coachInfo.formation %} <div class="formation-item"> <h4 class="formation-organism">{{ formation.organisation }}</h4> <span class="formation-diploma">{{ formation.diploma }}</span> <span class="formation-period">{{ formation.begin }} - {{ formation.end }}</span> </div> {% endfor %} </div> </div> </div> </div> </div> {% endif %} {% elseif pro is instanceof('App\\Entity\\Operator') and proDescription.description != null %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.about_us' | trans }}</h3> <div class="pro-content-box description"> <p class="description-text"> {{ proDescription.description |nl2br }} </p> </div> </div> </div> </div> <div class="row pro-row"> <div class="col-lg-6 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.sports' | trans | capitalize }}</h3> <div class="pro-content-box sports"> {% for sport in pro.proInfo.sports %} <span class="coach-sport-item">{{ ("sport_name." ~ sport.slug) | trans }}</span> {% endfor %} {% for sport in sports %} {% if sport not in pro.proInfo.sports %} <span class="coach-sport-item not-sport-item">{{ ("sport_name." ~ sport.slug) | trans }}</span> {% endif %} {% endfor %} </div> </div> </div> <div class="col-lg-6 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.areas' | trans | capitalize }}</h3> <div class="pro-content-box areas"> {% for key, splittedArea in splittedAreas %} <div class="area-wrap"> <div class="title-wrap"> <h5 class="title">{{ key | countryName(app.request.locale) }}</h5> </div> {% for area in splittedArea %} {% if area.city == null and splittedArea | length == 1 %} <div class="area-item"> <i class="fal fa-map-marker-alt"></i> <span class="city">{{ 'pro_page.area_country' | trans }}</span> </div> {% else %} <div class="area-item"> <i class="fal fa-map-marker-alt"></i> <span class="city">{{ area.city }}</span> </div> {% endif %} {% endfor %} </div> {% endfor %} </div> </div> </div> </div> {% elseif pro is instanceof('App\\Entity\\Club') %} {% if proDescription.description != null %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.about_us' | trans }}</h3> <div class="pro-content-box description"> <p class="description-text"> {{ proDescription.description |nl2br }} </p> </div> </div> </div> </div> {% endif %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.availabilities' | trans | capitalize }}</h3> <div class="pro-content-box sport-availabilities"> <div class="availability-header"> <span class="sport"></span> <div class="month-list"> <span class="month">{{ "short_month.january" | trans }}</span> <span class="month">{{ "short_month.february" | trans }}</span> <span class="month">{{ "short_month.march" | trans }}</span> <span class="month">{{ "short_month.april" | trans }}</span> <span class="month">{{ "short_month.may" | trans }}</span> <span class="month">{{ "short_month.june" | trans }}</span> <span class="month">{{ "short_month.july" | trans }}</span> <span class="month">{{ "short_month.august" | trans }}</span> <span class="month">{{ "short_month.september" | trans }}</span> <span class="month">{{ "short_month.october" | trans }}</span> <span class="month">{{ "short_month.november" | trans }}</span> <span class="month">{{ "short_month.december" | trans }}</span> </div> </div> {% for availability in pro.availabilities %} <div class="availability-content"> <span class="pro-sport-item">{{ ("sport_name." ~ availability.sport.slug) | trans }}</span> <div class="availability-list"> {% for month in months %} <span class="item"> {% if month in availability.availabilities | join(', ') %} <i class="fas fa-check"></i> {% else %} <i class="fas fa-times"></i> {% endif %} </span> {% endfor %} </div> </div> {% endfor %} </div> </div> </div> </div> {% endif %} {% if pro.proInfo.sponsors | length != 0 %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.sponsors' | trans | capitalize }} </h3> <div class="pro-content-box sponsor"> <div class="pro-sponsor-slider"> {% for sponsor in pro.proInfo.sponsors %} <div class="pro-sponsor-item"> <div class="pro-sponsor-img"> <img loading="lazy" src="{{ asset('/images/partners/' ~ sponsor.logo) }}" alt="{{ sponsor.name }}"> </div> <span class="pro-sponsor-name">{{ sponsor.name }}</span> </div> {% endfor %} </div> </div> </div> </div> </div> {% endif %} {% if pro is instanceof('App\\Entity\\Operator') %} {% if pro.proInfo.labels | length != 0 %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="pro-content-card"> <h3 class="pro-content-card-title">{{ 'pro_page.labels' | trans | capitalize }} </h3> <div class="pro-content-box label"> <div class="pro-label-slider"> {% for label in pro.proInfo.labels %} <div class="pro-label-item"> <div class="pro-label-img"> <img loading="lazy" src="{{ asset('/images/labels/' ~ label.logo) }}" alt="{{ label.name }}"> </div> <span class="pro-label-name">{{ label.name }}</span> </div> {% endfor %} </div> </div> </div> </div> </div> {% endif %} {% endif %} {% if pro is instanceof('App\\Entity\\Club') %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="pro-content-card"> {% if pro.clubInfo.insurance or pro.clubInfo.swimmingpool or pro.clubInfo.gym or pro.clubInfo.seminarRoom or pro.clubInfo.restaurant or pro.clubInfo.bar %} <h3 class="pro-content-card-title">{{ 'pro_page.about_club' | trans }}</h3> <div class="club-infrastructures"> {% if pro.clubInfo.insurance %} <div class="infrastructure-item"> <img loading="lazy" src="{{ asset('/images/icons/assurance.svg') }}"> <span class="infrastructure-text">{{ "pro_page.insurance" | trans }}</span> </div> {% endif %} {% if pro.clubInfo.swimmingpool %} <div class="infrastructure-item"> <img loading="lazy" src="{{ asset('/images/icons/piscine.svg') }}"> <span class="infrastructure-text">{{ "pro_page.swimmingpool" | trans }}</span> </div> {% endif %} {% if pro.clubInfo.gym %} <div class="infrastructure-item"> <img loading="lazy" src="{{ asset('/images/icons/training.svg') }}"> <span class="infrastructure-text">{{ "pro_page.gym" | trans }}</span> </div> {% endif %} {% if pro.clubInfo.seminarRoom %} <div class="infrastructure-item"> <img loading="lazy" src="{{ asset('/images/icons/seminar-room.svg') }}"> <span class="infrastructure-text">{{ "pro_page.seminar" | trans }}</span> </div> {% endif %} {% if pro.clubInfo.restaurant %} <div class="infrastructure-item"> <img loading="lazy" src="{{ asset('/images/icons/restaurant.svg')}}"> <span class="infrastructure-text">{{ "pro_page.restaurant" | trans }}</span> </div> {% endif %} {% if pro.clubInfo.bar %} <div class="infrastructure-item"> <img loading="lazy" src="{{ asset('/images/icons/bar.svg') }}"> <span class="infrastructure-text">{{ "pro_page.bar" | trans }}</span> </div> {% endif %} </div> {% endif %} <h3 class="pro-content-card-title mt-3">{{ "page_course_detail.fields_tables" | trans }}</h3> <div class="club-infrastructures terrains"> {% for court in pro.clubInfo.courtInfos %} {% if court.nbOpen > 0 or court.nbSemiOpen > 0 or court.nbCovered > 0 %} <div class="infrastructure-item"> <img loading="lazy" src="{{ asset('/images/icons/' ~ court.sport.icon ) }}"> <span class="infrastructure-text"> {{ ("sport_name." ~ court.sport.slug) | trans }}</span> <div class="terrains-count"> {% if court.nbOpen > 0 %} <h5 class="count"> <span>{{court.nbOpen}}</span> {{ "page_course_detail.outdoor" | trans }} </h5> {% endif %} {% if court.nbSemiOpen > 0 %} <h5 class="count"> <span>{{court.nbSemiOpen}}</span> {{ "page_course_detail.semi_indoor" | trans }} </h5> {% endif %} {% if court.nbCovered > 0 %} <h5 class="count"> <span>{{court.nbCovered}}</span> {{ "page_course_detail.indoor" | trans }} </h5> {% endif %} </div> </div> {% endif %} {% endfor %} </div> </div> </div> </div> {% endif %} {% if courses | length > 0 %} <div class="row pro-courses-row pro-row"> <div class="col-lg-12 pro-col"> <div class="main-title mb-5"> <h1 class="title-text">{{ "pro_page.courses_offered" | trans }}</h1> </div> <div class="pro-courses-grid"> {% for course in courses %} {% if course | nextdate(startingDate).begin != null %} {% include "front/course/_course-card.html.twig" %} {% endif %} {% endfor %} </div> </div> </div> {% endif %} {% if partnershipCourses | length > 0 %} <div class="row pro-courses-row pro-row"> <div class="col-lg-12 pro-col"> <div class="main-title mb-5"> <h1 class="title-text">Stages partenaires</h1> </div> <div class="pro-courses-grid"> {% for course in partnershipCourses %} {% if course | nextdate(startingDate).begin != null %} {% include "front/course/_course-card.html.twig" %} {% endif %} {% endfor %} </div> </div> </div> {% endif %} {% if pro is instanceof('App\\Entity\\Coach') or pro is instanceof('App\\Entity\\Operator') %} {% if clubPartners | length > 0 %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="main-title mb-5"> <h1 class="title-text">{{ "pro_partner_page.partners_clubs" | trans }}</h1> </div> <div class="row partners-wrapper club-partners"> {% for pro in clubPartners %} {% if pro.owner %} {% include "front/pro/_pro-card.html.twig" with {'pro': pro.owner} %} {% endif %} {% endfor %} </div> </div> </div> {% endif %} {% endif %} {% if pro is instanceof('App\\Entity\\Club') or pro is instanceof('App\\Entity\\Operator') %} {% if coachPartners | length > 0 %} <div class="row pro-row"> <div class="col-lg-12 pro-col"> <div class="main-title mb-5"> <h1 class="title-text">{{ "pro_partner_page.partners_coachs" | trans }}</h1> </div> <div class="row partners-wrapper coach-partners"> {% for pro in coachPartners %} {% if pro.owner %} {% include "front/pro/_pro-card.html.twig" with {'pro': pro.owner} %} {% endif %} {% endfor %} </div> </div> </div> {% endif %} {% endif %} </div> </div> </div> {% include "front/pro/_pro-review.html.twig" with {"pro": pro} %} </section> {% if inactive %} {% if app.user == pro %} <div id="inactive-pro"> <h2>{{ "pro_page.self_inactive" | trans }}</h2> <a class="btn btn-get-subscription" href="{{ path('select_subscription') }}">{{ "pro_subscription.select_subscription" | trans }}</a> </div> {% else %} <div id="inactive-pro"><h2>{{ pro.proInfo.fullname | capitalize }} {{ "pro_page.inactive" | trans }}</h2></div> {% endif %} {% endif %}{% endblock %}{% block javascript %} {% if inactive %} <script> const header = $('header') $(function () { header.css('background-color', '#fff'); header.css('box-shadow', '4px 4px 12px rgb(164 160 160 / 25%)'); }) </script> {% endif %} {{ parent() }} {{ encore_entry_script_tags('pro-public') }} {{ encore_entry_script_tags('search') }}{% endblock %}