<?php $__env->startSection('content'); ?>

<div class="page-titles">
  <h2> Crud Generator  <small>  Manage your module applications </small> </h2>
</div>

<div class="toolbar-nav">
    <div class="row">
        <div class="col-md-6">
             
                <div class="btn-group">
                    <a  href="<?php echo e(url('sximo/module/create')); ?>" onclick="SximoModal(this.href ,'Create Module'); return false" class="btn  btn-sm btn-primary">  Create Module </a>
                    <a href="<?php echo e(url('sximo/module/package')); ?>" class="btn  btn-sm btn-success post_url"> Backup Module </a>
                    <a href="<?php echo e(url('sximo/tables')); ?>" class="btn  btn-danger btn-sm">  Database Table </a>
                    <a href="<?php echo e(url('sximo/server/repository')); ?>" class="btn btn-warning  btn-sm">  Repositories</a>




                </div>
        </div>
        <div class="col-md-6 text-right">
                <a href="javascript:;" class="btn  btn-sm btn-info" onclick="$('.unziped').toggle()"><i class="fa fa-upload"></i> Install Module </a>
        </div>
    </div>            
</div>




                
                <div class="col-md-4  offset-md-4">
                <div class="p-sm m-b unziped" style="display:none; padding: 5px 5px 30px ; margin-bottom:10px;">
                   
                        <?php echo Form::open(array('url'=>'sximo/module/install/', 'class'=>'breadcrumb-search','files' => true , 'parsley-validate'=>'','novalidate'=>' ')); ?>

                        <b>Select File <small>( Module zip installer ) </small></b><br />
                        <div class="fileUpload btn " > 
                            <span>  <i class="fa fa-copy"></i>  </span>
                            <div class="title">  Upload Zip Installer </div>
                            <input type="file" name="installer" class="upload"    accept=".zip,.rar,.7zip"      />
                        </div>
                        <button type="submit" class="btn btn-primary btn-sm " name="submit" ><i class=" fa fa-cloud-upload "></i> Install Now  </button>

                        
                        </form>
                    
                </div>  
                </div>      
           
               

                    <ul class="nav nav-tabs" style="margin-bottom:10px;">
                        <li  class="nav-item"  ><a class="nav-link <?php if($type =='addon'): ?> active <?php endif; ?>" href="<?php echo e(url('sximo/module')); ?>"> <?php echo e(Lang::get('core.tab_installed')); ?>  </a></li>
                        <li class="nav-item "><a class="nav-link <?php if($type =='core'): ?> active <?php endif; ?>" href="<?php echo e(url('sximo/module?t=core')); ?>"> <?php echo e(Lang::get('core.tab_core')); ?></a></li>
                    </ul>     

                    <?php if($type =='core'): ?>

                     <div class="infobox infobox-info ">
                      <button type="button" class="close" data-dismiss="alert"> x </button>  
                      <p>   Do not <b>Rebuild</b> or Change any Core Module </p>    
                    </div>  
                     
                    <?php endif; ?>

        

    <div class="card">
    <div class="card-body">
        <?php echo Form::open(array('url'=>'sximo/module/package#', 'class'=>'form-horizontal' ,'ID' =>'SximoTable' )); ?>


        <?php if(count($rowData) >=1): ?> 
        <table class="table table-hover table-striped ">
           <thead>
            <tr>
                <th class="thead">Action</th>                 
                <th class="thead"><input type="checkbox" class="checkall minimal-green" /></th>
                <th class="thead">Module</th>
                <th class="thead">Type</th>
                
                <th class="thead">Controller</th>
                <th class="thead">Database</th>
                <th class="thead">PRI</th>
                <th class="thead">Created</th>

            </tr>
            </thead>
         <tbody>
        <?php $__currentLoopData = $rowData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>        
                <td>
                <div class="btn-group ">
                <button class="btn  btn-sm dropdown-toggle" data-toggle="dropdown"> Action </span>
                </button>
                    <ul  class="dropdown-menu icons-right " style="z-index: 999999">
                        <?php if($type != 'core'): ?>
                        <li class="nav-item"><a class="nav-link" href="<?php echo e(url($row->module_name)); ?>"> <?php echo e(Lang::get('core.btn_view')); ?> Module </a></li>
                        <li class="nav-item"><a class="nav-link" href="<?php echo e(url('sximo/module/duplicate/'.$row->module_id)); ?>" onclick="SximoModal(this.href,'Duplicate/Clone Module'); return false;" > Duplicate/Clone </a></li>                       
                        <?php endif; ?>
                        <li class="nav-item"><a class="nav-link" href="<?php echo e(url('sximo/module/config/'.$row->module_name)); ?>"> <?php echo e(Lang::get('core.btn_edit')); ?></a></li> 
                        
                        <?php if($type != 'core'): ?>
                        <li class="nav-item"><a class="nav-link" href="javascript://ajax" onclick="SximoConfirmDelete('<?php echo e(url('sximo/module/destroy/'.$row->module_id)); ?>')"> <?php echo e(Lang::get('core.btn_remove')); ?></a></li>
                        <li class="divider"></li>
                        <li class="nav-item"><a class="nav-link"  onclick="SximoModal('<?php echo e(url('sximo/module/build/'.$row->module_name)); ?>','Rebuild Module ')" href="javascript:;"> Rebuild All Codes</a></li>
                        <?php endif; ?>
                    </ul>
                </div>                  
                </td>
                <td>
                 
                <input type="checkbox" class="ids minimal-green" name="id[]" value="<?php echo e($row->module_id); ?>"  id="val-<?php echo e($row->module_id); ?>"/> 
                <label for="val-<?php echo e($row->module_id); ?>"></label>
            </td>
                <td><?php echo e($row->module_title); ?> </td>
                <td><?php echo e($row->module_type); ?> </td>
                <td><?php echo e($row->module_name); ?> </td>

                <td><?php echo e($row->module_db); ?> </td>
                <td><?php echo e($row->module_db_key); ?> </td>
                <td><?php echo e(date("F d ,Y ", strtotime($row->module_created))); ?> </td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 
        </tbody>        
        </table>
        <?php echo Form::close(); ?>

      
        <?php else: ?>

        <p class="text-center" style="padding:50px 0;"><?php echo e(Lang::get('core.norecord')); ?> 
        <br /><br />
        <a href="<?php echo e(url('sximo/module/create')); ?>" onclick="SximoModal(this.href ,'Create Module'); return false" class="btn btn-primary btn-sm "> <?php echo e(Lang::get('core.fr_createmodule')); ?> </a>
         </p>   
        <?php endif; ?>
    </div>
</div>


  <script language='javascript' >
  jQuery(document).ready(function($){
    $('.post_url').click(function(e){
      e.preventDefault();
      if( ( $('.ids',$('#SximoTable')).is(':checked') )==false ){
        alert( $(this).attr('data-title') + " not selected");
        return false;
      }
      $('#SximoTable').attr({'action' : $(this).attr('href') }).submit();
    });


  })
  </script>        

 



<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u876998723/domains/nikochannel.com/public_html/DashboardKebun/resources/views/sximo/module/index.blade.php ENDPATH**/ ?>