customer_id_field.php 440 B

123456789101112131415161718192021
  1. <?php
  2. namespace App;
  3. use App\Helpers\HtmlHelper;
  4. /**
  5. * @var int $customer_id
  6. */
  7. ?>
  8. <div class="mb-3">
  9. <label class="form-label" for="customer-id"><?=htmlspecialchars(__("Customer"))?></label>
  10. <select class="form-select" name="customer_id" id="customer-id">
  11. <option value=""><?=htmlspecialchars(__("Select Customer"))?></option>
  12. <?php
  13. HtmlHelper::renderOptions(Customer::getOptions(), $customer_id);
  14. ?>
  15. </select>
  16. </div>