<h4>Advertisement #<?= $this->ad->id ?></h4>
<div>
<label><?= $this->humanize('id') ?></label>
<?= $this->ad->id ?>
</div>
<label><?= $this->humanize('ad_type') ?></label>
<?= $this->ad->ad_type ?>
<label><?= $this->humanize('status') ?></label>
<?= $this->ad->status ?>
<label><?= $this->humanize('hit_count') ?></label>
<?= $this->ad->hit_count ?>
<?php if ($this->ad->html) : ?>
<label>Html</label>
<pre style="font-size:1.15em;margin:0px;">
<?= $this->h($this->ad->html) ?>
</pre>
<?php else: ?>
<label><?= $this->humanize('image_url') ?></label>
<?= $this->ad->image_url ?>
<label><?= $this->humanize('referral_url') ?></label>
<?= $this->ad->referral_url ?>
<label><?= $this->humanize('width') ?></label>
<?= $this->ad->width ?>
<label><?= $this->humanize('height') ?></label>
<?= $this->ad->height ?>
<?php endif ?>
<?= $this->linkTo($this->t('buttons.edit'), $this->editAdvertisementPath($this->ad)) ?>
<?= $this->linkTo($this->t('buttons.delete'), $this->ad, ['data' => ['confirm' => $this->t('confirmations.is_sure')], 'method' => 'delete']) ?>
<?= $this->linkTo($this->t('buttons.back'), $this->advertisementsPath()) ?>