@if (\App\CentralLogics\Helpers::module_permission_check('courier_management'))
    <li class="nav-item">
        <small class="nav-subtitle" title="{{ translate('Courier Management') }}">{{ translate('Courier Management') }}</small>
        <small class="tio-more-horizontal nav-subtitle-replacer"></small>
    </li>
    <li class="navbar-vertical-aside-has-menu {{ Request::is('admin/courier*') ? 'active' : '' }}">
        <a class="js-navbar-vertical-aside-menu-link nav-link nav-link-toggle" href="javascript:" title="{{ translate('Courier Management') }}">
            <i class="tio-local-shipping nav-icon"></i>
            <span class="navbar-vertical-aside-mini-mode-hidden-elements text-truncate">{{ translate('Courier Management') }}</span>
        </a>
        <ul class="js-navbar-vertical-aside-submenu nav nav-sub" style="display:{{ Request::is('admin/courier*') ? 'block' : 'none' }}">
            <li class="nav-item {{ Request::is('admin/courier/orders*') ? 'active' : '' }}">
                <a class="nav-link" href="{{ route('admin.courier.orders') }}"><span class="tio-circle nav-indicator-icon"></span><span class="text-truncate">{{ translate('Courier Orders/Parcels') }}</span></a>
            </li>
            <li class="nav-item {{ Request::is('admin/courier/ledger*') ? 'active' : '' }}">
                <a class="nav-link" href="{{ route('admin.courier.ledger') }}"><span class="tio-circle nav-indicator-icon"></span><span class="text-truncate">{{ translate('Courier Collection Ledger') }}</span></a>
            </li>
            <li class="nav-item {{ Request::is('admin/courier/settlements*') ? 'active' : '' }}">
                <a class="nav-link" href="{{ route('admin.courier.settlements.index') }}"><span class="tio-circle nav-indicator-icon"></span><span class="text-truncate">{{ translate('Courier Settlement') }}</span></a>
            </li>
            <li class="nav-item {{ Request::is('admin/courier/outstanding*') ? 'active' : '' }}">
                <a class="nav-link" href="{{ route('admin.courier.outstanding') }}"><span class="tio-circle nav-indicator-icon"></span><span class="text-truncate">{{ translate('Outstanding Report') }}</span></a>
            </li>
            <li class="nav-item {{ Request::is('admin/courier/reconciliation*') ? 'active' : '' }}">
                <a class="nav-link" href="{{ route('admin.courier.reconciliation') }}"><span class="tio-circle nav-indicator-icon"></span><span class="text-truncate">{{ translate('Reconciliation') }}</span></a>
            </li>
            <li class="nav-item {{ Request::is('admin/courier/charges*') ? 'active' : '' }}">
                <a class="nav-link" href="{{ route('admin.courier.charges') }}"><span class="tio-circle nav-indicator-icon"></span><span class="text-truncate">{{ translate('Charges Report') }}</span></a>
            </li>
            <li class="nav-item {{ Request::is('admin/courier/logs*') ? 'active' : '' }}">
                <a class="nav-link" href="{{ route('admin.courier.logs') }}"><span class="tio-circle nav-indicator-icon"></span><span class="text-truncate">{{ translate('Courier API Logs') }}</span></a>
            </li>
            <li class="nav-item {{ Request::is('admin/courier/accounts*') ? 'active' : '' }}">
                <a class="nav-link" href="{{ route('admin.courier.accounts') }}"><span class="tio-circle nav-indicator-icon"></span><span class="text-truncate">{{ translate('Courier Accounts') }}</span></a>
            </li>
        </ul>
    </li>
@endif
