<link href="css/toggles.css" rel="stylesheet">
<link href="css/toggles-soft.css" rel="stylesheet">

<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="visit-stat-table" class="table table-sorting table-striped table-hover table-bordered datatable">
			<thead>
				<tr>
					<th>Serial No</th>
					<th>Module Name</th>
					<th>Model Url</th>
					<th>Class</th>
					<th>Icon</th>
					<th>Staus</th>
					<th></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); ?>">-->
						<div class="toggle toggle-soft" data-mid='<?php echo e($module->Mid); ?>' data-toggle-on="<?php echo e($module->Mstatus); ?>" data-toggle-height="20" data-toggle-width="50"></div>
						
						
						
					</td>
					
					
				</tr>
				
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</tbody>
		</table>
	</div>
</div>
<script src="assets/js/king-table.js"></script>
<script src="js/toggles.min.js"></script>
<script>
	$('.createMod').click(function(e)
	{   
		e.preventDefault();
		$('#sideMenu').load($(this).attr('href'));
	});
	$('.toggle').toggles();
	
	$('.toggle').click(function(e){
	e.preventDefault();
		Stat=$(this).data('toggle-active');
		Mid=$(this).data('mid');
		alert(Stat);
	});
</script>