{% extends "base.html.twig" %}
{% block title %}SoliBikes : {{ event.title }} {% endblock %}
{% block description %}SoliBikes : {{ event.title }} {% endblock %}
{% block imageog %}https://solibikes.com{{ asset('uploads/') ~ event.principalimage }}{% endblock %}
{% block urlog %}https://solibikes.com{{ path('frontend_event_detail', {'alias': event.alias}) }}{% endblock %}
{% block titleog %}SoliBikes : {{ event.title }} {% endblock %}
{% block ogdescription %}SoliBikes : {{ event.title }} {% endblock %}
{% block body %}
<!-- Page Title -->
<section class="page-title bg-transparent">
<div class="container">
<div class="page-title-row">
<div class="page-title-content">
<h1>{{ event.title }}</h1>
</div>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="{{ path('frontend_index') }}">Acceuil</a>
</li>
<li class="breadcrumb-item">
<a href="{{ path('frontend_event_liste') }}">Événements</a>
</li>
<li class="breadcrumb-item active" aria-current="page">{{ event.title }}</li>
</ol>
</nav>
</div>
</div>
</section>
<!-- .page-title end -->
<!-- Content -->
<section id="content">
<div class="content-wrap bg-light overflow-visible pb-0">
<div class="container">
<div class="single-event">
<div class="row flex-lg-row-reverse gutter-40">
<div class="col-lg-4 position-lg-sticky h-100" style="top: 100px;">
<div class="event-meta bg-white shadow-sm p-4 rounded-4 mb-3">
<h4 class="mb-4 fs-5 fw-semibold">Détails</h4>
<ul class="mb-0">
<li class="row gx-3 gy-4 mb-4">
<div class="col-auto">
<i class="box-square-sm d-flex align-items-center justify-content-center bi-calendar4-event fs-3 color position-relative"></i>
</div>
<div class="col mb-0 op-09 ps-3 fs-6">Date début
<br>{{ event.start| date('d-m-Y H:i') }}
</div>
</li>
<li class="row gx-3 gy-4 mb-4">
<div class="col-auto">
<i class="box-square-sm d-flex align-items-center justify-content-center bi-calendar4-event fs-3 color position-relative"></i>
</div>
<div class="col mb-0 op-09 ps-3 fs-6">Date fin
<br>{{ event.end| date('d-m-Y H:i') }}</div>
</li>
<li class="row gx-3 gy-4 mb-4">
<div class="col-auto">
<i class="box-square-sm d-flex align-items-center justify-content-center fa-solid fa-level-up-alt fs-3 color position-relative"></i>
</div>
<div class="col mb-0 op-09 ps-3 fs-6">Difficulté
<br>{{ event.difficulty }}</div>
</li>
<li class="row gx-3 gy-4">
<div class="col-auto">
<i class="box-square-sm d-flex align-items-center justify-content-center fa-solid fa-route fs-3 color position-relative"></i>
</div>
<div class="col mb-0 op-09 ps-3 fs-6">Trajet
<br>{{ event.journey }}
Km
</div>
</li>
</ul>
</div>
</div>
<div class="event-meta bg-white shadow-sm col-lg-8 cairo-45">
<div class="entry-image mb-5">
<a href="#"><img src="{{ asset('uploads/') ~ event.banner }}" alt="{{ event.title }}" class="rounded-4"></a>
</div>
<h1 class="mb-3" style="text-align: center">{{ event.title }}</h1>
<p>{{ event.detailedDescription | raw }}-</p>
<p><img src="{{ asset('uploads/') ~ event.principalimage }}" width="450">
{% for image in event.multipleimage %}
<img src="{{ asset('uploads/') ~ image }}" style="width: 100%;">
{% endfor%}
</p>
{% if event.statut %}
<div class="col-auto">
<a href="https://app.solibikes.com/#/order/{{ event.alias }}" class="button rounded-4 fw-normal button-green" style="width: 100%;">Réserver</a>
</div>
{% else %}
Désolé, les réservations sont actuellement complètes. Veuillez nous rejoindre pour les prochaines sorties vélo. À bientôt !
{% endif %}
</div>
</div>
</div>
</div>
<div class="bg-white w-100 py-4 shadow-sm position-sticky bottom-0 mt-6">
<div class="row align-items-center justify-content-between mx-0 px-2">
<div class="col-auto">
<a href="#" class="d-flex align-items-center justify-content-center">
<i class="fs-2 bi-chevron-left text-black h-color align-middle"></i>
</a>
</div>
<div class="col">
<div class="container px-0">
<div class="row align-items-center justify-content-between mx-0">
<div class="col-auto d-none d-md-block">
<h4 class="fs-5 fw-medium mb-0">{{ event.title }}</h4>
</div>
{% if date("now"| date('d-m-Y H:i')) < date(event.end| date('d-m-Y H:i')) %}
<div class="col-auto ms-md-auto">
Prix avec location vélo
<strong>{{ event.priceWithBike }}
DT</strong><br>
Prix sans loaction vélo (J'ai mon vélo)
<strong>{{ event.priceWithoutBike }}
DT</strong>
</div>
{% if event.statut %}
<div class="col-auto">
<a href="https://app.solibikes.com/#/order/{{ event.alias }}" class="button rounded-4 fw-normal text-center m-0 px-4" >Réserver</a>
</div>
{% else %}
<div class="col-auto">
<a href="#" class="button rounded-4 fw-danger text-center m-0 px-4" style="background: red;">Complet</a>
</div>
{% endif %}
{% endif %}
</div>
</div>
</div>
<div class="col-auto">
<a href="#" class="d-flex align-items-center justify-content-center">
<i class="fs-2 bi-chevron-right text-black h-color align-middle"></i>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- #content end -->
{% endblock %}
{% block javascripts %}
<script src="{{ asset('frontend/js/plugins.lightbox.js') }}"></script>
<script src="{{ asset('frontend/js/plugins.isotope.js') }}"></script>
<script src="{{ asset('frontend/js/fn.masonrythumbs.js') }}"></script>
<script src="{{ asset('frontend/js/module.masonrythumbs.js') }}"></script>
{% endblock %}