<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model modules\forms\models\Dt132 */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Dt132s', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="dt132-view">

    <table class="Table nolb norb notbb">
        <thead>
            <tr>
                <td class="nolb norb notbb" colspan="5">
                    <?= $this->render('//common/_viewheader', ['title' => 'Witness Statement Form DT132:']);?>

                </td>
            </tr>
        </thead>


        <tr>
            <td>Contract / Project:</td>
            <td><?= $model->contract ?></td>
            <td class="notbb">&nbsp;</td>
            <td>Inline Ref Number:</td>
            <td><?= $model->ref ?></td>
        </tr>
        <tr>
            <th>Details of Incident:</th>
            <td><?= $model->eventdetails ?></td>
            <td class="notbb">&nbsp;</td>
            <th colspan="2">Details of the event:</th>

        </tr>
        <tr>
            <td>Date of Event: <?= date('d/m/Y', strtotime($model->eventdate))?></td>
            <td>Time of Event: <?= $model->eventtime ?></td>
            <td class="notbb">&nbsp;</td>
            <td colspan="2" rowspan="2"><?= $model->incidentdetails ?></td>
            <td></td>
        </tr>
        <tr>
            <td>Location of Event</td>
            <td><?= $model->eventlocation ?></td>
            <td class="notbb">&nbsp;</td>
        </tr>
        <tr>
            <th class="DarkerBlue" colspan="2">WITNESS</th>

            <td class="notbb">&nbsp;</td>
            <th class="DarkerBlue" colspan="2">INTERVIEWER</th>

        </tr>
        <tr>
            <td>Name:</td>
            <td><?= $model->witnessname ?></td>
            <td class="notbb">&nbsp;</td>
            <td>Name:</td>
            <td><?= $model->intername ?></td>
        </tr>
        <tr>
            <td>Job Title:</td>
            <td><?= $model->witnesstitle ?></td>
            <td class="notbb">&nbsp;</td>
            <td>Job Title:</td>
            <td><?= $model->intertitle ?></td>
        </tr>
        <tr>
            <td>Employer:</td>
            <td><?= $model->witnessemployer ?></td>
            <td class="notbb">&nbsp;</td>
            <td>Employer:</td>
            <td><?= $model->interemployer ?></td>
        </tr>
    </table>


    <table class="Table">
        <tr>
            <th><i>This section to be completed after taking the statement</i></th>
        </tr>
        <tr>
            <th class="DarkerBlue">What do you believe could have been done to prevent the event</th>
        </tr>
        <tr>
            <td height="150px" style="vertical-align: top;"><?= $model->prevention ?></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <th><i>This section to be completed first</i></th>
        </tr>
        <tr>
            <th class="DarkerBlue">Witness Statement</th>
        </tr>
        <tr>
            <td height="600px" style="vertical-align: top;"><?= $model->statement ?></td>
        </tr>
    </table>

    <table class="Table">
        <tr class="DarkerBlue">
            <th>Print Name</th>
            <th>Signed</th>
            <th>Date</th>
        </tr>
        <tr>
            <td><?=$model->witnessname?></td>
            <td><img src="<?= $model->statementsign ?>" alt="Missing Signature"></img></td>
            <td><?= date('d/m/Y', strtotime($model->statementdate))?></td>
        </tr>
    </table>

</div>