<div class="col-xs-12">
    <input type="text" class="form-control modal-filter" id="workers-filter" placeholder="Filtruj"/>
    <div class="row" id="workers-list">
        <?php if (empty($workers['bPracownicy'])): ?>
            <h2 style="margin-bottom: 40px;">Brak pracowników</h2>
        <?php else: ?>
            <div class="col-xs-12 checkboxes-right check-all blue-text">
                <label class="pull-left hover-pointer" for="AllWorkers">
                    Wszystkie
                </label>
                <input type="checkbox" class="pull-right" id="AllWorkers"/>
            </div>
            <?php foreach ($workers['bPracownicy']['bPracownik'] as $key => $worker): ?>
                <div class="col-xs-12 checkboxes-right">
                    <label class="pull-left hover-pointer width-90" for="<?php echo $worker['bNumerEwidencyjny']; ?>">
                        <div class="row">
                            <span class="col-xs-6"><?php echo $worker['bNazwiskoImie']; ?></span>
                            <span class="col-xs-2"><?php echo $worker['bNumerEwidencyjny']; ?></span>
                            <span class="col-xs-4">
                                <?php if ($worker['bPesel'] != ''):
                                    echo ' (' . $worker['bPesel'] . ')';
                                endif; ?>
                            </span>
                        </div>
                    </label>
                    <input type="checkbox" class="pull-right" id="<?php echo $worker['bNumerEwidencyjny']; ?>"/>
                </div>
            <?php endforeach; ?>
        <?php endif; ?>
    </div>
</div>
<div class="loader-holder loader-overlapping" id="code-list-loader">
    <div class="loader"></div>
</div>

<?php echo $this->element('alert_close'); ?>
