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



Xuất sứ sản phẩm



<?php $__env->stopSection(); ?>



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



<form name="formbk" method="post" action="">



<div class="">



  <div class="form-group">



    <?php if(Session::get('user')->add_product_cate == 1): ?> <a class="btn btn-success" href="<?php echo e(url('admin/add-country-product')); ?>">Thêm hãng</a> <?php endif; ?>



    <?php if(Session::get('user')->edit_product_cate == 1): ?> <input class="btn btn-danger" type="submit" name="delall" value="Xóa" onclick="return confirm('Bạn chắc chắn muốn xóa!')"> <?php endif; ?>



  </div>



  <div class="clearfix"></div>



  <div class="row">



    <div class="col-md-12 col-sm-12 col-xs-12">



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



      <div class="x_panel">



        <div class="x_title">



          <h2>Xuất sứ sản phẩm</small></h2>



          <ul class="nav navbar-right panel_toolbox">



            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li>



            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>



              <ul class="dropdown-menu" role="menu">



                <li><a href="#">Settings 1</a> </li>



                <li><a href="#">Settings 2</a> </li>



              </ul>



            </li>



            <li><a class="close-link"><i class="fa fa-close"></i></a> </li>



          </ul>



          <div class="clearfix"></div>



        </div>



        <div class="x_content table-responsive">



            <table id="datatable" class="table table-striped jambo_table bulk_action">



              <thead>



                <tr>



                  <th><input type="checkbox" name="checkAll" class="flat" id="check-all"></th>



                  <th style="">Stt</th>



                  <th>Tiêu đề</th>



                  <?php if(Session::get('user')->edit_product_cate == 1): ?> <th>Action</th> <?php endif; ?>



                </tr>



              </thead>



              <tbody>



              <?php foreach($list_country as $items): ?>



              <?php if($items->id > 1): ?>



                <tr>



                  <td><input type="checkbox" class="check_del flat" name="check_del[]" value="<?php echo e($items->id); ?>"></td>



                  <td><?php echo e($items->id); ?></td>



                  <td><strong><?php echo e($items->name); ?></strong></td>



                  <?php if(Session::get('user')->edit_product_cate == 1): ?> <td><a href="<?php echo e(domain); ?>admin/edit-country-product/<?php echo e($items->id); ?>" class="btn btn-warning btn-xs"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i></a> <a href="<?php echo e(domain); ?>admin/del-country-product/<?php echo e($items->id); ?>" onclick="return confirm('Bạn chắc chắn muốn xóa!')" class="btn btn-danger btn-xs"><i class="fa fa-times" aria-hidden="true"></i></a></td> <?php endif; ?>



                </tr>



                <?php endif; ?>



                <?php endforeach; ?>



              </tbody>



            </table>



            <script type="text/javascript">



              function DoCheck(status,FormName,from_)



              {



                  var alen=eval('document.'+FormName+'.elements.length');



                  alen=(alen>1)?eval('document.'+FormName+'.checkone.length'):0;



                  if (alen>0)



                  {



                      for(var i=0;i<alen;i++)



                          eval('document.'+FormName+'.checkone[i].checked=status');



                  }



                  else



                  {



                      eval('document.'+FormName+'.checkone.checked=status');



                  }



                  if(from_>0)



                      eval('document.'+FormName+'.checkall.checked=status');



              }



            </script>



        </div>



      </div>



    </div>



  </div>



</div>



<?php echo e(csrf_field()); ?>







</form>



<?php $__env->stopSection(); ?>



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