<?php

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

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

$this->title = $model->vehicle->reg.' - '.$model->date;
$this->params['breadcrumbs'][] = ['label' => 'Vehicle Service', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="vehicleservicehistorybe-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">Service</div>
		<div class="card-body">
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Vehicle</div>
				<div class="col-12 col-md-8 col-lg-4"><?= $model->vehicle->reg ?></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">Mileage</div>
				<div class="col-12 col-md-8  col-lg-4"><?= $model->mileage ?></div>
			</div>
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Garage / Service location</div>
				<div class="col-12 col-md-8  col-lg-4"><?= $model->garage ?></div>
				<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>
			<div class="row">
				<div class="col-12 data-label">Description</div>
				<div class="col-12"><p><?= $model->description ?></p></div>
			</div>
			<div class="row">
				<div class="col-12 data-label">Warnings</div>
				<div class="col-12"><p><?= $model->warnings ?></p></div>
			</div>
			<div class="row">
				<div class="col-12 data-label">Further Action</div>
				<div class="col-12"><p><?= $model->furtheractions ?></p></div>
			</div>
			<div class="row">
				<div class="col-12 col-md-4 col-lg-2 data-label">Cost</div>
				<div class="col-12 col-md-8  col-lg-4"><?= $model->cost ?></div>
				<div class="col-12 col-md-4 col-lg-2 data-label">Paid By</div>
				<div class="col-12 col-md-8  col-lg-4"><?= $model->paidby ?></div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-12">
			<?= $this->render('/uploads/files', ['files' => $model->files]); ?>
		</div>
	</div>

</div>
