<?php 
/**
* Note: This file may contain artifacts of previous malicious infection.
* However, the dangerous code has been removed, and the file is now safe to use.
*/
?>
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Car */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="car-form">

    <?php $form = ActiveForm::begin(); ?>
    <div class="card card-blue">
    <div class="card card-header">Add new car</div>
        <div class="card card-body">
    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'car_type_id')->dropDownList(\backend\models\CarType::getAll(),['prompt' => '--Select--']) ?>

    <?= $form->field($model, 'model')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'price_rate')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'no_of_passenger')->textInput() ?>

    <?= $form->field($model, 'color')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'no_of_doors')->textInput() ?>

    <?= $form->field($model, 'car_photo')->fileInput() ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
    </div>
        </div>
    </div>
    <?php ActiveForm::end(); ?>

</div>
