Skip to content

Commit a2f3f93

Browse files
authored
Merge pull request #87 from devaslanphp/master
Design enhancement: Main menu
2 parents 287d765 + 47feb23 commit a2f3f93

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

resources/views/components/main-menu.blade.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<a
4040
href="{{ route($key) }}"
4141
id="{{ $key }}"
42-
class="relative flex items-center justify-between gap-2 py-2 px-3 text-base rounded-lg dark:text-white {{ (Route::is($key) || Route::is($key . '.*')) ? 'text-white bg-primary-500 font-medium' : 'text-gray-500 font-normal hover:bg-gray-100 dark:hover:bg-gray-700' }}">
42+
class="relative xl:flex hidden items-center justify-between gap-2 py-2 px-3 text-base rounded-lg dark:text-white {{ (Route::is($key) || Route::is($key . '.*')) ? 'text-white bg-primary-500 font-medium' : 'text-gray-500 font-normal hover:bg-gray-100 dark:hover:bg-gray-700' }}">
4343
<div class="relative">
4444
<i class="fa {{ $value['icon'] }}"></i>
4545
@if($value['show_notification_indicator'] && auth()->user()->unreadNotifications()->count())
@@ -50,6 +50,17 @@ class="relative flex items-center justify-between gap-2 py-2 px-3 text-base roun
5050
<span>@lang($value['title'])</span>
5151
@endif
5252
</a>
53+
<a
54+
href="{{ route($key) }}"
55+
class="relative xl:hidden flex items-center justify-between gap-2 py-2 px-3 text-base rounded-lg dark:text-white {{ (Route::is($key) || Route::is($key . '.*')) ? 'text-white bg-primary-500 font-medium' : 'text-gray-500 font-normal hover:bg-gray-100 dark:hover:bg-gray-700' }}">
56+
<div class="relative">
57+
<i class="fa {{ $value['icon'] }}"></i>
58+
@if($value['show_notification_indicator'] && auth()->user()->unreadNotifications()->count())
59+
<i class="fa fa-circle fa-beat-fade {{ (Route::is($key) || Route::is($key . '.*')) ? 'text-white' : 'text-primary-500' }} absolute -right-1" style="font-size: .4rem; --fa-beat-fade-opacity: .65; --fa-beat-fade-scale: 1.075;"></i>
60+
@endif
61+
</div>
62+
<span>@lang($value['title'])</span>
63+
</a>
5364
</li>
5465
@endif
5566
@endforeach

0 commit comments

Comments
 (0)