<?php

use yii\helpers\Html;

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

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Vehicleremindersbes', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="vehicleremindersbe-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="card card-default">
		<div class="card-header">Vehicle Reminders</div>
		<div class="card-body">
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Vehicles</div>
				<div class="col-12 col-md-8 col-lg-4">
					<ul>
						<?php foreach ($model->vehicles as $key => $vehicle) {?> 
							<li><?= $vehicle->reg ?></li>
						<?php } ?>
					</ul>
				</div>
				<div class="col-12 col-md-4 col-lg-2 data-label">Employee</div>
				<div class="col-12 col-md-8 col-lg-4"><?= $model->employeel->fullname ?></div>
			</div>
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Date</div>
				<div class="col-12 col-md-8 col-lg-4"><?= $model->date ?></div>
				<div class="col-12 col-md-4 col-lg-2 data-label">Reminder Date</div>
				<div class="col-12 col-md-8 col-lg-4"><?= $model->reminderdate?></div>
			</div>
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Status</div>
				<div class="col-12 col-md-8 col-lg-4"><?= $model->status?></div>
			</div>
			<br />
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Frequency</div>
				<div class="col-12 col-md-8 col-lg-4"><?= $model->frequency?></div>
				<div class="col-12 col-md-4 col-lg-2 data-label">Paided by</div>
				<div class="col-12 col-md-8 col-lg-4"><?= $model->paidedby?></div>
			</div>
			<br />
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Type</div>
				<div class="col-12 col-md-8 col-lg-4"><?= $model->type?></div>
				<div class="col-12 col-md-4 col-lg-2 data-label">Description</div>
				<div class="col-12 col-md-8 col-lg-4"><?= $model->description?></div>
			</div>
			<br />
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Created by</div>
				<div class="col-12 col-md-8 col-lg-2"><?= $model->createdby->fullname ?></div>
				<div class="col-12 col-md-4 col-lg-2 data-label">Updated by</div>
				<div class="col-12 col-md-8 col-lg-2"><?= $model->updatedby->fullname ?></div>
			</div>
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Created at</div>
				<div class="col-12 col-md-8 col-lg-2"><?= $model->created_at?></div>
				<div class="col-12 col-md-4 col-lg-2 data-label">Updated at</div>
				<div class="col-12 col-md-8 col-lg-2"><?= $model->updated_at?></div>
				<div class="col-12 col-md-4 col-lg-2 data-label">Deleted at</div>
				<div class="col-12 col-md-8 col-lg-2"><?= $model->deleted_at?></div>
			</div>
		</div>
	</div>
</div>
