<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<div class="col-lg-12">
					<ul class="breadcrumb">
						<li><i class="fa fa-home"></i><a href="/home">Home</a></li>
						<!--<li><a href="#">Forms</a></li>-->
						<li class="active">Modules</li>
					</ul>
				</div><br>
<div class="widget widget-table">
						<div class="widget-header">
							<h3><i class="fa fa-group"></i> MODULES</h3> <em>- List of Support Tickets</em>
							<div class="btn-group widget-header-toolbar">
								<a class="btn createMod" href="CreateModule" title="Focus" class="btn-borderless btn-focus"><i class="fa fa-plus"></i></a>
								<!--<a href="#" title="Expand/Collapse" class="btn-borderless btn-toggle-expand"><i class="fa fa-chevron-up"></i></a>
								<a href="#" title="Remove" class="btn-borderless btn-remove"><i class="fa fa-times"></i></a>-->
							</div>
							<!--<div class="widget-header-toolbar">
								<div class="label label-danger"><i class="fa fa-warning"></i> 2 Critical Messages</div>
							</div>-->
						</div>
<div class="widget-content">
							<table id="ticket-table" class="table table-sorting">
								<thead>
									<tr>
										<th>Serial No</th>
										<th>Module Name</th>
										<th>Model Url</th>
										<th>Class</th>
										<th>Icon</th>
										<th>Staus</th>
									</tr>
								</thead>
								<?php $i=1;?>
								<tbody>
								<?php $__currentLoopData = $data['Mod']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<tr>
										<td><?php echo $i++;?></td>
										<td><?php echo e($module->Modulename); ?></td>
										<td><?php echo e($module->mUrl); ?></td>
										<td><?php echo e($module->mUrl); ?></td>
										<td><?php echo e($module->mUrl); ?></td>
										<td><?php $a=$module->Mstatus;if($a='1'){echo"TRUE";}else{echo"FALSE";}?></td>
										<td>
										
 
    <input type="checkbox" class="toggle" data-toggle="toggle" data-size="mini" data-mid='<?php echo e($module->Mid); ?>' data-toggle-on="<?php echo e($module->Mstatus); ?>">
   
 

										</td>
										
										
									</tr>
									
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								</tbody>
							</table>
						</div>
						</div>
						<script>
						$('.createMod').click(function(e)
						{   
						    e.preventDefault();
							$('#sideMenu').load($(this).attr('href'));
						});
						$('.toggle').change(function(e){
						// Stat=$(this).data('toggle-on');
		                // Mid=$(this).data('mid');
						// alert(Stat);
						// alert(Mid);
						alert("HAi");
						});
						</script>