<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model backend\models\Sightcheckbe */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Sightcheckbes', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
	.Pass{
		background-color:green;
		font-weight: bold;
	}
	.Fail{
		background-color:red;
		font-weight: bold;
	}
</style>
<div class="sightcheckbe-view">

    <p>
        <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

	<?= $this->render('@frontend/views/common/_pdfheader', ['title' => '6 Monthly Eye Sight Check']); ?>
	<div class="row">
		<div class="col-sm-2 DarkerBlue">Employee</div>
		<div class="col-sm-4"><?= $model->employeen->fullname ?></div>
		<div class="col-sm-2 DarkerBlue">Tester</div>
		<div class="col-sm-4"><?= $model->testern->fullname ?></div>
	</div>   
	<div class="row">
		<div class="col-sm-2 DarkerBlue">Date</div>
		<div class="col-sm-4"><?= $model->date?></div>
	</div>
	<div class="row">
		<div class="col-sm-2 DarkerBlue">Position</div>
		<div class="col-sm-4"><?= $model->position?></div>
		<div class="col-sm-2 DarkerBlue">Uses Vision Correction</div>
		<div class="col-sm-4"><?= $model->wearsglasses == 0 ? 'No' : 'Yes' ?></div>
	</div>
	<div class="row">
		<div class="col-sm-2 DarkerBlue">Type</div>
		<div class="col-sm-4"><?= $model->type?></div>
		<div class="col-sm-2 DarkerBlue">Location</div>
		<div class="col-sm-4"><?= $model->location?></div>
	</div>
	<div class="row">
		<div class="col-sm-2 DarkerBlue">Registration</div>
		<div class="col-sm-4"><?= $model->registration?></div>
		<div class="col-sm-2 DarkerBlue">Registarion Given</div>
		<div class="col-sm-4"><?= $model->registariongiven?></div>
	</div>
	<div class="row">
		<div class="col-sm-2 DarkerBlue">Result</div>
		<div class="col-sm-4 <?= $model->result ?>"><?= $model->result?></div>
	</div>
    
</div>
