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

  <div id="content-header">
    <div id="breadcrumb"> <a href="<?php echo e(url('/admin')); ?>" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> <a href="<?php echo e(url('/admin/permission')); ?>">Permission Management</a> <a href="javascript:void(0);" class="current">Listing</a> </div>
  </div>
  
<div id="filter_wrap">
  <div id="filter">
  <form name="search_form" id="search_form" action="" method="get">
  <table border="0" cellspacing="0" cellpadding="0" class="tbl_filter">
    <tr>
      <td>Keywords: <input type="text" name="keyword" value="<?php echo isset($_GET['keyword']) ? $_GET['keyword']: ''?>" /></td>
    
    <td><input type="hidden" name="from_sch" id="from_sch" value="0" /><input type="submit" name="Search" id="Search" class="btn btn_grey" value="Search" /></td>
    </tr>
  </table>
  </form>
<div class="clear"></div>
  </div><!--filter-->
</div>
<!--filter_wrap-->
  
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        
		<?php echo parseSuccessMessageLaravel();?>
		
        <div class="widget-box">
          <div class="widget-content nopadding">
		  
		  	<div class="title_btn">
				<h2>Listing</h2>
				<a href="<?php echo e(URL('/admin/permission/create')); ?>" class="btn btn_tac right m_all_10">+ Add</a>
			</div>
			<div class="clear"></div>
			
            <table class="table table-bordered data-table">
              <thead>
                <tr>
				<th width="60">ID</th>
				<th width="20%">Title</th>
				<th width="20%">Chinese Title</th>
				<th>Action Mark</th>
				<th width="10%">Sort</th>
				<th width="10%">Modified Time</th>
				<th width="180">Actions</th>
				</tr>
              </thead>
			  
              <tbody>
			  <?php foreach($object_list as $object): ?>
				<tr>
					<td><?php echo e($object->id); ?></td>
					<td class="font_b"><?php echo e($object->title); ?></td>
					<td class="font_b"><?php echo e($object->title_cn); ?></td>
					<td class="font_b"><?php echo e($object->action_mark); ?></td>
					<td><?php echo e($object->orderby); ?></td>
					<td><?php echo e($object->updated_at); ?></td>
					<td>
						<a href="<?php echo e(URL('admin/permission/details/'.$object->id)); ?>">Details</a> | 
						<a href="<?php echo e(URL('admin/permission/edit/'.$object->id)); ?>">Edit</a>
					</td>
				</tr>
				
					<?php $child_list = $object->getChildList();?>
					<?php if( !empty($child_list) ):?>
						<?php foreach($child_list as $child): ?>
						<tr>
							<td></td>
							<td>|--- <?php echo e($child->title); ?></td>
							<td><?php echo e($child->title_cn); ?></td>
							<td><?php echo e($child->action_mark); ?></td>
							<td></td>
							<td><?php echo e($child->updated_at); ?></td>
							<td>
								<a href="<?php echo e(URL('admin/permission/details/'.$child->id)); ?>">Details</a> | 
								<a href="<?php echo e(URL('admin/permission/edit/'.$child->id)); ?>">Edit</a>
							</td>
						</tr>
						<?php endforeach; ?>
					<?php endif;?>
				<?php endforeach; ?>
				
				<?php if( $pagination!='' ):?>
				<tr>
					<td colspan="7"><div class="pagination"><?php echo $pagination;?></div></td>
				</tr>
				<?php endif;?>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>