{% extends 'base.html.twig' %}
{% block stylesheets %}
<link href="{{ asset('https://fonts.googleapis.com/css?family=Quicksand:400,500,600,700&display=swap') }}" rel="stylesheet">
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
{% block body_class %}sidebar-noneoverflow{% endblock %}
{% block body %}
{% set flashes = [] %}
{% for type, messages in app.session.flashbag.all() %}
{% for key, message in messages %}
{% set flashes = flashes|merge([{
'type': type,
'message': message
}]) %}
{% endfor %}
{% endfor %}
<div id="flashes" data-flashes="{{ flashes|json_encode|e('html_attr') }}"></div>
<!-- BEGIN NAVBAR -->
<div class="header-container">
<header class="header navbar navbar-expand-sm">
<a href="javascript:void(0);" class="sidebarCollapse" data-placement="bottom"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg></a>
<div class="nav-logo align-self-center">
<a class="navbar-brand" href="{{ path('admin_index') }}"><img alt="logo" src="{{ asset('build/images/brand_logo.png') }}"> <span class="navbar-brand-name">ESC'Appart</span></a>
</div>
<ul class="navbar-item flex-row mr-auto">
<li class="nav-item align-self-center search-animated">
<form class="form-inline search-full form-inline search" role="search" {{ stimulus_controller('search', { 'searchUrl' : path('admin_search'), 'showBookingUrl' : path('admin_booking_show', { 'id' : 'ID' } ) }) }}>
<div class="search-bar">
<input type="text" class="form-control search-form-control ml-lg-auto" placeholder="Search..." {{ stimulus_target('search', 'searchInput') }}>
</div>
</form>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search toggle-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
</li>
</ul>
<ul class="navbar-item flex-row nav-dropdowns ml-auto">
{{ render(path('admin_block_nights')) }}
<li class="nav-item dropdown user-profile-dropdown order-lg-0 order-1">
<a href="javascript:void(0);" class="nav-link dropdown-toggle user" id="user-profile-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="media">
<div class="media-body align-self-center">
<h6>{{ app.user.firstname }} {{ app.user.lastname }}</h6>
<p>
{% for role in app.user.roles %}
{% if role == 'ROLE_ADMIN' %}
Manager
{% elseif role == 'ROLE_USER' %}
Utilisateur
{% endif %}
{% endfor %}
</p>
</div>
<img src="{{ asset('build/images/user_profile.png') }}" class="img-fluid" alt="admin-profile">
<span class="badge badge-success"></span>
</div>
</a>
<div class="dropdown-menu position-absolute" aria-labelledby="userProfileDropdown">
<div class="dropdown-item">
<a href="{{ path('admin_profile_index') }}">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
<span> Profil</span>
</a>
</div>
<div class="dropdown-item">
<a href="{{ path('admin_terms_conditions') }}">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-inbox"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg>
<span> Conditions générales</span>
</a>
</div>
<div class="dropdown-item">
<a href="{{ path('admin_security_logout') }}">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-log-out"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>
<span>Se déconnecter</span>
</a>
</div>
</div>
</li>
</ul>
</header>
</div>
<!-- END NAVBAR -->
<!-- BEGIN MAIN CONTAINER -->
<div class="main-container" id="container">
<div class="overlay"></div>
<div class="search-overlay"></div>
<!-- BEGIN TOPBAR -->
<div class="topbar-nav header navbar" role="banner">
<nav id="topbar">
<ul class="navbar-nav theme-brand flex-row text-center">
<li class="nav-item theme-logo">
<a href="{{ path('admin_index') }}">
<img src="{{ asset('build/images/brand_logo.png') }}" class="navbar-logo" alt="logo">
</a>
</li>
<li class="nav-item theme-text">
<a href="{{ path('admin_index') }}" class="nav-link"> ESC'Appart </a>
</li>
</ul>
<ul class="list-unstyled menu-categories" id="topAccordion" >
<li class="menu single-menu {% if 'admin_index' in app.request.attributes.get('_route') %}active{% endif %}">
<a href="{{ path('admin_index') }}" >
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-navigation-2"><polygon points="12 2 19 21 12 17 5 21 12 2"/></svg>
<span>Aujourd'hui</span>
</div>
</a>
</li>
<li class="menu single-menu {% if 'admin_calendar_index' in app.request.attributes.get('_route') %}active{% endif %}">
<a href="{{ path('admin_calendar_index') }}" >
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
<span>Calendrier</span>
</div>
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li class="menu single-menu {% if 'admin_accounting' in app.request.attributes.get('_route') %}active{% endif %}">
<a href="{{ path('admin_accounting_overview') }}" >
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-hash"><line x1="4" y1="9" x2="20" y2="9"/><line x1="4" y1="15" x2="20" y2="15"/><line x1="10" y1="3" x2="8" y2="21"/><line x1="16" y1="3" x2="14" y2="21"/></svg>
<span>Comptabilité</span>
</div>
</a>
</li>
<li class="menu single-menu {% if 'admin_seasonal_finance' in app.request.attributes.get('_route') %}active{% endif %}">
<a href="{{ path('admin_seasonal_finance_overview') }}" >
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-dollar-sign"><line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg>
<span>Finances saisonnières</span>
</div>
</a>
</li>
{% endif %}
{{ render(controller('App\\Controller\\DefaultController::hotelMenu', { 'route' : app.request.attributes.get('_route') })) }}
{% if is_granted('ROLE_ADMIN') %}
<li class="menu single-menu" data-controller="admin">
<a href="#setting" data-toggle="collapse" aria-expanded="true" class="dropdown-toggle">
<div class="">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-settings"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
<span>Paramètres</span>
</div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>
</a>
<ul class="submenu list-unstyled collapse" id="setting" data-parent="#topAccordion" style="">
<li {% if 'admin_setting_user' in app.request.attributes.get('_route') %}class='active'{% endif %}>
<a href="{{ path('admin_setting_user_list') }}"> Utilisateurs </a>
</li>
<li {% if 'admin_setting_zone' in app.request.attributes.get('_route') %}class='active'{% endif %}>
<a href="{{ path('admin_setting_zone_list') }}"> Zones </a>
</li>
<li {% if 'admin_setting_transaction' in app.request.attributes.get('_route') %}class='active'{% endif %}>
<a href="{{ path('admin_setting_transaction_list') }}"> Tarifs de transactions </a>
</li>
<li {% if 'admin_setting_referer' in app.request.attributes.get('_route') %}class='active'{% endif %}>
<a href="{{ path('admin_setting_referer_list') }}"> OTA's </a>
</li>
<li {% if 'admin_setting_billing' in app.request.attributes.get('_route') %}class='active'{% endif %}>
<a href="{{ path('admin_setting_billing_list_invoice') }}"> Facturation </a>
</li>
</ul>
</li>
{% endif %}
</ul>
</nav>
</div>
<!-- END TOPBAR -->
<!-- BEGIN CONTENT AREA -->
<div id="content" class="main-content" {% block controller %}{% endblock %}>
<div class="layout-px-spacing">
{% block page_header %}{% endblock %}
<!-- CONTENT AREA -->
{% block content %}{% endblock content %}
<!-- CONTENT AREA -->
</div>
<div class="footer-wrapper">
<div class="footer-section f-section-1">
<p class="">Copyright © 2021 <a target="_blank" href="https://designreset.com">DesignReset</a>, All rights reserved.</p>
</div>
<div class="footer-section f-section-2">
<p class="">Coded with <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-heart"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg></p>
</div>
</div>
</div>
<!-- END CONTENT AREA -->
<!-- calendar modal -->
<div class="modal fade" id="modal-block-nights" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
{{ render(path('admin_block_nights_modal')) }}
</div>
</div>
</div>
<!-- END MAIN CONTAINER -->
{% endblock %}