<?php
/**
  * @var \App\View\AppView $this
  */
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Html->link(__('Edit Schooltype'), ['action' => 'edit', $schooltype->id]) ?> </li>
        <li><?= $this->Form->postLink(__('Delete Schooltype'), ['action' => 'delete', $schooltype->id], ['confirm' => __('Are you sure you want to delete # {0}?', $schooltype->id)]) ?> </li>
        <li><?= $this->Html->link(__('List Schooltypes'), ['action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Schooltype'), ['action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Departments'), ['controller' => 'Departments', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Department'), ['controller' => 'Departments', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Examinations'), ['controller' => 'Examinations', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Examination'), ['controller' => 'Examinations', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Imports'), ['controller' => 'Imports', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Import'), ['controller' => 'Imports', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Subjects'), ['controller' => 'Subjects', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Subject'), ['controller' => 'Subjects', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Supervisings'), ['controller' => 'Supervisings', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Supervising'), ['controller' => 'Supervisings', 'action' => 'add']) ?> </li>
    </ul>
</nav>
<div class="schooltypes view large-9 medium-8 columns content">
    <h3><?= h($schooltype->name) ?></h3>
    <table class="vertical-table">
        <tr>
            <th scope="row"><?= __('Name') ?></th>
            <td><?= h($schooltype->name) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Code') ?></th>
            <td><?= h($schooltype->code) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Id') ?></th>
            <td><?= $this->Number->format($schooltype->id) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Created') ?></th>
            <td><?= h($schooltype->created) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Modified') ?></th>
            <td><?= h($schooltype->modified) ?></td>
        </tr>
    </table>
    <div class="related">
        <h4><?= __('Related Departments') ?></h4>
        <?php if (!empty($schooltype->departments)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Schooltype Id') ?></th>
                <th scope="col"><?= __('Supervising Id') ?></th>
                <th scope="col"><?= __('Title') ?></th>
                <th scope="col"><?= __('Status') ?></th>
                <th scope="col"><?= __('Code') ?></th>
                <th scope="col"><?= __('Super School Code') ?></th>
                <th scope="col"><?= __('Count') ?></th>
                <th scope="col"><?= __('Delivery Date') ?></th>
                <th scope="col"><?= __('Requested') ?></th>
                <th scope="col"><?= __('Delivered') ?></th>
                <th scope="col"><?= __('Checkedin') ?></th>
                <th scope="col"><?= __('Delivery Count') ?></th>
                <th scope="col"><?= __('Data') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('Modified') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($schooltype->departments as $departments): ?>
            <tr>
                <td><?= h($departments->id) ?></td>
                <td><?= h($departments->schooltype_id) ?></td>
                <td><?= h($departments->supervising_id) ?></td>
                <td><?= h($departments->title) ?></td>
                <td><?= h($departments->status) ?></td>
                <td><?= h($departments->code) ?></td>
                <td><?= h($departments->super_school_code) ?></td>
                <td><?= h($departments->count) ?></td>
                <td><?= h($departments->delivery_date) ?></td>
                <td><?= h($departments->requested) ?></td>
                <td><?= h($departments->delivered) ?></td>
                <td><?= h($departments->checkedin) ?></td>
                <td><?= h($departments->delivery_count) ?></td>
                <td><?= h($departments->data) ?></td>
                <td><?= h($departments->created) ?></td>
                <td><?= h($departments->modified) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Departments', 'action' => 'view', $departments->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Departments', 'action' => 'edit', $departments->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Departments', 'action' => 'delete', $departments->id], ['confirm' => __('Are you sure you want to delete # {0}?', $departments->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
    <div class="related">
        <h4><?= __('Related Examinations') ?></h4>
        <?php if (!empty($schooltype->examinations)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Schooltype Id') ?></th>
                <th scope="col"><?= __('Title') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('Modified') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($schooltype->examinations as $examinations): ?>
            <tr>
                <td><?= h($examinations->id) ?></td>
                <td><?= h($examinations->schooltype_id) ?></td>
                <td><?= h($examinations->title) ?></td>
                <td><?= h($examinations->created) ?></td>
                <td><?= h($examinations->modified) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Examinations', 'action' => 'view', $examinations->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Examinations', 'action' => 'edit', $examinations->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Examinations', 'action' => 'delete', $examinations->id], ['confirm' => __('Are you sure you want to delete # {0}?', $examinations->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
    <div class="related">
        <h4><?= __('Related Imports') ?></h4>
        <?php if (!empty($schooltype->imports)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Schooltype Id') ?></th>
                <th scope="col"><?= __('Tablename') ?></th>
                <th scope="col"><?= __('Mapping') ?></th>
                <th scope="col"><?= __('Skip') ?></th>
                <th scope="col"><?= __('Clear') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('Modified') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($schooltype->imports as $imports): ?>
            <tr>
                <td><?= h($imports->id) ?></td>
                <td><?= h($imports->schooltype_id) ?></td>
                <td><?= h($imports->tablename) ?></td>
                <td><?= h($imports->mapping) ?></td>
                <td><?= h($imports->skip) ?></td>
                <td><?= h($imports->clear) ?></td>
                <td><?= h($imports->created) ?></td>
                <td><?= h($imports->modified) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Imports', 'action' => 'view', $imports->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Imports', 'action' => 'edit', $imports->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Imports', 'action' => 'delete', $imports->id], ['confirm' => __('Are you sure you want to delete # {0}?', $imports->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
    <div class="related">
        <h4><?= __('Related Subjects') ?></h4>
        <?php if (!empty($schooltype->subjects)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Schooltype Id') ?></th>
                <th scope="col"><?= __('Title') ?></th>
                <th scope="col"><?= __('Code') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('Modified') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($schooltype->subjects as $subjects): ?>
            <tr>
                <td><?= h($subjects->id) ?></td>
                <td><?= h($subjects->schooltype_id) ?></td>
                <td><?= h($subjects->title) ?></td>
                <td><?= h($subjects->code) ?></td>
                <td><?= h($subjects->created) ?></td>
                <td><?= h($subjects->modified) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Subjects', 'action' => 'view', $subjects->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Subjects', 'action' => 'edit', $subjects->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Subjects', 'action' => 'delete', $subjects->id], ['confirm' => __('Are you sure you want to delete # {0}?', $subjects->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
    <div class="related">
        <h4><?= __('Related Supervisings') ?></h4>
        <?php if (!empty($schooltype->supervisings)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Schooltype Id') ?></th>
                <th scope="col"><?= __('Code') ?></th>
                <th scope="col"><?= __('Token') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('Modified') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($schooltype->supervisings as $supervisings): ?>
            <tr>
                <td><?= h($supervisings->id) ?></td>
                <td><?= h($supervisings->schooltype_id) ?></td>
                <td><?= h($supervisings->code) ?></td>
                <td><?= h($supervisings->token) ?></td>
                <td><?= h($supervisings->created) ?></td>
                <td><?= h($supervisings->modified) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Supervisings', 'action' => 'view', $supervisings->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Supervisings', 'action' => 'edit', $supervisings->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Supervisings', 'action' => 'delete', $supervisings->id], ['confirm' => __('Are you sure you want to delete # {0}?', $supervisings->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
</div>
