<!-- Stored in resources/views/child.blade.php -->

<!-- Sidebar -->
<div class="sidebar sidebar-style-2" data-background-color="{{Auth('admin')->User()->dashboard_style}}">
    <div class="sidebar-wrapper scrollbar scrollbar-inner">
        <div class="sidebar-content">
            <div class="user">
                <div class="info">
                    <a data-toggle="collapse" href="#collapseExample" aria-expanded="true">
                        <span>
                            {{ Auth('admin')->User()->firstName }} {{ Auth('admin')->User()->lastName }}
                            <span class="user-level"> Admin</span>
                            {{-- <span class="caret"></span> --}}
                        </span>
                    </a>
                </div>
            </div>
           
            <ul class="nav nav-primary">
                <li class="nav-item {{ (request()->routeIs('admin.dashboard')) ? 'active' : '' }}">
                    <a href="{{ url('/admin/dashboard') }}">
                        <i class="fas fa-home"></i>
                        <p>Dashboard</p>
                    </a>
                </li>
                @if (Auth('admin')->User()->type == "Super Admin" || Auth('admin')->User()->type == "Admin")
                    
               
                <li class="nav-item {{ (request()->routeIs('manageusers')) ? 'active' : '' }} {{(request()->routeIs('loginactivity')) ? 'active' : '' }} {{(request()->routeIs('user.plans')) ? 'active' : '' }} {{(request()->routeIs('viewuser')) ? 'active' : '' }}">
                    <a href="{{ url('/admin/dashboard/manageusers') }}">
                        <i class="fa fa-user-circle" aria-hidden="true"></i>
                        <p>Manage Users</p>
                    </a>
                </li>
                
                
                
                <li class="nav-item {{ (request()->routeIs('mdeposits')) ? 'active' : '' }} {{ (request()->routeIs('mwithdrawals')) ? 'active' : '' }} {{ (request()->routeIs('mdeposits')) ? 'active' : '' }} {{(request()->routeIs('viewdepositimage')) ? 'active' : '' }} {{ (request()->routeIs('processwithdraw')) ? 'active' : '' }}">
                    <a data-toggle="collapse" href="#mdw">
                        <i class="fas fa-credit-card"></i>
                        <p>Manage D/W</p>
                        <span class="caret"></span>
                    </a>
                    <div class="collapse" id="mdw">
                        <ul class="nav nav-collapse">
                            <li>
                                <a href="{{ url('/admin/dashboard/mdeposits') }}">
                                    <span class="sub-item">Manage Deposit</span>
                                </a>
                            </li>
                            <li>
                                <a href="{{ url('/admin/dashboard/mwithdrawals') }}">
                                    <span class="sub-item">Manage Withdrawal</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </li>
                
                <li class="nav-item {{ (request()->routeIs('msignal')) ?   'active' : '' }} {{(request()->routeIs('viewuser')) ? 'active' : '' }}">
                    <a href="{{ url('/admin/dashboard/msignal') }}">
                        <i class="fas fa-user-edit" aria-hidden="true"></i>
                        <p>Manage signals</p>
                    </a>
                </li>
                
                 <li class="nav-item {{ (request()->routeIs('mupgrade')) ?   'active' : '' }} {{(request()->routeIs('viewuser')) ? 'active' : '' }}">
                    <a href="{{ url('/admin/dashboard/mupgrade') }}">
                        <i class="fas fa-user-edit" aria-hidden="true"></i>
                        <p>Manage upgrade</p>
                    </a>
                </li>
                {{-- <li class="nav-item {{ (request()->routeIs('agents')) ? 'active' : '' }}">
                    <a href="{{ url('/admin/dashboard/agents') }}">
                        <i class="fas fa-user-edit " aria-hidden="true"></i>
                        <p>View Agents</p>
                    </a>
                </li> --}}
                @if ($settings->subscription_service == 'on')
                <li class="nav-item {{ (request()->routeIs('subtrade')) ? 'active' : '' }}">
                    <a href="{{ url('/admin/dashboard/msubtrade') }}">
                        <i class="fa fa-sync-alt" aria-hidden="true"></i>
                        <p>Manage Subscription</p>
                    </a>
                </li>
                @endif
                @endif
                
                @if (Auth('admin')->User()->type == "Super Admin" || Auth('admin')->User()->type == "Admin")
                    
                <li class="nav-item {{ (request()->routeIs('plans')) ? 'active' : '' }} {{ (request()->routeIs('newplan')) ? 'active' : '' }} {{ (request()->routeIs('editplan')) ? 'active' : '' }}">
                    <a href="{{ url('/admin/dashboard/plans') }}">
                        <i class="fas fa-cubes " aria-hidden="true"></i>
                        <p>Investment Plans</p>
                    </a>
                </li>
                
                 <li class="nav-item {{ (request()->routeIs('signals')) ? 'active' : '' }} {{ (request()->routeIs('newsignal')) ? 'active' : '' }} {{ (request()->routeIs('editsignal')) ? 'active' : '' }}">
                    <a href="{{ url('/admin/dashboard/signals') }}">
                        <i class="fas fa-cubes " aria-hidden="true"></i>
                        <p>Signal plans</p>
                    </a>
                </li>
                @endif
                
                @if (Auth('admin')->User()->type == "Super Admin")
                   <li class="nav-item {{ (request()->routeIs('addmanager')) ? 'active' : '' }} {{ (request()->routeIs('madmin')) ? 'active' : '' }}">
                    <a data-toggle="collapse" href="#adm">
                        <i class="fa fa-user"></i>
                        <p>Administrator(s)</p>
                        <span class="caret"></span>
                    </a>
                    <div class="collapse" id="adm">
                        <ul class="nav nav-collapse">
                            <li>
                                <a href="{{ url('/admin/dashboard/addmanager') }}">
                                    <span class="sub-item">Add Manager</span>
                                </a>
                            </li>
                            <li>
                                <a href="{{ url('/admin/dashboard/madmin') }}">
                                    <span class="sub-item">Manage Administrator(s)</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </li> 
                
                <li class="nav-item {{ (request()->routeIs('appsettingshow')) ? 'active' : '' }} {{ (request()->routeIs('termspolicy')) ? 'active' : '' }} {{ (request()->routeIs('refsetshow')) ? 'active' : '' }} {{ (request()->routeIs('paymentview')) ? 'active' : '' }} {{ (request()->routeIs('subview')) ? 'active' : '' }} {{ (request()->routeIs('frontpage')) ? 'active' : '' }} {{ (request()->routeIs('allipaddress')) ? 'active' : '' }} {{ (request()->routeIs('ipaddress')) ? 'active' : '' }} {{ (request()->routeIs('editpaymethod')) ? 'active' : '' }} {{ (request()->routeIs('managecryptoasset')) ? 'active' : '' }}">
                    <a data-toggle="collapse" href="#settings">
                        <i class="fa fa-cog"></i>
                        <p>Settings</p>
                        <span class="caret"></span>
                    </a>
                    <div class="collapse" id="settings">
                        <ul class="nav nav-collapse">
                            <li>
                                <a href="{{route('appsettingshow')}}">
                                    <span class="sub-item">App Settings</span>
                                </a>
                            </li>
                            <li>
                                <a href="{{route('refsetshow')}}">
                                    <span class="sub-item">Referral Settings</span>
                                </a>
                            </li>
                            <li>
                                <a href="{{route('paymentview')}}">
                                    <span class="sub-item">Payment Settings</span>
                                </a>
                            </li>
                            <li>
                                <a href="{{route('managecryptoasset')}}">
                                    <span class="sub-item">Exchange Settings</span>
                                </a>
                            </li>
                            <li>
                                <a href="{{route('subview')}}">
                                    <span class="sub-item">Subscription Settings</span>
                                </a>
                            </li>
                            <li>
                                <a href="{{ url('/admin/dashboard/frontpage') }}">
                                    <span class="sub-item">Frontend Settings</span>
                                </a>
                            </li>
                            <li>
                                <a href="{{ route('termspolicy') }}">
                                    <span class="sub-item">Terms and Privacy</span>
                                </a>
                            </li>
                            <li>
                                <a href="{{ url('/admin/dashboard/ipaddress') }}">
                                    <span class="sub-item">IP Address</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </li> 

                
                
                
                @endif
            </ul>
        </div>
    </div>
</div>
<!-- End Sidebar -->
