156 lines
7.5 KiB
PHP
156 lines
7.5 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* @var \App\View\AppView $this
|
||
|
|
* @var \Cake\Datasource\EntityInterface $region
|
||
|
|
*/
|
||
|
|
?>
|
||
|
|
<div class="row">
|
||
|
|
<aside class="column">
|
||
|
|
<div class="side-nav">
|
||
|
|
<h4 class="heading"><?= __('Actions') ?></h4>
|
||
|
|
<?= $this->Html->link(__('List Regions'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||
|
|
</div>
|
||
|
|
</aside>
|
||
|
|
<div class="column column-80">
|
||
|
|
<div class="regions view content">
|
||
|
|
<h3><?= h($region->name) ?></h3>
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Name') ?></th>
|
||
|
|
<td><?= h($region->name) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('WikiDataId') ?></th>
|
||
|
|
<td><?= h($region->wikiDataId) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Id') ?></th>
|
||
|
|
<td><?= $this->Number->format($region->id) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Created At') ?></th>
|
||
|
|
<td><?= h($region->created_at) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Updated At') ?></th>
|
||
|
|
<td><?= h($region->updated_at) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Flag') ?></th>
|
||
|
|
<td><?= $region->flag ? __('Yes') : __('No'); ?></td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<div class="text">
|
||
|
|
<strong><?= __('Translations') ?></strong>
|
||
|
|
<blockquote>
|
||
|
|
<?= $this->Text->autoParagraph(h($region->translations)); ?>
|
||
|
|
</blockquote>
|
||
|
|
</div>
|
||
|
|
<div class="related">
|
||
|
|
<h4><?= __('Related Countries') ?></h4>
|
||
|
|
<?php if (!empty($region->countries)) : ?>
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Id') ?></th>
|
||
|
|
<th><?= __('Name') ?></th>
|
||
|
|
<th><?= __('Iso3') ?></th>
|
||
|
|
<th><?= __('Numeric Code') ?></th>
|
||
|
|
<th><?= __('Iso2') ?></th>
|
||
|
|
<th><?= __('Phonecode') ?></th>
|
||
|
|
<th><?= __('Capital') ?></th>
|
||
|
|
<th><?= __('Currency') ?></th>
|
||
|
|
<th><?= __('Currency Name') ?></th>
|
||
|
|
<th><?= __('Currency Symbol') ?></th>
|
||
|
|
<th><?= __('Tld') ?></th>
|
||
|
|
<th><?= __('Native') ?></th>
|
||
|
|
<th><?= __('Region') ?></th>
|
||
|
|
<th><?= __('Region Id') ?></th>
|
||
|
|
<th><?= __('Subregion') ?></th>
|
||
|
|
<th><?= __('Subregion Id') ?></th>
|
||
|
|
<th><?= __('Nationality') ?></th>
|
||
|
|
<th><?= __('Timezones') ?></th>
|
||
|
|
<th><?= __('Latitude') ?></th>
|
||
|
|
<th><?= __('Longitude') ?></th>
|
||
|
|
<th><?= __('Emoji') ?></th>
|
||
|
|
<th><?= __('EmojiU') ?></th>
|
||
|
|
<th><?= __('Created At') ?></th>
|
||
|
|
<th><?= __('Updated At') ?></th>
|
||
|
|
<th><?= __('Flag') ?></th>
|
||
|
|
<th><?= __('WikiDataId') ?></th>
|
||
|
|
<th class="actions"><?= __('Actions') ?></th>
|
||
|
|
</tr>
|
||
|
|
<?php foreach ($region->countries as $countries) : ?>
|
||
|
|
<tr>
|
||
|
|
<td><?= h($countries->id) ?></td>
|
||
|
|
<td><?= h($countries->name) ?></td>
|
||
|
|
<td><?= h($countries->iso3) ?></td>
|
||
|
|
<td><?= h($countries->numeric_code) ?></td>
|
||
|
|
<td><?= h($countries->iso2) ?></td>
|
||
|
|
<td><?= h($countries->phonecode) ?></td>
|
||
|
|
<td><?= h($countries->capital) ?></td>
|
||
|
|
<td><?= h($countries->currency) ?></td>
|
||
|
|
<td><?= h($countries->currency_name) ?></td>
|
||
|
|
<td><?= h($countries->currency_symbol) ?></td>
|
||
|
|
<td><?= h($countries->tld) ?></td>
|
||
|
|
<td><?= h($countries->native) ?></td>
|
||
|
|
<td><?= h($countries->region) ?></td>
|
||
|
|
<td><?= h($countries->region_id) ?></td>
|
||
|
|
<td><?= h($countries->subregion) ?></td>
|
||
|
|
<td><?= h($countries->subregion_id) ?></td>
|
||
|
|
<td><?= h($countries->nationality) ?></td>
|
||
|
|
<td><?= h($countries->timezones) ?></td>
|
||
|
|
<td><?= h($countries->latitude) ?></td>
|
||
|
|
<td><?= h($countries->longitude) ?></td>
|
||
|
|
<td><?= h($countries->emoji) ?></td>
|
||
|
|
<td><?= h($countries->emojiU) ?></td>
|
||
|
|
<td><?= h($countries->created_at) ?></td>
|
||
|
|
<td><?= h($countries->updated_at) ?></td>
|
||
|
|
<td><?= h($countries->flag) ?></td>
|
||
|
|
<td><?= h($countries->wikiDataId) ?></td>
|
||
|
|
<td class="actions">
|
||
|
|
<?= $this->Html->link(__('View'), ['controller' => 'Countries', 'action' => 'view', $countries->id]) ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
</div>
|
||
|
|
<div class="related">
|
||
|
|
<h4><?= __('Related Subregions') ?></h4>
|
||
|
|
<?php if (!empty($region->subregions)) : ?>
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Id') ?></th>
|
||
|
|
<th><?= __('Name') ?></th>
|
||
|
|
<th><?= __('Region Id') ?></th>
|
||
|
|
<th><?= __('Created At') ?></th>
|
||
|
|
<th><?= __('Updated At') ?></th>
|
||
|
|
<th><?= __('Flag') ?></th>
|
||
|
|
<th><?= __('WikiDataId') ?></th>
|
||
|
|
<th class="actions"><?= __('Actions') ?></th>
|
||
|
|
</tr>
|
||
|
|
<?php foreach ($region->subregions as $subregions) : ?>
|
||
|
|
<tr>
|
||
|
|
<td><?= h($subregions->id) ?></td>
|
||
|
|
<td><?= h($subregions->name) ?></td>
|
||
|
|
<td><?= h($subregions->region_id) ?></td>
|
||
|
|
<td><?= h($subregions->created_at) ?></td>
|
||
|
|
<td><?= h($subregions->updated_at) ?></td>
|
||
|
|
<td><?= h($subregions->flag) ?></td>
|
||
|
|
<td><?= h($subregions->wikiDataId) ?></td>
|
||
|
|
<td class="actions">
|
||
|
|
<?= $this->Html->link(__('View'), ['controller' => 'Subregions', 'action' => 'view', $subregions->id]) ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|