
<?php $__env->startSection('content'); ?>
    <div class="page-content">
        <div class="container-fluid">
            <div class="box-typical box-typical-padding">
                <div class="row">
                    <div class="col-lg-3">
                        <div class="form-group">
                            <label>User Name *</label>
                            <input type="text" name="username" id="username" class="form-control" placeholder="User Name" />
                            <small id="msg_username" class="form-text text-muted" style="display: none;"></small>
                        </div>
                    </div>
                    <div class="col-lg-3">
                        <div class="form-group">
                            <label>Password *</label>
                            <input type="password" name="userpass" id="userpass" class="form-control"
                                placeholder="Password" />
                            <small id="msg_userpass" class="form-text text-muted" style="display: none;"></small>
                        </div>
                    </div>
                    <div class="col-lg-3">
                        <div class="form-group">
                            <label>Branches / Admin</label>
                            <select class="form-control" name="branch_id" id="branch_id">
                                <option value="" selected>Select</option>
                                <option value="0">Admin</option>
                                <?php $__currentLoopData = $branches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $br): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($br->branch_id); ?>"><?php echo e($br->branch_name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            <small id="msg_userbranch" class="form-text text-muted" style="display: none;"></small>
                        </div>
                    </div>
                    <div class="col-lg-2">
                        <div class="form-group">
                            <label>&nbsp;</label>
                            <button type="button" id="btn-add-users" class="btn btn-success m-t-40">Submit</button>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-12">
                        <h4> Permissions </h4>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="dashboard" disabled> Dashboard
                    </div>
                    <!-- <div class="col-md-2">
                          <input type="checkbox" class="pchk" value="sales" disabled> Sales
                        </div> -->
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="quotations" disabled> Quotations
                    </div>
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="purchase" disabled> Purchase
                    </div>
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="stock" disabled> Stock
                    </div>
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="expenses" disabled> Expenses
                    </div>
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="services" disabled> Services
                    </div>
                    <!-- <div class="col-md-2 hidden">
                          <input type="checkbox" class="pchk" value="offers" disabled> Offers
                        </div> -->
                    <!-- <div class="col-md-2">
                          <input type="checkbox" class="pchk" value="employees" disabled> Employees
                        </div> -->
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="users" disabled> Users
                    </div>
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="customers" disabled> Customers
                    </div>
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="invoice_header" disabled> Invoice Header
                    </div>
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="db_backup" disabled> Backup DB
                    </div>
                    <div class="col-md-2">
                        <input type="checkbox" class="pchk" value="reports" disabled> Reports
                    </div>

                </div>
                <br>
                <br>
                <div class="row">
                    <div class="col-md-12">
                        <table id="usersTable" class="table table-striped table-bordered dt-responsive nowrap"
                            width="100%">
                            <thead>
                                <tr>
                                    <th>Sno</th>
                                    <th>User Name</th>
                                    <th>Password</th>
                                    <th>Branch</th>
                                    <th>Dashboard</th>
                                    <th>Quotations</th>
                                    <th>Purchase</th>
                                    <th>Stock</th>
                                    <th>Expenses</th>
                                    <th>Services</th>
                                    <th>Users</th>
                                    <th>Customers</th>
                                    <th>Invoice Header</th>
                                    <th>Backup DB</th>
                                    <th>Reports</th>
                                    <th>Stock Actions</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>

                            </tbody>

                        </table>
                    </div>
                </div>
            </div>
        </div><!--.container-fluid-->
        <div id="user-edit-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
            aria-hidden="true">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-header">
                         <button type="button" class="modal-close" data-dismiss="modal">
                            <i class="font-icon-close-2"></i>
                        </button>
                        <h4 class="modal-title" id="myModalLabel">Edit User</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row">
                            <div class="col-lg-4">
                                <input type="hidden" name="user_id" id="e_user_id">
                                <div class="form-group">
                                    <label>Username *</label>
                                    <input type="text" name="username" id="e_username" class="form-control"
                                        placeholder="User Name" />
                                    <small id="msg_e_username" class="form-text text-muted"
                                        style="display: none;"></small>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label>Password *</label>
                                    <input type="password" name="userpass" id="e_userpass" class="form-control"
                                        placeholder="Password" />
                                    <small id="msg_e_userpass" class="form-text text-muted"
                                        style="display: none;"></small>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label>Branches /Admin *</label>
                                    <select class="form-control" name="branch_id" id="e_branch_id">
                                        <option value="" selected>Select</option>
                                        <option value="0">Admin</option>
                                        <?php
                                        foreach ($branches as $br) {
                                            echo '<option value="' . $br->branch_id . '">' . $br->branch_name . '</option>';
                                        }
                                        ?>
                                    </select>
                                    <small id="msg_e_userbranch" class="form-text text-muted"
                                        style="display: none;"></small>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <h4> Permissions </h4>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_dashboard" value="dashboard"> Dashboard
                            </div>
                            <!--  <div class="col-md-2">
                       <input type="checkbox" class="epchk" id="per_sales" value="sales"> Sales
                     </div> -->
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_quotations" value="quotations"> Quotations
                            </div>
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_purchase" value="purchase"> Purchase
                            </div>
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_stock" value="stock"> Stock
                            </div>
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_expenses" value="expenses"> Expenses
                            </div>
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_services" value="services"> Services
                            </div>
                            <!-- <div class="col-md-2">
                       <input type="checkbox" class="epchk" id="per_offers" value="offers"> Offers
                     </div> -->
                            <!-- <div class="col-md-2">
                       <input type="checkbox" class="epchk" id="per_employees" value="employees"> Employees
                     </div> -->
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_users" value="users"> Users
                            </div>
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_customers" value="customers"> Customers
                            </div>
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_invoice_header" value="invoice_header">
                                Customers
                            </div>
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_db_backup" value="db_backup"> Backup DB
                            </div>
                            <div class="col-md-2">
                                <input type="checkbox" class="epchk" id="per_reports" value="reports"> Reports
                            </div>
                            <!-- <div class="col-md-3">
                       <input type="checkbox" class="epchk" id="per_stk_actions" value="stk_actions"> Stock Actions
                     </div> -->
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default waves-effect" data-dismiss="modal">Close</button>
                        <button type="button" id="btn-update-users" class="btn btn-primary">Save Changes</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
    </div><!--.page-content-->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('customjs'); ?>
    <script src="<?php echo e(asset('custom_js/users.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.template.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Freelance\BigWishes\work\resources\views/admin/users.blade.php ENDPATH**/ ?>