Ignore:
Timestamp:
02/26/21 18:24:27 (4 years ago)
Author:
Özkan İliyaz <iliyaz_96@…>
Branches:
master
Parents:
ff9da8b
Message:

Updated dashboard nav

File:
1 edited

Legend:

Unmodified
Added
Removed
  • resources/views/fragments/dashboard/nav.blade.php

    rff9da8b r7ed1069  
    103103                    </li>
    104104
    105                     <li class="nav-item">
    106                         <a href="{{ route("dashboard.companies.index") }}" class="nav-link {{ request()->is(['dashboard/companies', 'dashboard/companies/*']) ? 'active' : '' }}">
    107                             <i class="fe fe-briefcase"></i> Companies
    108                         </a>
    109                     </li>
    110 
     105                    @if(auth()->user()->hasRole("admin"))
     106                        <li class="nav-item">
     107                            <a href="{{ route("dashboard.companies.index") }}" class="nav-link {{ request()->is(['dashboard/companies', 'dashboard/companies/*']) ? 'active' : '' }}">
     108                                <i class="fe fe-briefcase"></i> Companies
     109                            </a>
     110                        </li>
     111                    @endif
    111112                </ul>
    112113            </div>
Note: See TracChangeset for help on using the changeset viewer.