dob));
$model->dob = $dob;
$license_expiry_date = date("m/d/Y",strtotime($model->license_expiry_date));
$model->license_expiry_date = $license_expiry_date;
}
?>
setModel($model) ?>
= $this->title; ?>
= $form->field($model, 'name')->textInput(); ?>
= $form->field($model, 'address')->textArea(); ?>
= $form->field($model, 'city')->textInput(); ?>
= $form->field($model, 'country')->textInput(); ?>
= $form->field($model, 'phone_number')->textInput(); ?>
= $form->field($model, 'email')->textInput(); ?>
= $form->field($model, 'dob')->textInput(['class' =>'form-control date datepicker', 'maxlength' => '10', 'placeholder' => 'YYYY-MM-DD', 'id' => 'dob']); ?>
= $form->field($model, 'gender')->radioList([1 => Yii::t("backend","Male"), 2 => Yii::t("backend","Female")]); ?>
= $form->field($model, 'password')->textInput(['type' => 'password']); ?>
= $form->field($model, 'confirm_password')->textInput(['type' => 'password']); ?>
= $form->field($model, 'identity_number')->textInput(); ?>
= $form->field($model, 'license_number')->textInput(); ?>
= $form->field($model, 'license_expiry_date')->textInput(['class' =>'form-control date datepicker', 'maxlength' => '10', 'placeholder' => 'YYYY-MM-DD', 'id' => 'licence']); ?>
= $form->field($model, 'vehicle_number')->textInput(); ?>
= $form->field($model, 'is_approved')->hiddenInput(['value' => $model->is_approved]); ?>
field($model, 'device_type')->dropDownList([1 => 'Android', 2 => 'IOS'],['class' =>'chosen-select'])*/?>
field($model, 'image')->fileInput(); */?>
image)) {
$html = Html::img($model->image, $options = ['alt' => 'Licence Image', 'style' => 'width:100px;height:100px'] );
echo Html::a($html, $model->image, ['target' => '_blank']);
}
?>
= Html::submitButton('Submit',
['class' => 'btn btn-success']) ?>
= Html::a('Cancel', ['index'], ['class' => 'btn btn-secondary']); ?>