134 lines
7.0 KiB
PHP
134 lines
7.0 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* @var \App\View\AppView $this
|
||
|
|
* @var \Cake\Datasource\EntityInterface $subregion
|
||
|
|
*/
|
||
|
|
?>
|
||
|
|
<div class="row">
|
||
|
|
<aside class="column">
|
||
|
|
<div class="side-nav">
|
||
|
|
<h4 class="heading"><?= __('Actions') ?></h4>
|
||
|
|
<?= $this->Html->link(__('Edit Subregion'), ['action' => 'edit', $subregion->id], ['class' => 'side-nav-item']) ?>
|
||
|
|
<?= $this->Form->postLink(__('Delete Subregion'), ['action' => 'delete', $subregion->id], ['confirm' => __('Are you sure you want to delete # {0}?', $subregion->id), 'class' => 'side-nav-item']) ?>
|
||
|
|
<?= $this->Html->link(__('List Subregions'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||
|
|
<?= $this->Html->link(__('New Subregion'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
|
||
|
|
</div>
|
||
|
|
</aside>
|
||
|
|
<div class="column column-80">
|
||
|
|
<div class="subregions view content">
|
||
|
|
<h3><?= h($subregion->name) ?></h3>
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Name') ?></th>
|
||
|
|
<td><?= h($subregion->name) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Region') ?></th>
|
||
|
|
<td><?= $subregion->hasValue('region') ? $this->Html->link($subregion->region->name, ['controller' => 'Regions', 'action' => 'view', $subregion->region->id]) : '' ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('WikiDataId') ?></th>
|
||
|
|
<td><?= h($subregion->wikiDataId) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Id') ?></th>
|
||
|
|
<td><?= $this->Number->format($subregion->id) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Created At') ?></th>
|
||
|
|
<td><?= h($subregion->created_at) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Updated At') ?></th>
|
||
|
|
<td><?= h($subregion->updated_at) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Flag') ?></th>
|
||
|
|
<td><?= $subregion->flag ? __('Yes') : __('No'); ?></td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<div class="text">
|
||
|
|
<strong><?= __('Translations') ?></strong>
|
||
|
|
<blockquote>
|
||
|
|
<?= $this->Text->autoParagraph(h($subregion->translations)); ?>
|
||
|
|
</blockquote>
|
||
|
|
</div>
|
||
|
|
<div class="related">
|
||
|
|
<h4><?= __('Related Countries') ?></h4>
|
||
|
|
<?php if (!empty($subregion->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><?= __('Translations') ?></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 ($subregion->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->translations) ?></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]) ?>
|
||
|
|
<?= $this->Html->link(__('Edit'), ['controller' => 'Countries', 'action' => 'edit', $countries->id]) ?>
|
||
|
|
<?= $this->Form->postLink(__('Delete'), ['controller' => 'Countries', 'action' => 'delete', $countries->id], ['confirm' => __('Are you sure you want to delete # {0}?', $countries->id)]) ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|