@if (checkSettings('email-setting') == 'enable')
    @can('email-setting')
        <li class="nav-item {{ request()->routeIs(['email-setting', 'emailLog', 'emailReminder']) ? 'menu-open' : '' }}">
            <a href="#" class="nav-link">
                <i class="fas fa-envelope nav-icon"></i>
                <p>
                    Email
                    <i class="fas fa-angle-left right"></i>
                </p>
            </a>
            <ul class="nav nav-treeview">
                <li class="nav-item">
                    <a href="{{ route('emailLog') }}"
                        class="nav-link {{ request()->routeIs(['emailLog']) ? 'active' : '' }}">
                        <i class="ml-3 far fa-circle nav-icon" style="font-size: 10px"></i>
                        <p>Email Log</p>
                    </a>
                </li>

                <li class="nav-item">
                    <a href="{{ route('email-setting') }}"
                        class="nav-link {{ request()->routeIs(['email-setting']) ? 'active' : '' }}">
                        <i class="ml-3 far fa-circle nav-icon" style="font-size: 10px"></i>
                        <p>Email Settings</p>
                    </a>
                </li>

                <li class="nav-item">
                    <a href="{{ route('emailReminder') }}"
                        class="nav-link {{ request()->routeIs(['emailReminder']) ? 'active' : '' }}">
                        <i class="ml-3 far fa-circle nav-icon" style="font-size: 10px"></i>
                        <p>Send Bill Invoice</p>
                    </a>
                </li>

                {{-- @can('sms_gateway_list')
                    <li class="nav-item">
                        <a href="{{ route('email-gateway.index') }}"
                            class="nav-link {{ request()->routeIs(['sms-gateway.index']) ? 'active' : '' }}">
                            <i class="ml-3 far fa-circle nav-icon" style="font-size: 10px"></i>
                            <p>Email Gateway</p>
                        </a>
                    </li>
                @endcan --}}
            </ul>
        </li>
    @endcan
@endif
