@if (env('TRAVEL'))
    <li class="sidebar-menu-item">
        <a href="{{ route('travel.plans.index') }}" class="parent-item-content {{ menu_active_by_route(['travel.plans.*']) }}">
            <i class="las la-route"></i>
            <span class="on-half-expanded"><span>{{ _trans('common.Travel') }}</span></span>
        </a>
    </li>
    <li class="sidebar-menu-item">
        <a href="{{ route('travel.workflows.index') }}" class="parent-item-content {{ menu_active_by_route(['travel.workflows.*']) }}">
            <i class="las la-clipboard-list"></i>
            <span class="on-half-expanded"><span>{{ _trans('common.Daily Work Report') }}</span></span>
        </a>
    </li>
@else
    <li class="sidebar-menu-item {{ set_active(['travel/*']) }}">
        <a href="javascript:void(0)" class="parent-item-content has-arrow {{ menu_active_by_route(['travel.plans.*', 'travel.workflows.*']) }}">
            <span class="on-half-expanded">
                {{ _trans('common.Travel') }}
            </span>
        </a>
        <ul class="child-menu-list {{ set_active(['travel/*']) }}">
            @if (hasPermission('travel_plan_read'))
                <li class="nav-item {{ menu_active_by_route(['travel.plans.*']) }}">
                    <a href="{{ route('travel.plans.index') }}" class="{{ set_active('travel/plans*') }}">
                        <span>{{ _trans('common.Travel Plans') }}</span>
                    </a>
                </li>
            @endif
            @if (hasPermission('travel_workflow_read'))
                <li class="nav-item {{ menu_active_by_route(['travel.workflows.*']) }}">
                    <a href="{{ route('travel.workflows.index') }}" class="{{ set_active('travel/workflows*') }}">
                        <span>{{ _trans('common.Travel Workflows') }}</span>
                    </a>
                </li>
            @endif
        </ul>
    </li>
@endif