<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <title>Admin Panel
       
        <?php if(Session::get('adminsession')->role == 1): ?>
            Super Admin
        <?php else: ?>
            Admin 
        <?php endif; ?>   
     

    </title>
    <link rel="shortcut icon" type="image/x-icon" href="<?php echo e(url('/admin')); ?>/favicon.ico">
    <link href="<?php echo e(url('/admin')); ?>/css/styles.css" rel="stylesheet" />

    <!-- old bootstrap start -->
    <link href="<?php echo e(url('/admin')); ?>/css/bootstrap.min.css" rel="stylesheet" />
    <!-- old previous end -->
    <link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet"
        crossorigin="anonymous" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js" crossorigin="anonymous">
    </script>
    <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
    <link href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet">

</head>
<?php
$role_id = App\Models\Admin::where('id',Session::get('adminsession')->id)->first();
$model_has_roles = DB::table('model_has_roles')->where('role_id',$role_id->role)->get();
?>
<body class="sb-nav-fixed">
    <style>
        input[type="submit"] {
            padding: 10px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        input[type="submit"]:hover {
            background-color: #45a049;
        }
    </style>
    <nav class="sb-topnav navbar navbar-expand navbar-light bg-light">
        <a class="navbar-brand" href="<?php echo e(url('/admin/dashboard')); ?>">
            <img src="<?php echo e(url('/admin')); ?>/images/logo.png" alt="logo image"></a>
        <button class="btn btn-link btn-sm order-1 order-lg-0" id="sidebarToggle" href="#"><i
                class="fas fa-bars"></i></button>
        <!-- Navbar Search-->


        <h4 class="panelhd">
        <?php if(Session::get('adminsession')->role == 1): ?>
            Super Admin
        <?php else: ?>
            Admin 
        <?php endif; ?>        
        Panel
        </h4>
       
        <!-- Navbar-->
        <ul class="navbar-nav ml-auto ml-md-0">
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" id="userDropdown" href="#" role="button" data-toggle="dropdown"
                    aria-haspopup="true" aria-expanded="false"><i class="fas fa-user fa-fw"></i></a>
                <div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
                    <h6 class="pl-3">Welcome 
                    <?php if(Session::get('adminsession')->role == 1): ?>
                        Super Admin
                    <?php else: ?>
                        Admin 
                    <?php endif; ?>        
                    !</h6>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="<?php echo e(url('/admin/change-password')); ?>">Change Password</a>
                    <a class="dropdown-item" href="<?php echo e(url('admin/logout')); ?>">Logout</a>
                </div>
            </li>
        </ul>
    </nav>
    <div id="layoutSidenav">
        <div id="layoutSidenav_nav">

            <?php if($role_id->role == 1): ?>
            <nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
                <div class="sb-sidenav-menu">
                    <div class="nav">

                        <div class="sb-sidenav-menu-heading"></div>
                        <a class="nav-link  <?php echo e(Request::is('admin/dashboard') ? 'active' : ''); ?> "
                            href="<?php echo e(url('admin/dashboard')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-tachometer-alt"></i></div> Dashboard
                        </a>


                        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages8yy8"
                            aria-expanded="false" aria-controls="collapsePages">
                            <div class="sb-nav-link-icon">
                                <i class="far fa-arrow-alt-circle-right"></i>
                            </div>
                            Admin Role
                            <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                        </a>
                        <div class="collapse" id="collapsePages8yy8" aria-labelledby="headingTwo"
                            data-parent="#sidenavAccordion">
                            <nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
                                <a class="nav-link <?php echo e(Request::is('roles') ? 'active' : ''); ?>" href="<?php echo e(route('admin.role_has_permissions.role')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-tachometer-alt"></i></div> Roles
                                </a>
                                <a class="nav-link <?php echo e(Request::is('roles/list') ? 'active' : ''); ?>" href="<?php echo e(route('admin.role_has_permissions.list')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-tachometer-alt"></i></div> List
                                </a>
                                <a class="nav-link <?php echo e(Request::is('roles/add-user') ? 'active' : ''); ?>" href="<?php echo e(route('admin.role_has_permissions.user.role')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-tachometer-alt"></i></div> User
                                </a>

                            </nav>
                        </div>



                        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages88"
                            aria-expanded="false" aria-controls="collapsePages">
                            <div class="sb-nav-link-icon">
                                <i class="far fa-arrow-alt-circle-right"></i>
                            </div>
                            Attendance
                            <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                        </a>
                        <div class="collapse" id="collapsePages88" aria-labelledby="headingTwo"
                            data-parent="#sidenavAccordion">
                            <nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
                                <a class="nav-link <?php echo e(Request::is('admin/attendance') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('admin.attendance.post.branch')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-code-branch"></i></i></div> Branch
                                    Attendance
                                </a>
                                 <a class="nav-link <?php echo e(Request::is('admin/attendance') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('admin.attendance.post.operator')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-users"></i></i></div> Operator
                                    Attendance
                                </a>



                            </nav>
                        </div>

                        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages1"
                            aria-expanded="false" aria-controls="collapsePages">
                            <div class="sb-nav-link-icon">
                                <i class="far fa-arrow-alt-circle-right"></i>
                            </div>
                            Branch
                            <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                        </a>
                        <div class="collapse" id="collapsePages1" aria-labelledby="headingTwo"
                            data-parent="#sidenavAccordion">
                            <nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
                                <a class="nav-link <?php echo e(Request::is('admin/branch') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/branch')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-code-branch"></i></i></div> Branch
                                    Add
                                </a>

                                <a class="nav-link <?php echo e(Request::is('admin/view-branch') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/view-branch')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> View Branch
                                </a>

                            </nav>
                        </div>

                        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages2"
                            aria-expanded="false" aria-controls="collapsePages">
                            <div class="sb-nav-link-icon">
                                <i class="far fa-arrow-alt-circle-right"></i>
                            </div>
                            Operator
                            <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                        </a>
                        <div class="collapse" id="collapsePages2" aria-labelledby="headingTwo"
                            data-parent="#sidenavAccordion">
                            <nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
                                <a class="nav-link <?php echo e(Request::is('admin/operator-upload-excel') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/operator-upload-excel')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-users"></i></div> Operator
                                </a>

                                <a class="nav-link <?php echo e(Request::is('admin/view-operator') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/view-operator')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> View Operator
                                </a>

                            </nav>
                        </div>

                        <a class="nav-link <?php echo e(Request::is('admin/operator') ? 'active' : ''); ?>"
                            href="<?php echo e(route('registrar.index')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-users"></i></div> Registrar Code
                        </a>

                         <a class="nav-link <?php echo e(Request::is('admin/alert-message/*') ? 'active' : ''); ?>"
                            href="<?php echo e(route('alertMessage.index')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-inbox"></i></div> Alert Message
                        </a>


                        <a class="nav-link <?php echo e(Request::is('admin/enrollment-client') ? 'active' : ''); ?>"
                            href="<?php echo e(url('admin/enrollment-client')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-inbox"></i></div>Daily Enrolment Update(MIS)
                        </a>

                        <a class="nav-link <?php echo e(Request::is('admin/enrollment-client-view') ? 'active' : ''); ?>"
                            href="<?php echo e(url('admin/enrollment-client-view')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Enrollment Client View
                        </a>
                         <a class="nav-link <?php echo e(Request::is('admin/enrollment-serial-missing-view') ? 'active' : ''); ?>"
                            href="<?php echo e(url('admin/enrollment-serial-missing-view')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Enrollment serial missing  View
                        </a>
                        <a class="nav-link <?php echo e(Request::is('admin/receive-amount-list') ? 'active' : ''); ?>"
                            href="<?php echo e(url('admin/receive-amount-list')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-inbox"></i></div> Daily Payment Received
                        </a>
                        <a class="nav-link <?php echo e(Request::is('admin/upload-receive-amount') ? 'active' : ''); ?>"
                            href="<?php echo e(url('admin/upload-receive-amount')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-upload"></i></div> Bank File Upload
                        </a>
                        <!-- <a class="nav-link <?php echo e(Request::is('admin/report') ? 'active' : ''); ?>" href="<?php echo e(url('admin/report')); ?>">
                                <div class="sb-nav-link-icon"><i class="fa fa-file" aria-hidden="true"></i></div>Operator Report
                            </a>
                            <a class="nav-link <?php echo e(Request::is('admin/branch-report') ? 'active' : ''); ?>" href="<?php echo e(url('admin/branch-report')); ?>">
                                <div class="sb-nav-link-icon"><i class="fa fa-file" aria-hidden="true"></i></div>Branch Report
                            </a>  -->

                        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages22"
                            aria-expanded="false" aria-controls="collapsePages">
                            <div class="sb-nav-link-icon">
                                <i class="far fa-arrow-alt-circle-right"></i>
                            </div>
                            Report
                            <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                        </a>
                        <div class="collapse" id="collapsePages22" aria-labelledby="headingTwo"
                            data-parent="#sidenavAccordion">
                            <nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
                                <a class="nav-link <?php echo e(Request::is('admin/report/pspl-report') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/report/pspl-report')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> PSPL Report
                                </a>
                                <!-- <a class="nav-link <?php echo e(Request::is('admin/report/shreetron-report') ? 'active' : ''); ?>" href="<?php echo e(url('admin/report/shreetron-report')); ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Shreetron Report
                                    </a>  -->
                                <a class="nav-link <?php echo e(Request::is('admin/report/fund-deposit-report') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/report/fund-deposit-report')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Fund Deposit Report
                                </a>
                                <a class="nav-link <?php echo e(Request::is('admin/report/branch-dues-report') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/report/branch-dues-report')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Branch Dues Report
                                </a>
                               <a class="nav-link <?php echo e(Request::is('admin/report/salary-report') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/report/salary-report')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Salary Report
                                </a> 
                                <a class="nav-link <?php echo e(Request::is('admin/report/total-eid-list') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/report/total-eid-list')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Total EID List
                                </a>

                            </nav>
                        </div>
                    </div>
                </div>
                <!-- <div class="sb-sidenav-footer">
                        <div class="small">Logged in as:</div>
                        Start Bootstrap
                    </div> -->
            </nav>
            <?php else: ?>
            <nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
                <div class="sb-sidenav-menu">
                    <div class="nav">

                        <div class="sb-sidenav-menu-heading"></div>
                        <a class="nav-link  <?php echo e(Request::is('admin/dashboard') ? 'active' : ''); ?> "
                            href="<?php echo e(url('admin/dashboard')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-tachometer-alt"></i></div> Dashboard
                        </a>
                        <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_type',2]])->first()): ?>

                        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages88"
                            aria-expanded="false" aria-controls="collapsePages">
                            <div class="sb-nav-link-icon">
                                <i class="far fa-arrow-alt-circle-right"></i>
                            </div>
                            Attendance
                            <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                        </a>

                        <div class="collapse" id="collapsePages88" aria-labelledby="headingTwo"
                            data-parent="#sidenavAccordion">
                            <nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
                                <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',11]])->first()): ?>
                                <a class="nav-link <?php echo e(Request::is('admin/attendance') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('admin.attendance.post.branch')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-code-branch"></i></i></div> Branch  Attendance
                                </a>
                                <?php endif; ?>
                                <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',12]])->first()): ?>
                                 <a class="nav-link <?php echo e(Request::is('admin/attendance') ? 'active' : ''); ?>"
                                    href="<?php echo e(route('admin.attendance.post.operator')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-users"></i></i></div> Operator  Attendance
                                </a>
                                <?php endif; ?>


                            </nav>
                        </div>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_type',3]])->first()): ?>
                        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages1"
                            aria-expanded="false" aria-controls="collapsePages">
                            <div class="sb-nav-link-icon">
                                <i class="far fa-arrow-alt-circle-right"></i>
                            </div>
                            Branch
                            <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                        </a>
                        <div class="collapse" id="collapsePages1" aria-labelledby="headingTwo"
                            data-parent="#sidenavAccordion">
                            <nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
                                <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',13]])->first()): ?>
                                <a class="nav-link <?php echo e(Request::is('admin/branch') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/branch')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-code-branch"></i></i></div> Branch
                                    Add
                                </a>
                                <?php endif; ?>
                                <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',14]])->first()): ?>
                                <a class="nav-link <?php echo e(Request::is('admin/view-branch') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/view-branch')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> View Branch
                                </a>
                                <?php endif; ?>
                            </nav>
                        </div>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_type',4]])->first()): ?>
                        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages2"
                            aria-expanded="false" aria-controls="collapsePages">
                            <div class="sb-nav-link-icon">
                                <i class="far fa-arrow-alt-circle-right"></i>
                            </div>
                            Operator
                            <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                        </a>
                        <div class="collapse" id="collapsePages2" aria-labelledby="headingTwo"
                            data-parent="#sidenavAccordion">
                            <nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
                                <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',15]])->first()): ?>
                                <a class="nav-link <?php echo e(Request::is('admin/operator-upload-excel') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/operator-upload-excel')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-users"></i></div> Operator
                                </a>
                                <?php endif; ?>
                                <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',16]])->first()): ?>
                                <a class="nav-link <?php echo e(Request::is('admin/view-operator') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('admin/view-operator')); ?>">
                                    <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> View Operator
                                </a>
                                <?php endif; ?>
                            </nav>
                        </div>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_type',5],['model_id',27]])->first()): ?>
                        <a class="nav-link <?php echo e(Request::is('admin/operator') ? 'active' : ''); ?>"
                            href="<?php echo e(route('registrar.index')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-users"></i></div> Registrar Code
                        </a>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_type',6],['model_id',30]])->first()): ?>
                        <a class="nav-link <?php echo e(Request::is('admin/enrollment-client') ? 'active' : ''); ?>"
                            href="<?php echo e(url('admin/enrollment-client')); ?>">
                            <div class="sb-nav-link-icon"></div>Daily Enrolment Update(MIS)
                        </a>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_type',7],['model_id',31]])->first()): ?>
                        <a class="nav-link <?php echo e(Request::is('admin/enrollment-client-view') ? 'active' : ''); ?>"
                            href="<?php echo e(url('admin/enrollment-client-view')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Enrollment Client View
                        </a>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_type',8],['model_id',32]])->first()): ?>
                        <a class="nav-link <?php echo e(Request::is('admin/receive-amount-list') ? 'active' : ''); ?>"
                            href="<?php echo e(url('admin/receive-amount-list')); ?>">
                            <div class="sb-nav-link-icon"></div> Daily Payment Received
                        </a>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_type',9],['model_id',33]])->first()): ?>
                        <a class="nav-link <?php echo e(Request::is('admin/upload-receive-amount') ? 'active' : ''); ?>"
                            href="<?php echo e(url('admin/upload-receive-amount')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-upload"></i></div> Bank File Upload
                        </a>
                        <?php endif; ?>
                        <!-- <a class="nav-link <?php echo e(Request::is('admin/report') ? 'active' : ''); ?>" href="<?php echo e(url('admin/report')); ?>">
                                <div class="sb-nav-link-icon"><i class="fa fa-file" aria-hidden="true"></i></div>Operator Report
                            </a>
                            <a class="nav-link <?php echo e(Request::is('admin/branch-report') ? 'active' : ''); ?>" href="<?php echo e(url('admin/branch-report')); ?>">
                                <div class="sb-nav-link-icon"><i class="fa fa-file" aria-hidden="true"></i></div>Branch Report
                            </a>  -->
                            <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_type',10]])->first()): ?>
                            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages22"
                                aria-expanded="false" aria-controls="collapsePages">
                                <div class="sb-nav-link-icon">
                                    <i class="far fa-arrow-alt-circle-right"></i>
                                </div>
                                Report
                                <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                            </a>
                            <div class="collapse" id="collapsePages22" aria-labelledby="headingTwo"
                                data-parent="#sidenavAccordion">
                                <nav class="sb-sidenav-menu-nested nav accordion" id="sidenavAccordionPages">
                                    <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',34]])->first()): ?>
                                    <a class="nav-link <?php echo e(Request::is('admin/report/pspl-report') ? 'active' : ''); ?>"
                                        href="<?php echo e(url('admin/report/pspl-report')); ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> PSPL Report
                                    </a>
                                    <?php endif; ?>
                                    <!-- <a class="nav-link <?php echo e(Request::is('admin/report/shreetron-report') ? 'active' : ''); ?>" href="<?php echo e(url('admin/report/shreetron-report')); ?>">
                                            <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Shreetron Report
                                        </a>  -->
                                        <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',35]])->first()): ?>
                                    <a class="nav-link <?php echo e(Request::is('admin/report/fund-deposit-report') ? 'active' : ''); ?>"
                                        href="<?php echo e(url('admin/report/fund-deposit-report')); ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Fund Deposit Report
                                    </a>
                                    <?php endif; ?>
                                    <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',36]])->first()): ?>
                                    <a class="nav-link <?php echo e(Request::is('admin/report/branch-dues-report') ? 'active' : ''); ?>"
                                        href="<?php echo e(url('admin/report/branch-dues-report')); ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Branch Dues Report
                                    </a>
                                    <?php endif; ?>
                                    
                                    <?php if(DB::table('model_has_roles')->where([['role_id',$role_id->role],['model_id',38]])->first()): ?>
                                    <a class="nav-link <?php echo e(Request::is('admin/report/total-eid-list') ? 'active' : ''); ?>"
                                        href="<?php echo e(url('admin/report/total-eid-list')); ?>">
                                        <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> Total EID List
                                    </a>
                                    <?php endif; ?>

                                </nav>
                            </div>
                            <?php endif; ?>
                    </div>
                </div>
                <!-- <div class="sb-sidenav-footer">
                        <div class="small">Logged in as:</div>
                        Start Bootstrap
                    </div> -->
            </nav>
            <?php endif; ?>
        </div>
        <div id="layoutSidenav_content">
            <?php echo $__env->yieldContent('main-content'); ?>

            <footer class="py-2 bg-light mt-auto">
                <div class="container-fluid">
                    <div class="col-sm-6">
                        Copyright &copy; <script>
                            document.write(new Date().getFullYear())
                        </script> All Rights Reserved.
                    </div>
                    <div class="col-sm-6">
                        <a href="https://www.akswebsoft.com/" title="AKS Websoft Consulting Pvt. Ltd." target="_blank">
                            <img src="<?php echo e(url('/admin')); ?>/images/aks2.png" alt="AKS Websoft Consulting Pvt. Ltd."
                                class="powerd akslogo">
                        </a>
                    </div>
                </div>
            </footer>
        </div>
    </div>
    <script src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js" crossorigin="anonymous">
    </script>
    <script src="<?php echo e(url('/admin')); ?>/js/scripts.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script>
    <script src="<?php echo e(url('/admin')); ?>/assets/demo/chart-area-demo.js"></script>
    <script src="<?php echo e(url('/admin')); ?>/assets/demo/chart-bar-demo.js"></script>
    <script src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js" crossorigin="anonymous"></script>
    <script src="https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.min.js" crossorigin="anonymous"></script>
    <script src="<?php echo e(url('/admin')); ?>/assets/demo/datatables-demo.js"></script>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
    <script src="<?php echo e(url('/admin')); ?>/js/bootstrap.min.js"></script>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.min.css">

<!-- Include SweetAlert2 JS -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18"></script>
<!-- Include Select2 CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css" />

<!-- Include Select2 JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
<!-- Initialize Select2 -->
<script>
    jQuery(document).ready(function($) {
        $('#eacode').select2();
        $('#branch').select2();
        $('#district').select2();
        $('#operator').select2();
        $('#state').select2();
    });
</script>
    <script>
        <?php if(Session::has('message')): ?>
                var type="<?php echo e(Session::get('alert-type','info')); ?>"
                switch(type){
                case 'info':
                        toastr.info("<?php echo e(Session::get('message')); ?>");
                        break;
                        case 'success':
                            Swal.fire({
                                title: "Success!",
                                text: "<?php echo e(Session::get('message')); ?>",
                                icon: "success"
                            });
                                // toastr.success("<?php echo e(Session::get('message')); ?>");
                         break;
                         case 'enrolled':
                            Swal.fire({
                                title: "Success!",
                                html: '<pre>'+"<?php echo e(Session::get('message')); ?>"+'<pre>',
                                icon: "success"
                            });
                                // toastr.success("<?php echo e(Session::get('message')); ?>");
                         break;
                            case 'warning':
                            Swal.fire({
                            // title: "Good job!",
                            text: "<?php echo e(Session::get('message')); ?>",
                            icon: "warning"
                            });
                        // toastr.warning("<?php echo e(Session::get('message')); ?>");
                        break;
                    case 'error':
                    Swal.fire({
                    text: "<?php echo e(Session::get('message')); ?>",
                    icon: "error"
                    });
                        // toastr.error("<?php echo e(Session::get('message')); ?>");
                        break;
                }
            <?php endif; ?>


    </script>
    <!-- Include SweetAlert2 CSS (optional) -->


<!-- Your custom script -->

<script>
    //eacode
    function eacodeFun(){

    }
    // state
    function stateFun(){
        var state = $('#state').val();
        if(state){
            $.ajax({
                type : 'POST',
                url : "<?php echo e(url('/admin/get-district-ajax')); ?>",
                data : {
                    "state"  : state,
                    "_token" : "<?php echo e(csrf_token()); ?>"
                },
                success : function (res){
                    // console.log(res);
                    $('#district').empty();
                    $('#branch').empty();
                    $('#operator').empty();
                    
                    var o = new Option("Select", "")
                    $('#district').append(o);
                    res.forEach(function (row) {
                    let o = new Option(row.district, row.district);
                    $('#district').append(o);

                    });
                }
            });
        }
    }
    // district
    function districtFun(){
        var district = $('#district').val();
        if(district){
            $.ajax({
                type : 'POST',
                url : "<?php echo e(url('/admin/get-branch-ajax')); ?>",
                data : {
                    "district"  : district,
                    "_token"    : "<?php echo e(csrf_token()); ?>"
                },
                success : function (res){
                    // console.log(res);
                    $('#branch').empty();
                    $('#operator').empty();
                    var o = new Option("Select", "")
                    $('#branch').append(o);
                    res.forEach(function (row) {
                    let o = new Option(row.branch_name, row.branch_code);
                    $('#branch').append(o);

                    });
                }
            });
        }
    }
    // branch
    function branchFun(){
        var branch = $('#branch').val();
        if(branch){
            $.ajax({
                type : 'POST',
                url : "<?php echo e(url('/admin/get-operator-ajax')); ?>",
                data : {
                    "branch"  : branch,
                    "_token" : "<?php echo e(csrf_token()); ?>"
                },
                success : function (res){
                    // console.log(res);
                    $('#operator').empty();
                    var o = new Option("Select", "")
                    $('#operator').append(o);
                    res.forEach(function (row) {
                    let o = new Option(row.Operator_Name +' ('+row.Operator_Code+')', row.Operator_Code);
                    $('#operator').append(o);

                    });
                }
            });
        }
    }
</script>
</body>

</html>
<?php echo $__env->yieldContent('javascript'); ?>
<?php /**PATH /home/aks5g/public_html/aadhar.aks.5g.in/resources/views/admin/layouts/master.blade.php ENDPATH**/ ?>