@if ($item && $item->authorize(auth()->user()))
<li class="nav-item">
    <a class="nav-link {{ Request::is($item->getActivePath()) ? 'active' : '' }}"
       href="{{ $item->getHref() }}"
       @if($item->isDropdown())
       data-toggle="collapse"
       aria-expanded="{{ Request::is($item->getExpandedPath()) ? 'true' : 'false' }}"
        @endif
    >
        @if ($item->getIcon())
            <i class="{{ $item->getIcon() }}"></i>
        @endif

        <span>{{ $item->getTitle() }}</span>
    </a>

    @if ($item->isDropdown())
        <ul class="{{ Request::is($item->getExpandedPath()) ? '' : 'collapse' }} list-unstyled sub-menu"
            id="{{ str_replace('#', '', $item->getHref()) }}">
            @foreach ($item->children() as $child)
                @include('partials.sidebar.items', ['item' => $child])
            @endforeach
        </ul>
    @endif
</li>
@if ($item->getIcon() == 'fas fa-home')
 <li class="nav-item">
                <a class="nav-link" href="{{route('users.personnel')}}">
                    <i class="fa fa-lock"></i>
                    <span>Manage Personnels</span>
                </a>
            </li>

 <li class="nav-item">
                <a class="nav-link" href="{{route('users.contact')}}">
                    <i class="fa fa-envelope"></i>
                    <span>Contact Messages</span>
                </a>
            </li>
 <li class="nav-item">
                <a class="nav-link" href="{{route('users.flight')}}">
                    <i class="fa fa-plane"></i>
                    <span>Fligh Booking</span>
                </a>
            </li>
@endif
@endif
