<?php

use yii\helpers\Html;

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

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Complaintsbes', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="complaintsbe-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>


<div class="row">
	<div class="col-sm-2">Employee</div>
	<div class="col-sm-4"><?= $model->employeel->fullname ?></div>
	<div class="col-sm-2">Vehicle Reg</div>
	<div class="col-sm-4"><?= $model->vehiclel->reg ?></div>

</div>
<div class="row">
<div class="col-sm-2">Job No</div>
<div class="col-sm-4"><?= $model->jobno?></div>


<div class="col-sm-2">Status</div>
<div class="col-sm-4"><?= $model->status?></div>

</div>
<div class="row">
<div class="col-sm-2">Complainant Name</div>
<div class="col-sm-4"><?= Yii::$app->user->identity->useradv->accesslevel > 7 ? $model->comname : '******' ?></div>

<div class="col-sm-2">Complainant Phone</div>
<div class="col-sm-4"><?= Yii::$app->user->identity->useradv->accesslevel > 7 ? $model->comphone : '******' ?></div>

</div>
<div class="row">
<div class="col-sm-2">Complainant Address</div>
<div class="col-sm-10"><?= Yii::$app->user->identity->useradv->accesslevel > 7 ? $model->comaddress : '******' ?></div>

<div class="col-sm-2">Type of Complaint</div>
<div class="col-sm-4"><?= $model->type?></div>
</div>
<div class="row">

<div class="col-sm-2">Overview</div>

<div class="col-sm-10"><?= $model->overview ?></div>

</div>
<div class="row">
<div class="col-sm-4 data-label">Step</div>
<div class="col-sm-2 data-label">Complete</div>
<div class="col-sm-6 data-label">Date</div>
</div><div class="row">
<div class="col-sm-4">Step 1: Complaint Acknowledged</div>
<div class="col-sm-2"><?= $model->step1 == 1 ? HTML::IMG('/images/checked.png') : HTML::IMG('/images/unchecked.png') ?></div>
<div class="col-sm-2">Date</div>
<div class="col-sm-4"><?= $model->step1date ?></div>
</div>
<div class="row">
<div class="col-sm-4">Step 2:</div>
<div class="col-sm-2"><?= $model->step2 == 1 ? HTML::IMG('/images/checked.png') : HTML::IMG('/images/unchecked.png')?></div>
<div class="col-sm-2">Date</div>
<div class="col-sm-4"><?= $model->step2date ?></div>
</div>
<div class="row">
<div class="col-sm-4">Step 3</div>
<div class="col-sm-2"><?= $model->step3 == 1 ? HTML::IMG('/images/checked.png') : HTML::IMG('/images/unchecked.png') ?></div>
<div class="col-sm-2">Date</div>
<div class="col-sm-4"><?= $model->step3date ?></div>
</div>
<div class="row">
<div class="col-sm-4">Step 4</div>
<div class="col-sm-2"><?= $model->step4 == 1 ? HTML::IMG('/images/checked.png') : HTML::IMG('/images/unchecked.png') ?></div>
<div class="col-sm-2">Date</div>
<div class="col-sm-4"><?= $model->step4date ?></div>
</div>
<div class="row">
<div class="col-sm-4">Step 5</div>
<div class="col-sm-2"><?= $model->step5 == 1 ? HTML::IMG('/images/checked.png') : HTML::IMG('/images/unchecked.png') ?></div>
<div class="col-sm-2">Date</div>
<div class="col-sm-4"><?= $model->step5date ?></div>
</div>
<div class="row">
<div class="col-sm-4">Step 6</div>
<div class="col-sm-2"><?= $model->step6 == 1 ? HTML::IMG('/images/checked.png') : HTML::IMG('/images/unchecked.png') ?></div>
<div class="col-sm-2">Date</div>
<div class="col-sm-4"><?= $model->step6date ?></div>
</div>

<?= $this->render('/uploads/files', ['files' => $model->files]); ?>


<div class="row">
	<div class="col-sm-2">Created By</div>
	<div class="col-sm-2"><?= $model->createdby->fullname ?></div>
	<div class="col-sm-2">Updated By</div>
	<div class="col-sm-2"><?= $model->updatedby->fullname ?></div>
	<div class="col-sm-2">Deleted_by</div>
	<div class="col-sm-2"><?= $model->deleted_by ?></div>
</div>
<div class="row">
	<div class="col-sm-2">Created at</div>
	<div class="col-sm-2"><?= $model->created_at ?></div>
	<div class="col-sm-2">Updated at</div>
	<div class="col-sm-2"><?= $model->updated_at ?></div>
	<div class="col-sm-2">Deleted at</div>
	<div class="col-sm-2"><?= $model->deleted_at ?></div>
</div>
    
</div>
