230 lines
11 KiB
PHP
230 lines
11 KiB
PHP
<?php
|
|
/**
|
|
* @var \App\View\AppView $this
|
|
* @var \Cake\Datasource\EntityInterface $country
|
|
*/
|
|
?>
|
|
<div class="row">
|
|
<aside class="column">
|
|
<div class="side-nav">
|
|
<h4 class="heading"><?= __('Actions') ?></h4>
|
|
<?= $this->Html->link(__('List Countries'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
|
</div>
|
|
</aside>
|
|
<div class="column column-80">
|
|
<div class="countries view content">
|
|
<h3><?= h($country->name) ?></h3>
|
|
<table>
|
|
<tr>
|
|
<th><?= __('Name') ?></th>
|
|
<td><?= h($country->name) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Iso3') ?></th>
|
|
<td><?= h($country->iso3) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Numeric Code') ?></th>
|
|
<td><?= h($country->numeric_code) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Iso2') ?></th>
|
|
<td><?= h($country->iso2) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Phonecode') ?></th>
|
|
<td><?= h($country->phonecode) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Capital') ?></th>
|
|
<td><?= h($country->capital) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Currency') ?></th>
|
|
<td><?= h($country->currency) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Currency Name') ?></th>
|
|
<td><?= h($country->currency_name) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Currency Symbol') ?></th>
|
|
<td><?= h($country->currency_symbol) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Tld') ?></th>
|
|
<td><?= h($country->tld) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Native') ?></th>
|
|
<td><?= h($country->native) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Region') ?></th>
|
|
<td><?= h($country->region) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Region') ?></th>
|
|
<td><?= $country->hasValue('region_entity') ? $this->Html->link($country->region_entity->name, ['controller' => 'Regions', 'action' => 'view', $country->region_entity->id]) : '' ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Subregion') ?></th>
|
|
<td><?= h($country->subregion) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Subregion') ?></th>
|
|
<td><?= $country->hasValue('subregion_entity') ? $this->Html->link($country->subregion_entity->name, ['controller' => 'Subregions', 'action' => 'view', $country->subregion_entity->id]) : '' ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Nationality') ?></th>
|
|
<td><?= h($country->nationality) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Emoji') ?></th>
|
|
<td><?= h($country->emoji) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('EmojiU') ?></th>
|
|
<td><?= h($country->emojiU) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('WikiDataId') ?></th>
|
|
<td><?= h($country->wikiDataId) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Id') ?></th>
|
|
<td><?= $this->Number->format($country->id) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Latitude') ?></th>
|
|
<td><?= $country->latitude === null ? '' : $this->Number->format($country->latitude) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Longitude') ?></th>
|
|
<td><?= $country->longitude === null ? '' : $this->Number->format($country->longitude) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Created At') ?></th>
|
|
<td><?= h($country->created_at) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Updated At') ?></th>
|
|
<td><?= h($country->updated_at) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Flag') ?></th>
|
|
<td><?= $country->flag ? __('Yes') : __('No'); ?></td>
|
|
</tr>
|
|
</table>
|
|
<div class="text">
|
|
<strong><?= __('Timezones') ?></strong>
|
|
<blockquote>
|
|
<?= $this->Text->autoParagraph(h($country->timezones)); ?>
|
|
</blockquote>
|
|
</div>
|
|
<div class="text">
|
|
<strong><?= __('Translations') ?></strong>
|
|
<blockquote>
|
|
<?= $this->Text->autoParagraph(h($country->translations)); ?>
|
|
</blockquote>
|
|
</div>
|
|
<div class="related">
|
|
<h4><?= __('Related Addresses') ?></h4>
|
|
<?php if (!empty($country->addresses)) : ?>
|
|
<div class="table-responsive">
|
|
<table>
|
|
<tr>
|
|
<th><?= __('Id') ?></th>
|
|
<th><?= __('Address Name') ?></th>
|
|
<th><?= __('Contact Name') ?></th>
|
|
<th><?= __('Address Line1') ?></th>
|
|
<th><?= __('Address Line2') ?></th>
|
|
<th><?= __('City') ?></th>
|
|
<th><?= __('City Id') ?></th>
|
|
<th><?= __('State') ?></th>
|
|
<th><?= __('State Id') ?></th>
|
|
<th><?= __('Postal Code') ?></th>
|
|
<th><?= __('Country') ?></th>
|
|
<th><?= __('Country Id') ?></th>
|
|
<th><?= __('Phone Number') ?></th>
|
|
<th><?= __('Email') ?></th>
|
|
<th><?= __('Notes') ?></th>
|
|
<th class="actions"><?= __('Actions') ?></th>
|
|
</tr>
|
|
<?php foreach ($country->addresses as $addresses) : ?>
|
|
<tr>
|
|
<td><?= h($addresses->id) ?></td>
|
|
<td><?= h($addresses->address_name) ?></td>
|
|
<td><?= h($addresses->contact_name) ?></td>
|
|
<td><?= h($addresses->address_line1) ?></td>
|
|
<td><?= h($addresses->address_line2) ?></td>
|
|
<td><?= h($addresses->city) ?></td>
|
|
<td><?= h($addresses->city_id) ?></td>
|
|
<td><?= h($addresses->state) ?></td>
|
|
<td><?= h($addresses->state_id) ?></td>
|
|
<td><?= h($addresses->postal_code) ?></td>
|
|
<td><?= h($addresses->country) ?></td>
|
|
<td><?= h($addresses->country_id) ?></td>
|
|
<td><?= h($addresses->phone_number) ?></td>
|
|
<td><?= h($addresses->email) ?></td>
|
|
<td><?= h($addresses->notes) ?></td>
|
|
<td class="actions">
|
|
<?= $this->Html->link(__('View'), ['controller' => 'Addresses', 'action' => 'view', $addresses->id]) ?>
|
|
<?= $this->Html->link(__('Edit'), ['controller' => 'Addresses', 'action' => 'edit', $addresses->id]) ?>
|
|
<?= $this->Form->postLink(__('Delete'), ['controller' => 'Addresses', 'action' => 'delete', $addresses->id], ['confirm' => __('Are you sure you want to delete # {0}?', $addresses->id)]) ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="related">
|
|
<h4><?= __('Related States') ?></h4>
|
|
<?php if (!empty($country->states)) : ?>
|
|
<div class="table-responsive">
|
|
<table>
|
|
<tr>
|
|
<th><?= __('Id') ?></th>
|
|
<th><?= __('Name') ?></th>
|
|
<th><?= __('Country Id') ?></th>
|
|
<th><?= __('Country Code') ?></th>
|
|
<th><?= __('Fips Code') ?></th>
|
|
<th><?= __('Iso2') ?></th>
|
|
<th><?= __('Type') ?></th>
|
|
<th><?= __('Latitude') ?></th>
|
|
<th><?= __('Longitude') ?></th>
|
|
<th><?= __('Created At') ?></th>
|
|
<th><?= __('Updated At') ?></th>
|
|
<th><?= __('Flag') ?></th>
|
|
<th><?= __('WikiDataId') ?></th>
|
|
<th class="actions"><?= __('Actions') ?></th>
|
|
</tr>
|
|
<?php foreach ($country->states as $states) : ?>
|
|
<tr>
|
|
<td><?= h($states->id) ?></td>
|
|
<td><?= h($states->name) ?></td>
|
|
<td><?= h($states->country_id) ?></td>
|
|
<td><?= h($states->country_code) ?></td>
|
|
<td><?= h($states->fips_code) ?></td>
|
|
<td><?= h($states->iso2) ?></td>
|
|
<td><?= h($states->type) ?></td>
|
|
<td><?= h($states->latitude) ?></td>
|
|
<td><?= h($states->longitude) ?></td>
|
|
<td><?= h($states->created_at) ?></td>
|
|
<td><?= h($states->updated_at) ?></td>
|
|
<td><?= h($states->flag) ?></td>
|
|
<td><?= h($states->wikiDataId) ?></td>
|
|
<td class="actions">
|
|
<?= $this->Html->link(__('View'), ['controller' => 'States', 'action' => 'view', $states->id]) ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|