<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title>
{% block styles %}
<script src="https://kit.fontawesome.com/d5f717e47a.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2-bootstrap-theme/0.1.0-beta.10/select2-bootstrap.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.3/css/all.min.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="{{ asset('js/enviarDatos.js') }}"></script>
<script src="{{ asset('js/operacionesComunes.js') }}"></script>
{% endblock %}
<link rel="icon" type="image/x-icon" href="/images/favicon.png">
</head>
<body class="d-flex flex-column min-vh-100">
<style>
.progress-container {
width:100%;
margin: 2em auto;
}
.progress-steps {
counter-reset: step;
}
.progress-steps li {
list-style-type: none;
width: 10%;
float: left;
font-size: .7em;
position: relative;
text-align: center;
text-transform: uppercase;
color: #5DADE2;
}
.progress-steps li:before {
width: 2.5em;
height: 2.5em;
content: counter(step);
counter-increment: step;
line-height: 2.5em;
border: 2px solid #5DADE2;
display: block;
text-align: center;
margin: 0 auto .7em auto;
border-radius: 50%;
background-color: white;
}
.progress-steps li:after {
width: 100%;
height: 2px;
content: '';
position: absolute;
background-color: #edf2fb;
top: 1.3em;
left: -50%;
z-index: -1;
}
.progress-steps li:first-child:after {
content: none;
}
.progress-steps li.active {
color: #5DADE2;
}
.progress-steps li.active:before {
border-color: #5DADE2;
}
.progress-steps li.active + li:after {
background-color: #5DADE2;
}
</style>
{% block head %}
<!-- ////////// NAVIGATION BAR ////////////////-->
<nav class="navbar navbar-expand-lg navbar-dark w3-black ps-2" id="headerPage">
<a class="navbar-brand" href="{{ path('app_homepage') }}">EXEM</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
{% if is_granted('ROLE_ADMIN') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('admin') }}">
<i class="fas fa-business-time fa-lg me-2"></i>PANEL
</a>
</li>
{% elseif is_granted('ROLE_BROKER') %}
<li class="nav-item">
<a class="nav-link" href='{{ path('broker') }}'>
<i class="fas fa-business-time fa-lg me-2"></i>PANEL
</a>
</li>
{% elseif is_granted('ROLE_LANDLORD') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('landlord') }}">
<!-- <a class="nav-link" href="{# path('landlord_dashboard') #}"> -->
<i class="fas fa-business-time fa-lg me-2"></i>PANEL
</a>
</li>
{% elseif is_granted('ROLE_TENANT') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('tenant') }}">
<i class="fas fa-business-time fa-lg me-2"></i>PANEL
</a>
</li>
{% endif %}
{#}
{% if is_granted('ROLE_BROKER') %}
<li class="nav-item">
<a class="nav-link" href="#">
<i class="fa-regular fa-address-card fa-lg me-2"></i>Mi Perfil
</a>
</li>
{% endif %}
#}
<li class="nav-item">
<a class="nav-link" href="/">
<i class="fas fa-home fa-lg me-2"></i>Home
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about">
<i class="fas fa-user fa-lg me-2"></i>Sobre Nosotros
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/properties">
<i class="fas fa-building fa-lg me-2"></i>Inmuebles
</a>
</li>
{% if not is_granted('ROLE_USER') %}
<li class="nav-item">
<a class="nav-link" href="/login">
<i class="fas fa-user-tie me-2"></i>Propietarios
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/login">
<i class="fas fa-user-ninja me-2"></i>Inquilinos
</a>
</li>
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
<li class="nav-item">
<a class="nav-link" href="#">
<i class="fas fa-user-ninja me-2"></i>Mi perfil
</a>
</li>
{% endif %}
</ul>
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="/contact">
<i class="fas fa-envelope fa-lg me-2"></i>Contáctanos
</a>
</li>
{% if is_granted('ROLE_USER') %}
<li class="nav-item">
<a class="nav-link" href="/logout">
<i class="fas fa-sign-in-alt fa-lg me-2"></i>Salir
</a>
</li>
{% else %}
<li class="nav-item" >
<a class="nav-link" href="/login">
<i class="fas fa-sign-in-alt fa-lg me-2"></i>Acceder
</a>
</li>
<li class="nav-item">
<a class="nav-link " href="/newuser">
<i class="fas fa-user-plus fa-lg me-2"></i>Registrarse
</a>
</li>
{% endif %}
</ul>
</div>
</nav>
<div class="content">
<div class="container">
{% for flash_message in app.session.flashbag.get("error")%}
<div class="alert alert-danger">
{{flash_message}}
</div>
{% endfor %}
{% for flash_message in app.session.flashbag.get("success") %}
<div class="alert alert-success">
{{flash_message}}
</div>
{% endfor %}
{% if app.flashes('success') is not empty %}
<div class="flash-message success">
{{ app.flashes('success')[0] }}
</div>
{% endif %}
{% if app.flashes('error') is not empty %}
<div class="flash-message error">
{{ app.flashes('error')[0] }}
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% block body %}
<script>
$(document).ready(function() {
$('.select2').select2();
});
</script>
{% endblock %}
{% block footer %}
<!-- Footer -->
<footer class="footer mt-auto w3-center w3-black w3-padding-2" id="footerPage">
<div class="w3-large mt-2 mb-2">
<i class="fa fa-facebook-official w3-hover-opacity"></i>
<i class="fa fa-instagram w3-hover-opacity"></i>
<i class="fa fa-twitter w3-hover-opacity"></i>
<i class="fa fa-linkedin w3-hover-opacity"></i>
<a title="W3.CSS" target="_blank" class="ms-3 w3-hover-text-pink" style="font-size: 14px; color: white; text-decoration: underline;" href="/">Exem © 2023 </a>
</div>
</footer>
{% endblock %}
{% block javascripts %}
{% endblock %}
</body>
</html>