 <?php echo Form::open(array('url'=>'sximo/module/dobuild/'.$module_name, 'class'=>'form-horizontal sximo-form','id'=>'rebuildForm')); ?>

    <div class="text-center result"></div>
    <p class="text-center" style="font-weight: bold;">
       
        <span class="text-center"> <i class="icon-arrow-down3"></i> </span>
    </p>
  <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4">  </label>
    <div class="col-md-8">
    	 <h6> Build All Codes</h6>  <br />
      <a href="<?php echo e(url('sximo/module/rebuild/'.$module_id)); ?>" class="btn btn-sm btn-warning" id="rebuild" ><i class="fa fa-refresh"></i> Rebuild All Codes </a> 
      </div>
  </div> 
<hr />
    <p class="text-center " style="font-weight: bold;">
    
        <span class="text-center"> <i class="icon-arrow-down3"></i> </span>
    </p>
 <h5> Backend View </h5>
  <hr />
  <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4"> </label>
	<div class="col-md-8">
	 	<h6>Or Build Separate Codes </h6><br />
	 </div> 
  </div>  
  <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4">Controller </label>
	<div class="col-md-8">
	  <label class="">
	  	<input name="controller" type="checkbox" id="controller" value="1" class="filled-in">
	  	<label for="controller"> <code> <?php echo e(ucwords($module)); ?>Controller.php </code></label>
	  <br />will be replaced with new code 
	  </label>
	 </div> 
  </div>  

  <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4">Model </label>
	<div class="col-md-8">
	  <label class="">
	  	<input name="model" type="checkbox" id="model" value="1"  class="filled-in">
		 <label for="model"><code><?php echo e(ucwords($module)); ?>.php</code> Model </label> <br />will be replaced with new code 
	  </label>
	 </div> 
  </div>  
  
  <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4">Grid Table </label>
	<div class="col-md-8">
	  <label class="">
	  <input name="grid" type="checkbox" id="grid" value="1"  class="filled-in">
	  <label for="controller"> <code>index.blade.php</code>  at <code>views/<?php echo e($module); ?>/ </code> folder </label> <br /> will be replaced with new code 
	  </label>
	 </div> 
  </div>  

  <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4">Form </label>
	<div class="col-md-8">
	  <label class="">
	  	<input name="form" type="checkbox" id="form" value="1" checked  class="filled-in">
	    <label for="form"> <code>form.blade.php</code>  at <code>views/<?php echo e($module); ?>/ </code> folder </label>
	    <br /> will be replaced with new code 
	 
	  </label>
	 </div> 
  </div>        
  
  <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4">View Detail  </label>
	<div class="col-md-8">
	  <label class="">
	  <input name="view" type="checkbox" id="view" value="1" checked  class="filled-in">
       <label for="view"> <code>view.blade.php</code>  at <code>views/<?php echo e($module); ?>/ </code> folder </label>
       <br /> will be replaced with new code 
	  </label>
	   <input name="rebuild" type="hidden" id="rebuild" value="ok">
	   <input name="module_id" type="hidden" id="module_id" value="<?php echo e($module_id); ?>">
	 </div> 
  </div>   
	<hr />
 <h5> Frontend  View </h5>
  	<hr />
  
  <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4">Frontend Grid   </label>
	<div class="col-md-8">
	  <label class="">
	  <input name="frontgrid" type="checkbox" id="frontgrid" value="1"  class="filled-in">
      <label for="frontgrid"> <code>index.blade.php</code>  at <code>views/<?php echo e($module); ?>/public/ </code> folder </label>
      <br /> will be replaced with new code 
	  </label>
	   
	 </div> 
  </div>

    <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4">Frontend View Detail  </label>
	<div class="col-md-8">
	  <label class="">
	  <input name="frontview" type="checkbox" id="frontview" value="1"  class="filled-in" >
      <label for="frontview"> <code>view.blade.php</code>  at <code>views/<?php echo e($module); ?>/public/ </code> folder </label> <br /> will be replaced with new code 
	  </label>
	  
	 </div> 
  </div>

   <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4">Frontend Form  </label>
	<div class="col-md-8">
	  <label class="">
	  <input name="frontform" type="checkbox" id="frontform" value="1"  class="filled-in" >
      <label for="frontform"> <code>form.blade.php</code>  at <code>views/<?php echo e($module); ?>/public </code> folder </label> <br /> will be replaced with new code 
	  </label>
	   
	 </div> 
  </div> 


   <div class="form-group row">
    <label for="ipt" class=" control-label col-md-4"></label>
	<div class="col-md-8">
	  <button type="submit" name="submit" id="submitRbld" class="btn btn-sm btn-warning"> Re-Build Now</button>
	 </div> 
  </div>       

 <?php echo Form::close(); ?>

 <script type="text/javascript">
	$(function(){

        $('#rebuild').click(function () {
            var url = $(this).attr("href");
            $(this).html('<i class="icon-spinner7"></i> Processing .... ');
            $.get(url, function( data ) {
            	console.log(data)
              $( ".result" ).html( '<p class="alert alert-success">'+data.message+'</p>' );
             $('#rebuild').html('<i class="icon-spinner7"></i>  Rebuild All Codes ');
            });
            return false;
        })
        /*
		$('input[type="checkbox"],input[type="radio"]').iCheck({
			checkboxClass: 'icheckbox_square-red',
			radioClass: 'iradio_square-red',
		});	
		*/

		$('#rebuildForm').submit(function(){
			var act = $(this).attr('action');
			 $('#submitRbld').html('<i class="icon-spinner7"></i> Processing .... ');
			$.post(act,$(this).serialize(),
			    function(data){
			    	if(data.status=='success')
			    	{
			    		$.get(data.url, function( json ) {
				            $( ".result" ).html( '<p class="alert alert-success">'+json.message+'</p>' );
				            $('#submitRbld').html('<i class="icon-spinner7"></i>  Rebuild Now ');
				             //alert(json.message)
				        });	
			    	}
			      
			    }, "json");
			return false;
		});
		
	})
 </script>

<?php /**PATH /home/u876998723/domains/nikochannel.com/public_html/DashboardKebun/resources/views/sximo/module/build.blade.php ENDPATH**/ ?>