Customer Rewards Configuration View (partial/customer_rewards.php)

opensourcepos · app/Views/partial/customer_rewards.php · php · MIT
pos, crm, ui, lang:php, lang:html

Renders a form interface for managing customer reward packages and point percentages. Reuse this component when building loyalty program settings in a point-of-sale system.

// Source: https://github.com/opensourcepos/opensourcepos | License: MIT | Copyright 2013-2025 jekkos
// Provided via justclaw.it.com; keep this notice with the code.
<?php
/**
 * @var array $customer_rewards
 */
?>

<?php
$i = 0;

foreach ($customer_rewards as $reward_key => $reward_category) {
    $customer_reward_id = $reward_category['package_id'];
    $customer_reward_name = $reward_category['package_name'];
    $customer_points_percent = $reward_category['points_percent'];
    ++$i;
?>

    <div class="form-group form-group-sm" style="<?= $reward_category['deleted'] ? 'display: none;' : 'display: block;' ?>">
        <?= form_label(lang('Config.customer_reward') . " $i", "customer_reward_$i", ['class' => 'control-label col-xs-3 col-sm-2 text-danger required']) ?>
        <div class="

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key