<?php
/**
 * @var \App\View\AppView $this
 * @var \App\Model\Entity\Timeline $timeline
 */
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Html->link(__('Edit Timeline'), ['action' => 'edit', $timeline->id]) ?> </li>
        <li><?= $this->Form->postLink(__('Delete Timeline'), ['action' => 'delete', $timeline->id], ['confirm' => __('Are you sure you want to delete # {0}?', $timeline->id)]) ?> </li>
        <li><?= $this->Html->link(__('List Timelines'), ['action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Timeline'), ['action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Projects'), ['controller' => 'Projects', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Project'), ['controller' => 'Projects', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Freelancers'), ['controller' => 'Freelancers', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Freelancer'), ['controller' => 'Freelancers', 'action' => 'add']) ?> </li>
    </ul>
</nav>
<div class="timelines view large-9 medium-8 columns content">
    <h3><?= h($timeline->id) ?></h3>
    <table class="vertical-table">
        <tr>
            <th scope="row"><?= __('Project') ?></th>
            <td><?= $timeline->has('project') ? $this->Html->link($timeline->project->id, ['controller' => 'Projects', 'action' => 'view', $timeline->project->id]) : '' ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Event') ?></th>
            <td><?= h($timeline->event) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Freelancer') ?></th>
            <td><?= $timeline->has('freelancer') ? $this->Html->link($timeline->freelancer->name, ['controller' => 'Freelancers', 'action' => 'view', $timeline->freelancer->id]) : '' ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Id') ?></th>
            <td><?= $this->Number->format($timeline->id) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Perform By') ?></th>
            <td><?= $this->Number->format($timeline->perform_by) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Created') ?></th>
            <td><?= h($timeline->created) ?></td>
        </tr>
    </table>
</div>
