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

<!-- Sidebar -->
<div class="sidebar sidebar-style-2" data-background-color="<?php echo e(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>
                            <?php echo e(Auth('admin')->User()->firstName); ?> <?php echo e(Auth('admin')->User()->lastName); ?>

                            <span class="user-level"> Admin</span>
                            
                        </span>
                    </a>
                </div>
            </div>

            <ul class="nav nav-primary">



                    <li class="nav-item <?php echo e(request()->routeIs('admin.personnel.*') ? 'active' : ''); ?>">
                        <a data-toggle="collapse" href="#personnel">
                            <i class="fas fa-users-cog"></i>
                            <p>Military Personnel</p>
                            <span class="caret"></span>
                        </a>
                        <div class="collapse" id="personnel">
                            <ul class="nav nav-collapse">
                                <li>
                                    <a href="<?php echo e(route('admin.personnel.index')); ?>">
                                        <span class="sub-item">All Personnel</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.personnel.create')); ?>">
                                        <span class="sub-item">Add New Personnel</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>

                    <li class="nav-item <?php echo e(request()->routeIs('admin.leave-applications.*') ? 'active' : ''); ?>">
                        <a data-toggle="collapse" href="#leaveApplications">
                            <i class="fas fa-calendar-check"></i>
                            <p>Leave Applications</p>
                            <span class="caret"></span>
                        </a>
                        <div class="collapse" id="leaveApplications">
                            <ul class="nav nav-collapse">
                                <li>
                                    <a href="<?php echo e(route('admin.leave-applications.index')); ?>">
                                        <span class="sub-item">All Applications</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.leave-applications.index', ['status' => 'pending'])); ?>">
                                        <span class="sub-item">Pending Review</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.leave-applications.index', ['status' => 'approved'])); ?>">
                                        <span class="sub-item">Approved</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.leave-applications.index', ['status' => 'rejected'])); ?>">
                                        <span class="sub-item">Rejected</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>

                    <li class="nav-item <?php echo e(request()->routeIs('admin.flight-bookings.*') ? 'active' : ''); ?>">
                        <a data-toggle="collapse" href="#flightBookings">
                            <i class="fas fa-plane"></i>
                            <p>Flight Bookings</p>
                            <span class="caret"></span>
                        </a>
                        <div class="collapse" id="flightBookings">
                            <ul class="nav nav-collapse">
                                <li>
                                    <a href="<?php echo e(route('admin.flight-bookings.index')); ?>">
                                        <span class="sub-item">All Bookings</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.flight-bookings.index', ['status' => 'unread'])); ?>">
                                        <span class="sub-item">New Requests</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.flight-bookings.index', ['status' => 'read'])); ?>">
                                        <span class="sub-item">Under Review</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.flight-bookings.index', ['status' => 'replied'])); ?>">
                                        <span class="sub-item">Processed</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>

                    <li class="nav-item <?php echo e(request()->routeIs('admin.contact-messages.*') ? 'active' : ''); ?>">
                        <a data-toggle="collapse" href="#contactMessages">
                            <i class="fas fa-envelope"></i>
                            <p>Contact Messages</p>
                            <span class="caret"></span>
                        </a>
                        <div class="collapse" id="contactMessages">
                            <ul class="nav nav-collapse">
                                <li>
                                    <a href="<?php echo e(route('admin.contact-messages.index')); ?>">
                                        <span class="sub-item">All Messages</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.contact-messages.index', ['status' => 'unread'])); ?>">
                                        <span class="sub-item">Unread Messages</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.contact-messages.index', ['status' => 'read'])); ?>">
                                        <span class="sub-item">Read Messages</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.contact-messages.index', ['status' => 'replied'])); ?>">
                                        <span class="sub-item">Replied Messages</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('admin.contact-messages.index', ['status' => 'archived'])); ?>">
                                        <span class="sub-item">Archived Messages</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>

                     <li class="nav-item <?php echo e(request()->routeIs('emailservices') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('emailservices')); ?>">
                            <i class="fa fa-envelope" aria-hidden="true"></i>
                            <p>Email Services</p>
                        </a>
                    </li>


                
                <?php if(Auth('admin')->User()->type == 'Super Admin' || Auth('admin')->User()->type == 'Admin'): ?>
                    






                    

                    
                    
                <?php endif; ?>
                
                
                
                <?php if(Auth('admin')->User()->type == 'Super Admin'): ?>
                    <li
                        class="nav-item <?php echo e(request()->routeIs('addmanager') ? 'active' : ''); ?> <?php echo e(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="<?php echo e(url('/admin/dashboard/addmanager')); ?>">
                                        <span class="sub-item">Add Manager</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(url('/admin/dashboard/madmin')); ?>">
                                        <span class="sub-item">Manage Admin(s)</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>

                    <li
                        class="nav-item <?php echo e(request()->routeIs('appsettingshow') ? 'active' : ''); ?> <?php echo e(request()->routeIs('termspolicy') ? 'active' : ''); ?> <?php echo e(request()->routeIs('refsetshow') ? 'active' : ''); ?> <?php echo e(request()->routeIs('paymentview') ? 'active' : ''); ?> <?php echo e(request()->routeIs('frontpage') ? 'active' : ''); ?> <?php echo e(request()->routeIs('allipaddress') ? 'active' : ''); ?> <?php echo e(request()->routeIs('ipaddress') ? 'active' : ''); ?> <?php echo e(request()->routeIs('editpaymethod') ? 'active' : ''); ?> <?php echo e(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="<?php echo e(route('appsettingshow')); ?>">
                                        <span class="sub-item">App Settings</span>
                                    </a>
                                </li>
                                
                                
                                


                                <!--<li>-->
                                <!--    <a href="<?php echo e(route('termspolicy')); ?>">-->
                                <!--        <span class="sub-item">Terms and Privacy</span>-->
                                <!--    </a>-->
                                <!--</li>-->
                                
                            </ul>
                        </div>
                    </li>
                <?php endif; ?>


                <li class="nav-item <?php echo e(request()->routeIs('aboutonlinetrade') ? 'active' : ''); ?>">
                    <a href="https://codesremedy.com/">
                        <i class=" fa fa-info-circle" aria-hidden="true"></i>
                        <p>For More script</p>
                    </a>

                    <a href="https://nulledtechy.com/">
                        <i class=" fa fa-info-circle" aria-hidden="true"></i>
                        <p>For More script</p>
                    </a>
                </li>

            </ul>
        </div>
    </div>
</div>
<!-- End Sidebar -->
<?php /**PATH /home/elitemaxpro/milita.elitemaxpro.click/resources/views/admin/sidebar.blade.php ENDPATH**/ ?>