|
@@ -32,22 +32,50 @@ if(empty($companies)) {
|
|
|
else {
|
|
else {
|
|
|
?>
|
|
?>
|
|
|
<table class="table table-bordered table-hover mb-3">
|
|
<table class="table table-bordered table-hover mb-3">
|
|
|
|
|
+ <colgroup>
|
|
|
|
|
+ <col style="width: 1%"/>
|
|
|
|
|
+ <col style="width: 25%"/>
|
|
|
|
|
+ <col style="width: 25%"/>
|
|
|
|
|
+ <col style="width: 25%"/>
|
|
|
|
|
+ <col style="width: 12.5%"/>
|
|
|
|
|
+ <col style="width: 12.5%"/>
|
|
|
|
|
+ <col style="width: 1%"/>
|
|
|
|
|
+ </colgroup>
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th><?=htmlspecialchars(__("ID"))?></th>
|
|
<th><?=htmlspecialchars(__("ID"))?></th>
|
|
|
<th><?=htmlspecialchars(__("Name"))?></th>
|
|
<th><?=htmlspecialchars(__("Name"))?></th>
|
|
|
|
|
+ <th><?=htmlspecialchars(__("Address"))?></th>
|
|
|
|
|
+ <th><?=htmlspecialchars(__("Contact"))?></th>
|
|
|
|
|
+ <th><?=htmlspecialchars(__("Company No."))?></th>
|
|
|
|
|
+ <th><?=htmlspecialchars(__("VAT No."))?></th>
|
|
|
<th><?=htmlspecialchars(__("Actions"))?></th>
|
|
<th><?=htmlspecialchars(__("Actions"))?></th>
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody>
|
|
<tbody>
|
|
|
<?php
|
|
<?php
|
|
|
foreach($companies as $company) {
|
|
foreach($companies as $company) {
|
|
|
|
|
+ $address = $company->getAddress();
|
|
|
?>
|
|
?>
|
|
|
<tr>
|
|
<tr>
|
|
|
<td class="text-end"><?=htmlspecialchars($company->id)?></td>
|
|
<td class="text-end"><?=htmlspecialchars($company->id)?></td>
|
|
|
<td>
|
|
<td>
|
|
|
<?=htmlspecialchars($company->name)?>
|
|
<?=htmlspecialchars($company->name)?>
|
|
|
</td>
|
|
</td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <?=$address->getLinesHtml()?>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <i class="fa fa-fw fa-phone"></i> <?=htmlspecialchars($company->phone)?><br />
|
|
|
|
|
+ <i class="fa fa-fw fa-fax"></i> <?=htmlspecialchars($company->fax)?><br />
|
|
|
|
|
+ <i class="fa fa-fw fa-envelope"></i> <?=htmlspecialchars($company->email)?><br />
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <?=htmlspecialchars($company->company_number)?>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <?=htmlspecialchars($company->vat_number)?>
|
|
|
|
|
+ </td>
|
|
|
<td class="p-1">
|
|
<td class="p-1">
|
|
|
<a class="btn btn-sm btn-primary" href="<?=htmlspecialchars($company->getUrl())?>/update">
|
|
<a class="btn btn-sm btn-primary" href="<?=htmlspecialchars($company->getUrl())?>/update">
|
|
|
<?=htmlspecialchars(__("Update"))?>
|
|
<?=htmlspecialchars(__("Update"))?>
|