Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions src/layouts/admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,24 @@ class="nav-item dropdown show {{ str_contains(Request::route()?->getName(), 'adm
<a class="nav-link dropdown-toggle" href="#" id="dropdown04" data-toggle="dropdown"
aria-expanded="false" title="{{ __('interface.misc.support') }}">
<div>
<i class="bi bi-telephone"></i>
<i class="bi bi-telephone">
@if (request()->get('badges')->tickets > 0)
<span class="bubble bubble-warning bubble--on-sidebar"></span>
@endif
</i>
<span>{{ __('interface.misc.support') }}</span>
</div>
<i class="bi bi-chevron-down dropdown-indicator"></i>
</a>
<div class="dropdown-menu w-100" aria-labelledby="dropdown04">
<a class="dropdown-item" href="{{ route('admin.support') }}"
<a class="dropdown-item d-flex align-items-center justify-content-between" href="{{ route('admin.support') }}"
title="{{ __('interface.misc.tickets') }}"
data-toggle="tooltip">{{ __('interface.misc.tickets') }}</a>
data-toggle="tooltip">
{{ __('interface.misc.tickets') }}
@if (request()->get('badges')->tickets > 0)
<span class="bubble bubble-warning bubble--on-dropdown"></span>
@endif
</a>
@if (Auth::user()->role == 'admin')
<a class="dropdown-item" href="{{ route('admin.support.categories') }}"
title="{{ __('interface.misc.categories') }}"
Expand Down Expand Up @@ -213,15 +222,24 @@ class="nav-item dropdown show {{ str_contains(Request::route()?->getName(), 'adm
<a class="nav-link dropdown-toggle" href="#" id="dropdown04" data-toggle="dropdown"
aria-expanded="false" title="{{ __('interface.misc.shop') }}">
<div>
<i class="bi bi-box"></i>
<i class="bi bi-box">
@if (request()->get('badges')->orders > 0)
<span class="bubble bubble-warning bubble--on-sidebar"></span>
@endif
</i>
<span>{{ __('interface.misc.shop') }}</span>
</div>
<i class="bi bi-chevron-down dropdown-indicator"></i>
</a>
<div class="dropdown-menu w-100" aria-labelledby="dropdown04">
<a class="dropdown-item" href="{{ route('admin.shop.orders') }}"
<a class="dropdown-item d-flex align-items-center justify-content-between" href="{{ route('admin.shop.orders') }}"
title="{{ __('interface.misc.orders') }}"
data-toggle="tooltip">{{ __('interface.misc.orders') }}</a>
data-toggle="tooltip">
{{ __('interface.misc.orders') }}
@if (request()->get('badges')->orders > 0)
<span class="bubble bubble-warning bubble--on-dropdown"></span>
@endif
</a>
<a class="dropdown-item" href="{{ route('admin.shop.categories') }}"
title="{{ __('interface.misc.configuration') }}"
data-toggle="tooltip">{{ __('interface.misc.configuration') }}</a>
Expand Down
14 changes: 12 additions & 2 deletions src/layouts/customer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt
data-toggle="tooltip">
<a class="nav-link" href="{{ route('customer.support') }}"
title="{{ __('interface.misc.tickets') }}">
<i class="bi bi-ticket-fill"></i>
<i class="bi bi-ticket-fill">
@if (request()->get('badges')->tickets > 0)
<span class="bubble bubble-warning bubble--on-sidebar"></span>
@endif
</i>
<span>{{ __('interface.misc.tickets') }}</span>
</a>
</li>
Expand All @@ -121,7 +125,13 @@ class="nav-item {{ str_contains(Request::route()?->getName(), 'customer.contract
class="nav-item {{ str_contains(Request::route()?->getName(), 'customer.invoices') ? 'active' : '' }}">
<a class="nav-link" href="{{ route('customer.invoices') }}"
title="{{ __('interface.misc.invoices') }}" data-toggle="tooltip">
<i class="bi bi-file-earmark-text"></i>
<i class="bi bi-file-earmark-text">
@if (request()->get('badges')->invoices->overdue > 0)
<span class="bubble bubble-danger bubble--on-sidebar"></span>
@elseif (request()->get('badges')->invoices->total > 0)
<span class="bubble bubble-warning bubble--on-sidebar"></span>
@endif
</i>
<span>{{ __('interface.misc.invoices') }}</span>
</a>
</li>
Expand Down
14 changes: 12 additions & 2 deletions src/layouts/public.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt
class="nav-item {{ str_contains(Request::route()?->getName(), 'customer.support') ? 'active' : '' }}">
<a class="nav-link" href="{{ route('customer.support') }}"
title="{{ __('interface.misc.tickets') }}" data-toggle="tooltip">
<i class="bi bi-ticket-fill"></i>
<i class="bi bi-ticket-fill">
@if (request()->get('badges')->tickets > 0)
<span class="bubble bubble-warning bubble--on-sidebar"></span>
@endif
</i>
<span>{{ __('interface.misc.tickets') }}</span>
</a>
</li>
Expand All @@ -130,7 +134,13 @@ class="nav-item {{ str_contains(Request::route()?->getName(), 'customer.contract
class="nav-item {{ str_contains(Request::route()?->getName(), 'customer.invoices') ? 'active' : '' }}">
<a class="nav-link" href="{{ route('customer.invoices') }}"
title="{{ __('interface.misc.invoices') }}" data-toggle="tooltip">
<i class="bi bi-file-earmark-text"></i>
<i class="bi bi-file-earmark-text">
@if (request()->get('badges')->invoices->overdue > 0)
<span class="bubble bubble-danger bubble--on-sidebar"></span>
@elseif (request()->get('badges')->invoices->total > 0)
<span class="bubble bubble-warning bubble--on-sidebar"></span>
@endif
</i>
<span>{{ __('interface.misc.invoices') }}</span>
</a>
</li>
Expand Down
23 changes: 23 additions & 0 deletions src/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ main {
justify-content: center;
transition-duration: .25s;
min-width: 2.5rem;
position: relative;
}
}

Expand Down Expand Up @@ -803,3 +804,25 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
text-decoration: none;
background-color: $dropdown-link-hover-bg;
}

.bubble {
border-radius: 0.3rem;
display: block;
height: 0.6rem !important;
width: 0.6rem !important;

&.bubble-warning {
background-color: var(--warning);
}

&.bubble-danger {
background-color: var(--danger);
}

&.bubble--on-sidebar {
position: absolute;
right: 0;
top: 0;
transform: translate(50%, -50%);
}
}