use company logo if available and add link to company data

This commit is contained in:
Ryan Prather 2025-01-10 15:05:22 +00:00
parent b7b0c8e6c4
commit d2f8bc7cbf

View File

@ -3,7 +3,11 @@
<div class="sidenav-header">
<i class="fas fa-times p-3 cursor-pointer text-dark opacity-5 position-absolute end-0 top-0 d-none d-xl-none" aria-hidden="true" id="iconSidenav"></i>
<a class="navbar-brand px-4 py-3 m-0" href="{{ path('app_dashboard') }}">
<img src="{{ asset('img/logo-ct-dark.png') }}" class="navbar-brand-img" width="26" height="26" alt="main_logo">
{% if app.user.company.companyLogo %}
<img src="/uploads/company/{{ app.user.company.companyLogo }}" class="navbar-brand-img" width="30" height="30" alt="main_logo">
{% else %}
<img src="{{ asset('img/logo-ct-dark.png') }}" class="navbar-brand-img" width="30" height="30" alt="main_logo">
{% endif %}
<span class="ms-1 text-sm text-dark">CM Tracker</span>
</a>
</div>
@ -26,6 +30,12 @@
<span class="nav-link-text ms-1">Admin Dashboard</span>
</a>
</li>
<li class='nav-item'>
<a class='{{ company_nav }}' href='{{ path('app_company') }}'>
<i class='material-symbols-rounded opacity-5'>folder_open</i>
<span class='nav-link-text ms-1'>Company</span>
</a>
</li>
<li class="nav-item">
<a class="{{ user_list }}" href="{{ path('app_list_users') }}">
<i class="material-symbols-rounded opacity-5">assignment</i>