<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
$freq = ['anuually' => 'Annually', 'biannually' => 'Bi-Annually', 'quarterly' => 'quarterly', 'monthly' => 'Monthly', 'weekly' => 'Weekly', 'Daily' => 'Daily'];

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

<div class="vehicleremindersbe-form">
	<?php $form = ActiveForm::begin(); ?>
		<div class="card card-default">
			<div class="card-header">Vehicle Reminders</div>
			<div class="card-body">
				<div class="row">
					<div class='col-lg-2 col-sm-4 col-12'>Vehicle</div>
					<div class="col-lg-10 col-sm-8 col-12"><?= $form->field($model, 'vehiclesd')->checkboxlist($vehicles)->label(false)  ?></div>
					<div class='col-lg-2 col-sm-4 col-12'>Document</div>
					<div class='col-lg-4 col-sm-8 col-12'><?= $form->field($model, 'relatedid')->dropdownlist($documents, ['prompt' => 'Please Select'])->label(false)  ?></div>
					<div class='col-lg-2 col-sm-4 col-12'>Employee</div>
					<div class='col-lg-4 col-sm-8 col-12'><?= $form->field($model, 'employee')->dropdownlist($employees, ['prompt' => 'Please Select'])->label(false)  ?></div>
					<div class='col-lg-2 col-sm-4 col-12'>Date</div>
					<div class='col-lg-4 col-sm-8 col-12'><?= $form->field($model, 'date')->widget(\kartik\date\DatePicker::class, ['size' => 'sm', 'pluginOptions' => ['convertFormat' => true, 'format' => 'dd/mm/yyyy']])->label(false) ?></div>
					<div class='col-lg-2 col-sm-4 col-12'>Reminder Date</div>
					<div class='col-lg-4 col-sm-8 col-12'><?= $form->field($model, 'reminderdate')->widget(\kartik\date\DatePicker::class, ['size' => 'sm', 'pluginOptions' => ['convertFormat' => true, 'format' => 'dd/mm/yyyy']])->label(false) ?></div>
					<div class='col-lg-2 col-sm-4 col-12'>Status</div>
					<div class='col-lg-4 col-sm-8 col-12'><?= $form->field($model, 'status')->textInput()->label(false) ?></div>
					<div class='col-lg-2 col-sm-4 col-12'>Frequency</div>
					<div class='col-lg-4 col-sm-8 col-12'><?= $form->field($model, 'frequency')->dropdownlist($freq, ['prompt' => 'Please Select'])->label(false) ?></div>
					<div class='col-lg-2 col-sm-4 col-12'>Paid By</div>
					<div class='col-lg-4 col-sm-8 col-12'><?= $form->field($model, 'paidedby')->textInput()->label(false) ?></div>
					<div class='col-lg-2 col-sm-4 col-12'>Type</div>
					<div class='col-lg-4 col-sm-8 col-12'><?= $form->field($model, 'type')->textInput()->label(false) ?></div>
					<div class='col-lg-2 col-sm-4 col-12'>Description</div>
					<div class='col-lg-4 col-sm-8 col-12'><?= $form->field($model, 'description')->textArea()->label(false) ?></div>
				</div>
				<div class="form-group">
					<?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>
				</div>
			</div>
		</div>
	<?php ActiveForm::end(); ?>
</div>
