<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
$status = ['Active' => 'Active', 'Inactive' => 'Expired', 'Deleted' => 'Deleted'];
/* @var $this yii\web\View */
/* @var $model backend\models\Licenseendorsementsbe */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="licenseendorsementsbe-form">
	<?php $form = ActiveForm::begin(); ?>
		<div class="card card-default">
			<div class="card-header">Licenses - Create Endorsement</div>
			<div class="card-body">
				<div class="row">
					<div class="col-12 col-md-4 col-lg-2 data-label">Employee</div>
					<div class="col-12 col-md-8 col-lg-4"><?= $form->field($model, 'relatedid')->dropdownlist($employeelicense, ['prompt' => 'Please Select'])->label(false) ?></div>
					<div class="col-12 col-md-4 col-lg-2 data-label">Points Status</div>
					<div class="col-12 col-md-8 col-lg-4"><?= $form->field($model, 'status')->dropdownlist($status, ['prompt' => 'Please Select'])->label(false) ?></div>
				</div>
				<div class="row">
					<div class="col-12 col-md-4 col-lg-2 data-label">Description</div>
					<div class="col-12 col-md-8 col-lg-10"><?= $form->field($model, 'description')->textArea()->label(false) ?></div>
				</div>
				<div class="row">
					<div class="col-12 col-md-4 col-lg-2 data-label">Fine</div>
					<div class="col-12 col-md-8 col-lg-4"><?= $form->field($model, 'fine')->textInput()->label(false) ?></div>
					<div class="col-12 col-md-4 col-lg-2 data-label">Duration</div>
					<div class="col-12 col-md-8 col-lg-4"><?= $form->field($model, 'duration')->textInput()->label(false) ?></div>
				</div>
				<div class="row">
					<div class="col-12 col-md-4 col-lg-2 data-label">Points Awarded</div>
					<div class="col-12 col-md-8 col-lg-4"><?= $form->field($model, 'pointsawarded')->textInput()->label(false) ?></div>
					<div class="col-12 col-md-4 col-lg-2 data-label">Offence Date</div>
					<div class="col-12 col-md-8 col-lg-4"><?= $form->field($model, 'offencedate')->widget(\kartik\date\DatePicker::class, ['pluginOptions' => ['showMeridian' =>true, 'convertFormat' => true, 'format' => 'dd/mm/yyyy']])->label(false) ?></div>
				</div>
				<div class="row">
					<div class="col-12 col-md-4 col-lg-2 data-label">Issue Date</div>
					<div class="col-12 col-md-8 col-lg-4"><?= $form->field($model, 'issuedate')->widget(\kartik\date\DatePicker::class, ['pluginOptions' => ['showMeridian' =>true, 'convertFormat' => true, 'format' => 'dd/mm/yyyy']])->label(false) ?></div>
					<div class="col-12 col-md-4 col-lg-2 data-label">Expiry Date</div>
					<div class="col-12 col-md-8 col-lg-4"><?= $form->field($model, 'expirydate')->widget(\kartik\date\DatePicker::class, ['pluginOptions' => ['showMeridian' =>true, 'convertFormat' => true, 'format' => 'dd/mm/yyyy']])->label(false) ?></div>
				</div>
				<div class="form-group">
						<?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>
				</div>
			</div>
		</div>
	<?php ActiveForm::end(); ?>
</div>
