<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
  <title>SEO Category List : <?php echo e(config('dashboard.config.dashboard_name')); ?></title>
  <?php if ($__env->exists('dashboard.partials.header')) echo $__env->make('dashboard.partials.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</head>
<body class="<?php echo e(config('dashboard.config._dashboard_css_body_class')); ?>"><!-- hold-transition dark-mode sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed -->
<div class="wrapper">
  <!-- Navbar -->
  <nav class="<?php echo e(config('dashboard.config._dashboard_css_topnav_class')); ?>">
      <?php if ($__env->exists('dashboard.partials.topnav')) echo $__env->make('dashboard.partials.topnav', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
      <?php if ($__env->exists('dashboard.partials.sidebar')) echo $__env->make('dashboard.partials.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>Category Type List</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">Category Type List</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>
    
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-12">
            <div class="card">
                
            </div>
          </div>
        </div>

              <div class="card">
                <div class="card-body">
                  <div class="row">
                    <div class="col-12 col-md-12 col-lg-12 order-2 order-md-1">
        
                        <div class="card card-info">
                          <div class="card-header">
                            <h3 class="card-title">Category type management</h3>
                          </div>
                          <!-- /.card-header -->
                            <?php if($errors->has('categoryID')): ?>
                                <ul>
                                    <?php $__currentLoopData = $errors->get('categoryID'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li style="color:red;font-weight:bold;"><?php echo e($error); ?></li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                            <?php endif; ?>
                          <!-- form start -->
                          <form class="form-horizontal" action="<?php echo e(localized_route('dashboard.admin.content.category.post')); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            <div class="card-body">
                              <div class="form-group row">
                                <label for="inputEmail3" class="col-sm-2 col-form-label">Category name th</label>
                                <div class="col-sm-10">
                                  <input type="text" name="cat_name" class="form-control" placeholder="Category name in th" required>
                                </div>
                              </div>
                              <div class="form-group row">
                                <label for="inputEmail3" class="col-sm-2 col-form-label">Category name en</label>
                                <div class="col-sm-10">
                                  <input type="text" name="cat_name_en" class="form-control" placeholder="Category name in en" required>
                                </div>
                              </div>
                            </div>
                            <!-- /.card-body -->
                            <div class="card-footer">
                              <button type="submit" class="btn btn-info">Submit</button>
                              <button type="reset" class="btn btn-danger">Reset</button>
                            </div>
                            <!-- /.card-footer -->
                          </form>
                        </div>
                      
                      <!-- /.card-header -->
                      <div class="card-body">
                        <table id="example1" class="table table-bordered table-striped">
                          <thead>
                          <tr>
                            <th>No.</th>
                            <th>Category Name</th>
                            <th>Category Name EN</th>
                            <th>Status Time</th>
                            <th>Action</th>
                          </tr>
                          </thead>
                          <tbody>
                                <?php
                                    $indCnt = 1;
                                ?>
                                <?php $__currentLoopData = $categoryList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=>$categoryInfo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                      <td><?php echo e($indCnt); ?></td>
                                      <td><?php echo e($categoryInfo->cat_name_th); ?></td>
                                      <td><?php echo e($categoryInfo->cat_name_en); ?></td>
                                      <td>
                                          <input name="status_flg" id="status_flg" type="checkbox" name="my-checkbox" <?php echo e($categoryInfo->status_flg === 'A' ? 'checked' : ''); ?> data-bootstrap-switch data-off-color="danger" data-on-color="success">
                                      </td>
                                      <td>
                                            <!-- Edit Button -->
                                            <a href="<?php echo e(localized_route('dashboard.admin.content.category.update', ['categoryID' => $categoryInfo->categoryID])); ?>" class="btn btn-sm btn-primary">
                                                <i class="fas fa-edit"></i>
                                            </a>
                                            <!-- Delete Button -->
                                            <form action="<?php echo e(localized_route('dashboard.admin.content.category.delete')); ?>" method="POST" style="display:inline;">
                                                <?php echo csrf_field(); ?>
                                                <input type="hidden" name="categoryID" value="<?php echo e($categoryInfo->categoryID); ?>">
                                                <button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure?')">
                                                    <i class="fas fa-trash-alt"></i>
                                                </button>
                                            </form>
                                      </td>
                                    </tr>
                                    <?php
                                        $indCnt++;
                                    ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        
                          </tbody>
                          <tfoot>
                          <tr>
                            <th>No.</th>
                            <th>Category Name</th>
                            <th>Category Name EN</th>
                            <th>Status Time</th>
                            <th>Action</th>
                          </tr>
                          </tfoot>
                        </table>
                      </div>
        
                    </div>
                  </div>
                </div>
                <!-- /.card-body -->
              </div>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <footer class="main-footer">
    <strong>Copyright &copy; <?php echo e(config('site.config.copyright')); ?> <a href="<?php echo e(config('site.config._live_site')); ?>"><?php echo e(config('site.config._sitename')); ?></a>.</strong>
    All rights reserved.
    <div class="float-right d-none d-sm-inline-block">
      <b>Version</b> <?php echo e(config('dashboard.config.dashboard_Veresion')); ?> Template <?php echo e(config('dashboard.config._dashboard_template_version')); ?>

    </div>
  </footer>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->

<!-- jQuery -->
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/jquery/jquery.min.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Bootstrap Switch -->
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<!-- Bootstrap 4 -->
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- DataTables  & Plugins -->
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/jszip/jszip.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/pdfmake/pdfmake.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/pdfmake/vfs_fonts.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/datatables-buttons/js/buttons.print.min.js"></script>
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
<!-- AdminLTE App -->
<script src="<?php echo e(config('dashboard.config._dashboard_main_path')); ?>dist/js/adminlte.min.js"></script>
<!-- Page specific script -->
<script>
  $(function () {
    $("#example1").DataTable({
      "responsive": true, "lengthChange": false, "autoWidth": false,
      "lengthMenu": [ [10, 25, 50, 100], [10, 25, 50, 100] ],
      "pageLength": 15,
      "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
    }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
    
    $("input[data-bootstrap-switch]").each(function(){
      $(this).bootstrapSwitch('state', $(this).prop('checked'));
    });
  });
</script>

</body>
</html>
<?php /**PATH /home3/cp260824/public_html/seoezypro.com/resources/views/dashboard/admin/content/category.blade.php ENDPATH**/ ?>