<?php include(__DIR__."/../layout/top.php"); ?>
<div class="row">
<div class="col-md-12">
<h3>App Access</h3>
<p>Here is a list of all Apps who have access to your Account. You can remove the Access if you want to.</p>
<table class="table">
<tr>
<th>App Name</th>
<th>App Beschreibung</th>
<th>Zugriff seit</th>
<th style="text-align: right">Aktionen</th>
</tr>
<?php
foreach($access as $a) {
?>
<td><?php echo $a->getApp()->name; ?></td>
<td><?php echo $a->getApp()->description; ?></td>
<td><?php echo $a->created_at->format("d.m.Y H:i"); ?></td>
<td style="text-align: right">
if(!$a->getApp()->user_cant_remove_app) {
echo '<a href="/gui/access/rm?id='.$a->id.'" class="btn btn-danger btn-sm">Remove Access</a>';
}
</td>
</table>
</div>
<?php include(__DIR__."/../layout/bottom.php"); ?>