Skip to content

Commit

Permalink
Added facility to use fa-icons for menus
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammadinaam committed Jul 31, 2021
1 parent 6751e62 commit 5ad3a62
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<li class="c-sidebar-nav-item c-sidebar-nav-dropdown" data-id={{$menu_item['id']}}>
<a class="c-sidebar-nav-dropdown-toggle">
@if(!isset($menu_item['fa-icon']))
<svg class="c-sidebar-nav-icon">
<use xlink:href="{{ asset(config('speed-admin.speed_admin_assets_path').'coreui3.4.0/vendors/@coreui/icons/svg/free.svg#'. $menu_item['icon']) }}">
</use>
</svg> {{$menu_item['title']}}
</svg>
@else
<i class="c-sidebar-nav-icon fa {{$menu_item['fa-icon']}}"></i>
@endif
{{$menu_item['title']}}
</a>
<ul class="c-sidebar-nav-dropdown-items">
@foreach($menu_item['children'] as $child_menu_item)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<li class="c-sidebar-nav-item" data-id={{$menu_item['id']}} >
<a class="c-sidebar-nav-link" href="{{$menu_item['href']}}">
@if(!isset($menu_item['fa_icon']))
<svg class="c-sidebar-nav-icon">
<use
xlink:href="{{ asset(config('speed-admin.speed_admin_assets_path').'coreui3.4.0/vendors/@coreui/icons/svg/free.svg#' . $menu_item['icon']) }}">
</use>
</svg> {{$menu_item['title']}} <!--<span class="badge badge-info">NEW</span> -->
</svg>
@else
<i class="c-sidebar-nav-icon fa {{$menu_item['fa_icon']}}"></i>
@endif
{{$menu_item['title']}} <!--<span class="badge badge-info">NEW</span> -->
</a>
</li>

0 comments on commit 5ad3a62

Please sign in to comment.