<?php

use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model modules\forms\models\Dtccrc */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'DT195', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="dt195-view">

    <table class="table table-borderless">
        <tr>
            <td colspan="4" class="">
                <img src="<?= Yii::$app->controller->action->id == 'view' ? '/' : '' ?>images/logo.jpg"></img>
            </td>
        </tr>
        <tr>
            <td align="left"><img src="<?= Yii::$app->controller->action->id == 'view' ? '/' : '' ?>images/homesafe.jpg" height="100px"></img></td>
            <td class="h1 text-center my-auto" colspan="2">Close Call Reporting Card</td>
            <td align="right"><img src="<?= Yii::$app->controller->action->id == 'view' ? '/' : '' ?>images/homesafe.jpg" height="100px"></img></td>
        </tr>
        <tr>
            <th class="DarkerBlue" colspan="4">Company Contact Numbers:
            </th>
        </tr>
        <tr class="">
            <th width="25%">Planning:</th>
            <td width="25%">07985 235 382</td>
            <th width="25%">Operations HQ:</th>
            <td width="25%">01622 854 730</td>
        </tr>
        <tr class="">
            <th>Engineer:</th>
            <td>07909 685 831</td>
            <th>HSEQ:</th>
            <td>07983 174 286</td>
        </tr>
        <tr>
            <th colspan="2">Company Email Address:</th>
            <td colspan="2"><a href="info@inlinetrack.co.uk">info@inlinetrack.co.uk</a></td>
        </tr>
        <tr>
            <td colspan="2" class="DarkerBlue">Recognise - Respond - Report</td>
            <td class="h2 text-center text-danger"><u>Close Call Card</u></td>
            <td><img src="<?= Yii::$app->controller->action->id == 'view' ? '/' : '' ?>images/logo.jpg" height="30px" width="auto"></img></td>
        </tr>
        <tr>
            <th class="DarkerBlue">Name</th>
            <td><?= $model->name ?></td>
            <th class="DarkerBlue">Location</th>
            <td><?= $model->location ?></td>
        </tr>
        <tr>
            <th class="DarkerBlue">Date</th>
            <td><?= date('d/m/Y',strtotime($model->date)) ?></td>
            <th class="DarkerBlue">Time</th>
            <td><?= date('H:i',strtotime($model->time)) ?></td>
        </tr>
        <tr>
            <th colspan="3" class="DarkerBlue">Safety Environmental Quality Health Welfare</th>
            <td><?= $model->issuetype ?></td>
        </tr>
        <tr>
            <th class="DarkerBlue" colspan="3"></th>
            <th class="DarkerBlue" >Where were you?</th>
        </tr>
        <tr>
            <th colspan="3" class="DarkerBlue">Close Call/Hazard/Concern:</th>
            <td rowspan="6" style="vertical-align: top"><?= $model->issuelocation ?></td>
        </tr>
        <tr>
            <td colspan="3"><?= $model->type ?></td>
        </tr>
        <tr>
            <th colspan="3" class="DarkerBlue">Please describe what could have happened:</th>

        </tr>
        <tr>
            <td colspan="3"><?= $model->description ?></td>
        </tr>

        <tr>
            <th class="DarkerBlue" colspan="3">
				Action Taken to Fix Problem? YES/NO Give Details:
			</th>
        </tr>
        <tr>
            <td colspan="3"><?= $model->action ?></td>
        </tr>
        <tr>
			<td colspan="4" class="text-danger h5 text-center text-uppercase" >
				PLEASE NOW FORWARD TO YOUR HSEQ MANAGER
            </td>
        </tr>
    </table>
</div>

<style>
.dt195-view th, .dt195-view td{
    padding: 10px;
}
</style>