<?php
/**
 * @var \App\View\AppView $this
 * @var \App\Model\Entity\School $school
 */
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Html->link(__('Edit School'), ['action' => 'edit', $school->id]) ?> </li>
        <li><?= $this->Form->postLink(__('Delete School'), ['action' => 'delete', $school->id], ['confirm' => __('Are you sure you want to delete # {0}?', $school->id)]) ?> </li>
        <li><?= $this->Html->link(__('List Schools'), ['action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New School'), ['action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?> </li>
    </ul>
</nav>
<div class="schools view large-9 medium-8 columns content">
    <h3><?= h($school->dst_schluessel) ?></h3>
    <table class="vertical-table">
        <tr>
            <th scope="row"><?= __('Dst Schluessel') ?></th>
            <td><?= h($school->dst_schluessel) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Dst Name') ?></th>
            <td><?= h($school->dst_name) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Dst Schulart') ?></th>
            <td><?= h($school->dst_schulart) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Id') ?></th>
            <td><?= $this->Number->format($school->id) ?></td>
        </tr>
    </table>
    <div class="related">
        <h4><?= __('Related Budget') ?></h4>
        <?php if (!empty($school->budget)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Wl Schooltype Id') ?></th>
                <th scope="col"><?= __('School Id') ?></th>
                <th scope="col"><?= __('Wl Budget Id') ?></th>
                <th scope="col"><?= __('Count') ?></th>
                <th scope="col"><?= __('Comment') ?></th>
                <th scope="col"><?= __('Year') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('Modified') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($school->budget as $budget): ?>
            <tr>
                <td><?= h($budget->id) ?></td>
                <td><?= h($budget->wl_schooltype_id) ?></td>
                <td><?= h($budget->school_id) ?></td>
                <td><?= h($budget->wl_budget_id) ?></td>
                <td><?= h($budget->count) ?></td>
                <td><?= h($budget->comment) ?></td>
                <td><?= h($budget->year) ?></td>
                <td><?= h($budget->created) ?></td>
                <td><?= h($budget->modified) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Budget', 'action' => 'view', $budget->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Budget', 'action' => 'edit', $budget->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Budget', 'action' => 'delete', $budget->id], ['confirm' => __('Are you sure you want to delete # {0}?', $budget->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
</div>
