<?php $title=__('categories.edit_category', 'Edit Category'); ob_start(); ?>
<h3><?= __('categories.edit_category', 'Edit Category') ?></h3>
<form method="POST" action="/samanta_crm/categories/<?= $category['id'] ?>/update">
  <div class="mb-2"><label class="form-label"><?= __('common.name', 'Name') ?> *</label><input name="name" value="<?= htmlspecialchars($category['name']) ?>" class="form-control form-control-sm" required></div>
  <div class="mb-2"><label class="form-label"><?= __('common.description', 'Description') ?></label><textarea name="description" class="form-control form-control-sm" rows="2"><?= htmlspecialchars($category['description']) ?></textarea></div>
  <div class="mb-2"><label class="form-label"><?= __('common.sort_order', 'Sort Order') ?></label><input name="sort_order" value="<?= htmlspecialchars($category['sort_order']) ?>" class="form-control form-control-sm"></div>
  <button class="btn btn-primary"><?= __('common.update', 'Update') ?></button> <a href="/samanta_crm/categories" class="btn btn-secondary"><?= __('common.cancel', 'Cancel') ?></a>
</form>
<?php $content=ob_get_clean(); include '../app/Views/layout.php'; ?>
