<?php

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

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

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

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'created_at',
            'updated_at',
            'created_by',
            'updated_by',
            'deleted_by',
            'deleted_at',
            'deleted',
            'actid',
            'status',
            'padno',
            'jobno',
            'relatedid',
            'driver',
            'date',
            'cardno',
            'type',
            'quantity',
            'previousmileage',
            'odometer',
            'ppl',
            'price',
            'vat',
            'total',
            'mpg',
            
        ],
    ]) ?>

</div>
<p>
	
LifeTime<br />
Miles: <?= $model->lifetime['miles'];?><br />
Litres: <?= $model->lifetime['litres'];?><br />
MPG: <?= $model->lifetime['mpg'];?>
</p>