@@ -78,13 +78,13 @@ class="flex flex-col p-2 bg-gray-50 rounded-lg border border-gray-100 xl:flex-ro
7878 @isset ($value [' children' ] )
7979 <li >
8080 <button id =" {{ $key } }" data-dropdown-toggle =" {{ $key . ' -navbar' } }"
81- class =" relative xl:flex hidden items-center justify-between gap-2 py-2 px-3
82- text-base rounded-lg dark:text-white
81+ class =" relative xl:flex hidden items-center justify-start gap-2
82+ gap-2 py-2 px-3 text-base rounded-lg dark:text-white
8383 {{ (Route:: is ($key ) || Route:: is ($key . ' .*' ))
84- ?
85- ' text-white bg-primary-500 font-medium'
86- :
87- ' text-gray-500 font-normal hover:bg-gray-100 dark:hover:bg-gray-700'
84+ ?
85+ ' text-white bg-primary-500 font-medium'
86+ :
87+ ' text-gray-500 font-normal hover:bg-gray-100 dark:hover:bg-gray-700'
8888 } }"
8989 >
9090 <div class =" relative" >
@@ -113,7 +113,39 @@ class="fa fa-circle fa-beat-fade
113113 <span >@lang ($value [' title' ] )</span >
114114 @endif
115115 </button >
116- <!-- Dropdown menu -->
116+ <button data-dropdown-toggle =" {{ $key . ' -navbar' } }"
117+ class =" relative xl:hidden flex items-center justify-start gap-2 py-2 px-3
118+ text-base rounded-lg dark:text-white w-full
119+ {{ (Route:: is ($key ) || Route:: is ($key . ' .*' ))
120+ ? ' text-white bg-primary-500 font-medium'
121+ :
122+ ' text-gray-500 font-normal hover:bg-gray-100 dark:hover:bg-gray-700'
123+ } }"
124+ >
125+ <div class =" relative" >
126+ <em class =" fa {{ $value [' icon' ] } }" ></em >
127+ @if (
128+ $value [' show_notification_indicator' ]
129+ && auth ()-> user ()-> unreadNotifications ()-> count ()
130+ )
131+ <em
132+ class =" fa fa-circle fa-beat-fade
133+ {{ (Route:: is ($key ) || Route:: is ($key . ' .*' ))
134+ ?
135+ ' text-white'
136+ :
137+ ' text-primary-500'
138+ } } absolute -right-1"
139+ style ="
140+ font-size : .4rem ;
141+ --fa-beat-fade-opacity : .65 ;
142+ --fa-beat-fade-scale : 1.075 ; "
143+ >
144+ </em >
145+ @endif
146+ </div >
147+ <span >@lang ($value [' title' ] )</span >
148+ </button >
117149 <div
118150 id =" {{ $key . ' -navbar' } }"
119151 class =" hidden z-10 w-44 font-normal bg-white rounded divide-y
@@ -157,7 +189,7 @@ class="flex items-center gap-2 block py-2 px-4 hover:bg-gray-100
157189 href =" {{ route ($key ) } }"
158190 id =" {{ $key } }"
159191 class =" relative xl:flex hidden items-center justify-between
160- gap-2 py-2 px-3 text-base rounded-lg dark:text-white
192+ gap-2 py-2 px-3 text-base xl:flex hidden rounded-lg dark:text-white
161193 {{ (Route:: is ($key ) || Route:: is ($key . ' .*' ))
162194 ?
163195 ' text-white bg-primary-500 font-medium'
@@ -192,7 +224,7 @@ class="fa fa-circle fa-beat-fade
192224 </a >
193225 <a
194226 href =" {{ route ($key ) } }"
195- class =" relative xl:hidden flex items-center justify-between gap-2 py-2 px-3
227+ class =" relative xl:hidden flex items-center justify-start gap-2 py-2 px-3
196228 text-base rounded-lg dark:text-white
197229 {{ (Route:: is ($key ) || Route:: is ($key . ' .*' ))
198230 ? ' text-white bg-primary-500 font-medium'
0 commit comments