<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</head>
<body>
{% block nav %}
<div class="sticky-top mb-5">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark d-flex flex-row justify-content-between">
<div class="container-fluid">
<div>
<a class="navbar-brand" href="{{path('home')}}">AlgoMOD</a>
{% if company is defined %}
<span class="navbar-brand">/</span>
<a class="navbar-brand" href="{{path('company_index', {'company_url_name': company.urlName})}}">{{company.name}}</a>
{% if activity is defined %}
<span class="navbar-brand">/</span>
<a class="navbar-brand" href="{{path('company_index', {'company_url_name': company.urlName})}}">{{activity.name}}</a>
{% if session is defined %}
<span class="navbar-brand">/</span>
<a class="navbar-brand" href="{{path('session_index', {'company_url_name': company.urlName, 'activity_url_name': activity.urlName, 'session_url_name': session.urlName})}}">{{session.name}}</a>
{% endif %}
{% endif %}
{% endif %}
</div>
<div class="d-inline-flex w-auto">
{% if app.user %}
<span class="navbar-brand">{{ app.user.firstName }}</span>
<a href="{{ path('app_logout') }}" class="btn btn-warning me-3" style="min-width: 5em;">Logout</a>
{% else %}
<a href="{{ path('app_login') }}" class="btn btn-primary me-3" style="min-width: 5em;">Log In</a>
<a href="{{ path('app_register') }}" class="btn btn-primary me-3" style="min-width: 5em;">Register</a>
{% endif %}
</div>
</div>
</nav>
{% endblock %}
{% block alert %}
{% for flashMessage in app.session.flashbag.get('danger') %}
<div class="alert alert-danger">
{{ flashMessage }}
</div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('success') %}
<div class="alert alert-success">
{{ flashMessage }}
</div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('warning') %}
<div class="alert alert-warning">
{{ flashMessage }}
</div>
{% endfor %}
{% endblock %}
</div>
{% block body %}
{% endblock %}
</body>
</html>