<!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>Branch Panel</title>
    <link rel="shortcut icon" type="image/x-icon" href="<?php echo e(url('/branch')); ?>/favicon.ico">
    <link href="<?php echo e(url('/branch')); ?>/css/styles.css" rel="stylesheet" />

    <!-- old bootstrap start -->
    <link href="<?php echo e(url('/branch')); ?>/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>

<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('/branch/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-->
        <form class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0">
        </form>

        <h4 class="panelhd"><?php echo e(Session::get('branchsession')->branch_name); ?></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"><?php echo e(Session::get('branchsession')->branch_name); ?>!</h6>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="<?php echo e(url('/branch/change-password')); ?>">Change Password</a>
                    <a class="dropdown-item" href="<?php echo e(url('branch/logout')); ?>">Logout</a>
                </div>
            </li>
        </ul>
        <marquee width="80%" hegiht="" direction="left" class="text-danger" >
            <?php echo e(App\Models\AlertMessage::where('id','1')->orderBy('id','DESC')->first()->content); ?>

            </marquee>
    </nav>
    <div id="layoutSidenav">
        <div id="layoutSidenav_nav">
             <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('branch/dashboard') ? 'active' : ''); ?> "
                            href="<?php echo e(url('branch/dashboard')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-tachometer-alt"></i></div> Dashboard
                        </a>
                        <?php if(DB::table('model_has_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_id','54']])->first()): ?>
                        <a class="nav-link <?php echo e(Request::is('branch/attendance') ? 'active' : ''); ?>"
                            href="<?php echo e(route('branch.attendance.index')); ?>">
                            <div class="sb-nav-link-icon"><i class="fa fa-clock-o"></i></div> Attendance
                        </a>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_id','89']])->first()): ?>
                        <a class="nav-link <?php echo e(Request::is('branch/attendance/attendance-operators') ? 'active' : ''); ?>"
                            href="<?php echo e(route('branch.attendance.post.operator')); ?>">
                            <div class="sb-nav-link-icon"><i class="fa fa-clock-o"></i></div> Operator Attendance show
                        </a>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_type','41']])->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_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_id','55']])->first()): ?>

                                <a class="nav-link <?php echo e(Request::is('branch/operator-upload-excel') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('branch/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_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_id','56']])->first()): ?>

                                <a class="nav-link <?php echo e(Request::is('branch/view-operator') ? 'active' : ''); ?>"
                                    href="<?php echo e(url('branch/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_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_id','57']])->first()): ?>

                        <a class="nav-link <?php echo e(Request::is('branch/enrollment-client') ? 'active' : ''); ?>"
                            href="<?php echo e(url('branch/enrollment-client')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-inbox"></i></div>Daily Enrolment Update(MIS)
                        </a>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_id','58']])->first()): ?>


                        <a class="nav-link <?php echo e(Request::is('branch/enrollment-client-view') ? 'active' : ''); ?>"
                            href="<?php echo e(url('branch/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_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_id','65']])->first()): ?>

                        <a class="nav-link <?php echo e(Request::is('branch/report/fund-deposit-report') ? 'active' : ''); ?>"
                            href="<?php echo e(url('branch/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_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_id','64']])->first()): ?>

                        <a class="nav-link <?php echo e(Request::is('branch/report/pspl-report') ? 'active' : ''); ?>"
                            href="<?php echo e(url('branch/report/pspl-report')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-list"></i></div> PSPL Report
                        </a>
                        <?php endif; ?>
                        <?php if(DB::table('model_has_permissions_branch')->where([['branch_code',Session::get('branchsession')->branch_code ],['model_id','63']])->first()): ?>

                        <a class="nav-link <?php echo e(Request::is('branch/receive-amount-list') ? 'active' : ''); ?>" href="<?php echo e(url('branch/receive-amount-list')); ?>">
                            <div class="sb-nav-link-icon"><i class="fas fa-inbox"></i></div> Daily Payment Received
                        </a>
                        <?php endif; ?>
                    </div>
                </div>
                <!-- <div class="sb-sidenav-footer">
                        <div class="small">Logged in as:</div>
                        Start Bootstrap
                    </div> -->
            </nav>
        </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('/branch')); ?>/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('/branch')); ?>/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('/branch')); ?>/assets/demo/chart-area-demo.js"></script>
    <script src="<?php echo e(url('/branch')); ?>/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('/branch')); ?>/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('/branch')); ?>/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($) {
        $('#operator').select2();
        $('#branch').select2();
        $('#eacode').select2();
        $('#state').select2();
        $('#district').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>
    <script>
    //eacode
    function eacodeFun(){

    }
    // state
    function stateFun(){
        var state = $('#state').val();
        if(state){
            $.ajax({
                type : 'POST',
                url : "<?php echo e(url('/branch/get-district-ajax')); ?>",
                data : {
                    "state"  : state,
                    "_token" : "<?php echo e(csrf_token()); ?>"
                },
                success : function (res){
                    // console.log(res);
                    $('#district').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('/branch/get-operator-ajax')); ?>",
                data : {
                    "district"  : district,
                    "_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/branch/layouts/master.blade.php ENDPATH**/ ?>