Файл: templates/support/index.tpl
Строк: 28
<? $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">
                    	<?php if(count($items) ==
0){?>
					
					<h3
class="text-center">Пусто</h3>
					
					
						<?php
} else { ?>
					
					
					
	
  
					
					
					
                   
<div class="features-table-wrap"
data-animate="fadeInUp">
                        <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 $res): ?>
								
								 
	
  
								 
								 
								 
								 
                   
               <tr>
                        	
     
<td><?=$res['name'];?></td>
		<td><?=date_ru($res['time']);?></td>
			<td><?=$array[$res['status']];?></td>
			<td><a
href="/support/view?id=<?=$res['id'];?>"
class="btn">Посмотреть</a></td>
						</tr>
                                   	<?php endforeach; ?>
            
                   </tbody>
                                <!--
End Table body -->
                            </table>
          
             </div>
                    </div>
                
   <?php } ?>
                </div>
           
</div>
			<br>
				<a href="/support/new"
class="btn"
style="float:right;">Создать</a>
       
</div>
			
    </section>
<div
class="text-center">
				    <?php echo $peger->display;
?>
					</div>
                                   
<?
$this->stop() ?>