<!DOCTYPE html>
<html lang="fr">
<head>
{# Meta Information #}
<meta charset="UTF-8">
<title>{% block title %}We Act - L'Excellence du Notariat{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
{# Fonts #}
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700|Raleway:300,400,500,600,700">
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet"/>
{# Styles #}
{{ encore_entry_link_tags('style') }}
{% block stylesheets %}{% endblock %}
</head>
<body>
<div class="d-none" id="data" data-sentrydsn="{{ app.request.server.get('SENTRY_DSN') }}"></div>
<div class="d-none" id="loader">
<img src="{{ asset('media/client-logos/logo-weact.svg') }}">
</div>
{% set currentRoute = app.request.get('_route') %}
<div class="header">
<!-- begin:: Header -->
<a href="{% if app.user %}{{ path('dashboard') }}{% else %}{{ path('index') }}{% endif %}">
<img class="logo" alt="Logo" src="{{ asset('media/logos/logo-weact.svg') }}"/>
</a>
{% if app.user %}
<div id="kt_header" class="kt-header w-100">
<!-- begin: Header Menu -->
<div class="kt-header-menu-wrapper kt-grid__item w-100 align-right" id="kt_header_menu_wrapper">
<div id="kt_header_menu" class="kt-header-menu kt-header-menu-mobile d-flex flex-column flex-md-row justify-content-between pull-right">
{% set mercureId = app.user.roles[0]|slice(5,5)~app.user.id %}
<input type="hidden" id="mercureId" value="{{ mercureId }}">
<ul class="kt-menu__nav ">
{{ include('menu/profile.html.twig') }}
{% if app.user.roles[0] is same as(constant('App\\Utils\\CommonConstants::ROLE_ROLE_DIRECTOR')) %}
{{ include('menu/director.html.twig') }}
{% endif %}
{% if app.user.roles[0] is same as(constant('App\\Utils\\CommonConstants::ROLE_ROLE_ADVISOR')) %}
{{ include('menu/advisor.html.twig') }}
{% endif %}
{% if app.user.roles[0] is same as(constant('App\\Utils\\CommonConstants::ROLE_ROLE_MANAGER')) %}
{{ include('menu/manager.html.twig') }}
{% endif %}
{% if app.user.roles[0] is same as(constant('App\\Utils\\CommonConstants::ROLE_ROLE_COLLABORATOR')) %}
{{ include('menu/collaborator.html.twig') }}
{% endif %}
{% if app.user.roles[0] is same as (constant('App\\Utils\\CommonConstants::ROLE_ROLE_MANDATARY')) %}
{{ include('menu/mandatary.html.twig') }}
{% endif %}
{% if app.user.roles[0] is same as (constant('App\\Utils\\CommonConstants::ROLE_ROLE_COACH')) %}
{{ include('menu/coach.html.twig') }}
{% endif %}
{% if app.user.roles[0] is same as (constant('App\\Utils\\CommonConstants::ROLE_ROLE_HEADQUARTER')) %}
{{ include('menu/headquarter.html.twig') }}
{% endif %}
{% if app.user.roles[0] is same as (constant('App\\Utils\\CommonConstants::ROLE_ROLE_ACCOUNTANT')) %}
{{ include('menu/accountant.html.twig') }}
{% endif %}
</ul>
</div>
</div>
<!-- end: Header Menu -->
</div>
{% else %}
<div id="kt_header" class="kt-header col-10">
<div class="kt-header-menu-wrapper kt-grid__item col-12" id="kt_header_menu_wrapper">
<div id="kt_header_menu" class="kt-header-menu kt-header-menu-mobile col-12 row">
{{ include('menu/offline.html.twig') }}
</div>
</div>
</div>
{% endif %}
<!-- end:: Header -->
</div>
<div class="content kt-content kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
{% block page_content_start %}
{% for message in app.flashes('success') %}
<div class="alert alert-success">
{{ message }}
</div>
{% endfor %}
{% for message in app.flashes('danger') %}
<div class="alert alert-danger">
{{ message }}
</div>
{% endfor %}
{% for message in app.flashes('warning') %}
<div class="alert alert-warning">
{{ message }}
</div>
{% endfor %}
{% endblock %}
<div class="container">
{% block body %}{% endblock %}
</div>
</div>
{#<!--footer-->#}
<div class="kt-footer footer py-4 d-flex flex-lg-column bg-weact" id="kt_footer">
<div class="container-fluid d-flex flex-column flex-md-row align-items-center justify-content-between">
<div class="row">
<div class="col-md-3 img ">
<img class="logo" alt="Logo" src="{{ asset('media/client-logos/logo-weact-footer.svg') }}"/>
</div>
<div class="col-md-9 desc weact d-flex align-items-center justify-content-center"> We Act, l’Excellence du Notariat.<br></div>
</div>
<div class=""><div class="menu-footer-menu-container">
<ul class="menu">
<li class="weact"><a class="weact" href="https://we-act.fr/mentions-legales/">Mentions Légales</a></li>
<li class="weact"><a class="weact" href="https://we-act.fr/charte-de-confidentialite/">Charte de confidentialité</a></li>
<li class="weact"><a class="weact" href="https://we-act.fr/paiement-securise/">Paiement sécurisé</a></li>
<li class="weact"><a class="weact" href="https://we-act.fr/blog/">Blog</a></li>
</ul>
</div>
</div>
</div>
</div>
{#<!--/footer-->#}
<div class="kt-grid kt-grid--hor kt-grid--root">
{% set showWeact = app.request.get('_route') is same as('collaborator_edit_sales_agreement') %}
{% set editAgencySalesPath = app.request.get('_route') is same as('edit_sales_agreement') %}
{% set idSAAvailable = constant('App\\Utils\\CommonConstants::STATUS_ID_AVAILABLE') %}
{% set showAgency = editAgencySalesPath and salesAgreementForm is defined and salesAgreementForm.vars.value.status.id == idSAAvailable %}
{% if (showWeact) or (showAgency) %}
<div class="documents-wrapper d-none" id="rdocuments">
<button type="button" class="close widget right" aria-label="Close" style="left: 22%">
<i class="far fa-times-circle fa-xs d-none"></i>
<i class="far fa-arrow-alt-circle-left fa-xs"></i>
</button>
<div class="col-xs-12 row m-0 p-0" style="min-height: 120px;">
<div class="m-0 p-0 vertical-text-right" id="divDocuments">
<span class="onglet-weact">Documents</span>
</div>
<div class="col-xs-11 m-0 p-0 scroll">
{{ render(controller('App\\Controller\\CollaboratorController::documents', app.request.get('_route_params'))) }}
</div>
</div>
</div>
{% endif %}
{% if (showWeact)%}
<div class="clauses-wrapper d-none" id="rclauses">
<button type="button" class="close widget left" aria-label="Close" style="right: 22%">
<i class="far fa-times-circle fa-xs d-none"></i>
<i class="far fa-arrow-alt-circle-right fa-xs"></i>
</button>
<div class="col-xs-12 row m-0 p-0" style="min-height: 120px;">
<div class="col-xs-11 m-0 p-0 scroll">
{{ render(controller('App\\Controller\\CollaboratorController::clauses', app.request.get('_route_params'))) }}
</div>
<div class="m-0 p-0 vertical-text-left" id="divClauses">
<span class="onglet-weact">Clauses</span>
</div>
</div>
</div>
{% endif %}
{% if (showAgency) %}
<div class="comments-wrapper d-none" id="rcomments">
<button type="button" class="close widget left" aria-label="Close" >
<i class="far fa-times-circle fa-xs"></i>
<i class="far fa-arrow-alt-circle-right fa-xs d-none"></i>
</button>
<div class="col-xs-12 row m-0 p-0" style="min-height: 120px;">
<div class="col-xs-11 m-0 p-0 scroll">
{{ render(controller('App\\Controller\\SalesAgreementController::comments', app.request.get('_route_params'))) }}
</div>
<div class="m-0 p-0 vertical-text-left" id="divComments">
<span class="onglet-weact">Commentaires</span>
</div>
</div>
</div>
{% endif %}
</div>
<script>
let KTAppOptions = {
"colors": {
"state": {
"brand": "#1cac81",
"metal": "#c4c5d6",
"light": "#ffffff",
"accent": "#00c5dc",
"primary": "#5867dd",
"success": "#34bfa3",
"info": "#36a3f7",
"warning": "#ffb822",
"danger": "#fd3995",
"focus": "#9816f4"
},
"base": {
"label": [
"#b9bdc1",
"#aeb2b7",
"#414b4c",
"#343d3e"
],
"shape": [
"#eef4f3",
"#e0e9e6",
"#80c3af",
"#41675c"
]
}
}
};
</script>
{{ encore_entry_script_tags('app') }}
{% block javascripts %}{% endblock %}
</body>
</html>