<?php $title='Add Report Flag'; ob_start(); ?>
<h3>Add Report Flag</h3>
<form method="POST" action="/samanta_crm/report-flags">
  <div class="mb-2"><label class="form-label">Code *</label><input name="code" class="form-control form-control-sm" required></div>
  <div class="mb-2"><label class="form-label">Label *</label><input name="label" class="form-control form-control-sm" required></div>
  <div class="mb-2"><label class="form-label">Description</label><textarea name="description" class="form-control form-control-sm" rows="2"></textarea></div>
  <div class="mb-2"><label class="form-label">View Type</label>
    <select name="view_type" class="form-select form-select-sm">
      <option value="category_summary">Category Summary Table</option>
      <option value="category_with_customers">Category Table + Customers Column Summary</option>
    </select>
  </div>
  <div class="form-check form-check-inline mb-2">
    <input class="form-check-input" type="checkbox" id="rf_show_additional" name="show_additional">
    <label class="form-check-label" for="rf_show_additional">Show Additional Products</label>
  </div>
  <div class="form-check form-check-inline mb-2">
    <input class="form-check-input" type="checkbox" id="rf_show_blocked" name="show_blocked">
    <label class="form-check-label" for="rf_show_blocked">Show Blocked Products</label>
  </div>
  <div class="mb-2"><label class="form-label">Sort Order</label><input name="sort_order" value="0" class="form-control form-control-sm"></div>
  <div class="form-check mb-2"><input type="checkbox" class="form-check-input" id="rf_active" name="is_active" checked><label for="rf_active" class="form-check-label"><?= __("common.active", "Active") ?></label></div>
  <button class="btn btn-primary"><?= __("common.save", "Save") ?></button> <a class="btn btn-secondary" href="/samanta_crm/report-flags"><?= __("common.cancel", "Cancel") ?></a>
</form>
<?php $content=ob_get_clean(); include '../app/Views/layout.php'; ?>
