<div class="row commission" data-id="<?php echo $user->id; ?>">
    <div class="card col-lg-6 col-sm-12">
        <div class="card-header">
            <h6>Szűrés</h6>
        </div>
        <div class="card-body">
            <div class="form-group">
                <label>Értékesítő:</label>

                <div class="input-group">
                    <?php
                    $out =  "<select class=\"select2 salesPerson\" name=\"salesPerson\">";
                    $users = $auth->getApiData("get/users");
                    foreach ($users as $u) {
                        $selected = (isset($order->salesPerson) && $u->id == $order->salesPerson) ? 'selected' : '';
                        $out .= "<option value=\"{$u->id}\" {$selected}>{$u->lastName} {$u->firstName}</option>";
                    }
                    $out .= "</select>";
                    echo $out;
                    ?>
                </div>
                <!-- /.input group -->
            </div>
            <div class="form-group">
                <label>Tartomány:</label>

                <div class="input-group">
                    <div class="input-group-prepend">
                        <span class="input-group-text">
                            <i class="far fa-calendar-alt"></i>
                        </span>
                    </div>
                    <input type="text" class="form-control float-right commissionRange" value="">
                </div>
                <!-- /.input group -->
            </div>
            <button type="button" id="commissionFilter" class="btn btn-block btn-primary commissionFilter">Szűrés</button>
        </div>
    </div>
    <?php $card = new classWidgetCommision($user->id); ?>
</div>
<div class="card">
    <div class="card-header">
        <h6>Jutalék tételek</h6>
    </div>
    <div class="card-body">
        <div id="jsGrid">

        </div>
    </div>
</div>
<?php
addJS("commissionadmin.js");
?>