Skip to content

Commit

Permalink
added env var for dashboard link in navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ketan404 committed Jul 10, 2024
1 parent 57c3688 commit 233cf34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

PURGE_AFTER_DAYS=60
ENABLE_COLLECTION_LIST=1
ENABLE_DASHBOARD_LINK_IN_NAVBAR=0
7 changes: 7 additions & 0 deletions resources/views/layouts/navbars/navs/user-home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
</button>
<div class="collapse navbar-collapse justify-content-end">
<ul class="navbar-nav">
@if (env('ENABLE_DASHBOARD_LINK_IN_NAVBAR') == '1')
<li class="nav-item{{ $activePage == 'dashboard' ? ' active' : '' }}">
<a href="/dashboard" class="nav-link">
<i class="material-icons">home</i> {{ __('Dashboard') }}
</a>
</li>
@endif

@if(env('ENABLE_COLLECTION_LIST') == 1)
<li class="nav-item{{ $activePage == 'collections' ? ' active' : '' }}">
Expand Down

0 comments on commit 233cf34

Please sign in to comment.