<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
  <title><?php echo e(config('dashboard.config.dashboard_name')); ?> Category List</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="main-header navbar navbar-expand navbar-white navbar-light">
      <?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>Update Content Category type : </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 List</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

      <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">Edit Category</h3>
                  </div>
                  <!-- /.card-header -->
                    <?php if($errors->has('cat_name')): ?>
                        <ul>
                            <?php $__currentLoopData = $errors->get('cat_name_en'); $__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(); ?>
                    <input type="hidden" name="mode" value="update">
                    <input type="hidden" name="categoryID" value="<?php echo e($editCategoryInfo[0]['categoryID']); ?>">
                    <div class="card-body">
                      <div class="form-group row">
                        <label for="inputEmail3" class="col-sm-2 col-form-label" style="text-align:right;">Status</label>
                        <div class="col-sm-10">
                          <input name="status_flg" value="A" id="status_flg" type="checkbox" name="my-checkbox" <?php echo e($editCategoryInfo[0]['status_flg'] === 'A' ? 'checked' : ''); ?> data-bootstrap-switch data-off-color="danger" data-on-color="success">
                        </div>
                        <label for="inputEmail3" class="col-sm-2 col-form-label" style="text-align:right;">Ordering</label>
                        <div class="col-sm-10">
                          <input name="ordering" value="<?php echo e($editCategoryInfo[0]['ordering']); ?>" id="ordering" type="text" class="form-control" placeholder="0, 1 or number" required>
                        </div>
                      </div>
                      <div class="form-group row">
                        <label for="inputEmail3" class="col-sm-2 col-form-label" style="text-align:right;">Type Name</label>
                        <div class="col-sm-10">
                          <input type="text" name="cat_name_th" class="form-control" placeholder="Category Name Thai" value="<?php echo e($editCategoryInfo[0]['cat_name_th']); ?>" required>
                        </div>
                      </div>
                      <div class="form-group row">
                        <label for="inputEmail3" class="col-sm-2 col-form-label" style="text-align:right;">Type Name EN</label>
                        <div class="col-sm-10">
                          <input type="text" name="cat_name_en" class="form-control" placeholder="Category Name English" value="<?php echo e($editCategoryInfo[0]['cat_name_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>
                Back to type list
            </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/categoryUpdate.blade.php ENDPATH**/ ?>