<?if($user['user_group'] >= "3"):?>
        <div id="page-wrapper">
            <div class="row" style="padding-top: 20px">

                <div class="col-lg-12">
                  

                    <table id="grid-data" class="table table-condensed table-hover table-striped">
                     <thead>
                       <tr>
                          <th data-column-id="id" data-type="numeric">#</th>                          
                          <th data-column-id="time">Дата</th>
                          <th data-column-id="project">Проект</th>
                          <th data-column-id="invoice">№ счета</th>             
                          <th data-column-id="system">Способ оплаты</th>
                          <th data-column-id="summ">Сумма платежа</th>
                          <th data-column-id="summplus">Доход проекта</th>
                          <th data-column-id="status">Статус</th>
                       </tr>
                     </thead>
                     <tbody>
                      <? $id = 0 ?>
                      <?php foreach($items as $item): ?> 
                        <? $id++ ?>
                      <tr style="cursor: pointer;">
                       <td><?php echo $item['log_payments_id'] ?></td>
                       <td><?php echo $item['log_payments_time'] ?></td>
                       <td><?php echo $item['shop_id'] ?></td>
                       <td><?php echo $item['user_id'] ?></td>             
                       <td><?php echo $item['log_payments_system'] ?></td>
                       <td><?php echo $item['log_payments_sum']?> руб.</td>
                       <td><?php echo $item['log_payments_sum_client']?> руб.</td>             
                       <td><?php echo $item['log_payments_status'] ?></td>
                     </tr>
                      <?php endforeach; ?> 
                      <?php if(empty($items)): ?> 
                      <tr>
                        <td colspan="5" style="text-align: center;">Запросов на вывод денег нет.</td>
                      <tr>
                      <?php endif; ?> 
                     </tbody>
                    </table>
                </div>
            </div>
        <!-- /#page-wrapper -->
<?endif?>
                        

        <script>
        $("#grid-data").bootgrid({
            formatters: {
                statusMappings: {
                    1: "danger",
                    2: "success",
                    0: "warning",
                }
            }
        });
        </script>