<? $this->layout('app', ['title' => 'История
операций']) ?>
<? $this->start('container') ?>
  
<section class="pt-120 pb-120 default-bg">
        <div
class="container">
            <div class="row
justify-content-center">
                <div
class="col-xl-6 col-lg-8">
                    <div
class="section-title text-center"
data-animate="fadeInUp">
                       
<h1>История операций</h1>
                   
</div>
                </div>
            </div>
        
   <div class="row">
                <div
class="col">
                    <!-- features table wrap
inner -->
                    <div
class="features-table-wrap"
data-animate="fadeInUp">
                    
                
   <?php if(count($items) == 0){?>
                    <h4
class="text-center">
                   
Пусто</h4>
                    <?php }else{?>
            
       
                        <div
class="table-responsive-lg">
                           
<table class="features-table pt-sans text-center mb-0
table">
                                <tbody>
             
                      <tr>
                                       
<th>Дата</th>
                                       
<th>Сумма</th>
                                       
<th>Комментарий</th>
                               
        <th>Тип</th>
                                   
</tr>
                                    <?php foreach ($items as
$row): ?>
                                    <tr>
               
                        <td><?=date('d.m.Y
H:i',$row['time']);?> </td>
                                      
 <td><?=$row['money'];?> RUB</td>
                       
                <td><?=$row['text'];?></td>
             
                         
<td><?=$type[$row['type']];?></td>
                      
             </tr>
                                    	<?php
endforeach; ?>
                                </tbody>
          
                     <!-- End Table body -->
                        
   </table>
                        </div>
                    
   <?php } ?>
                    </div>
                   
<!-- features table wrap inner -->
                </div>
     
      </div>
        </div>
    </section>
<?
$this->stop() ?>