<?php

use common\models\Barang;
use yii\helpers\Html;
use yii\bootstrap\Tabs;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\date\DatePicker;
use kartik\select2\Select2;
use kartik\depdrop\DepDrop;
use yii\helpers\Url;
use common\models\Principal;
use common\models\Sumberorder;
use yii\web\JsExpression;
use yii\web\View;
/* @var $this yii\web\View */
/* @var $model frontend\models\OrderReportks */
/* @var $form yii\widgets\ActiveForm */

$this->title = 'Report Kasir';
$this->params['breadcrumbs'][] = ['label' => 'SO', 'url' => ['/so/listkasir']];
$this->params['breadcrumbs'][] = 'Report Kasir';



?>
<div class="OrderReportks-create">
	<div class="OrderReportks-form">
		<div class="panel panel-primary">
			<div class="panel-heading">
				<h3 class="panel-title">- Export Data -</h3>
			</div>
			<div class="panel-body">
				<div class="orderreportks-form">
					<?php $form = ActiveForm::begin(); ?>
					<div class="row">
						<div class="col-md-6">
						<?= $form->errorSummary($model); ?>
						</div>
					</div>
					<div class="row">
						<div class="col-md-4">
							<?php echo $form->field($model, 'tglstart')->widget(
								DatePicker::className(), [
								'type' => DatePicker::TYPE_COMPONENT_APPEND,
								'options' => ['placeholder' => 'Pilih Tanggal ...'],
								'convertFormat' => true,
								'pluginOptions' => [
									'format' => 'yyyy-M-dd',
									//'endDate' => '31-12-1999',
									'autoclose' => true,
									//'startView' => 'decade',
									'todayHighlight' => true
								]
							]); 
							?>	</div>
						<div class="col-md-4">
							<?php echo $form->field($model, 'tglend')->widget(
								DatePicker::className(), [
								'type' => DatePicker::TYPE_COMPONENT_APPEND,
								'options' => ['placeholder' => 'Pilih Tanggal ...'],
								'convertFormat' => true,
								'pluginOptions' => [
									'format' => 'yyyy-M-dd',
									//'endDate' => '31-12-1999',
									'autoclose' => true,
									//'startView' => 'decade',
									'todayHighlight' => true
								]
							]); 
							?>
							
						</div>
					</div>
					<div class="row">
						<div class="col-md-12">
						<div class="">
						<div class="pull-left">
							<div class="form-group">
								<?=  Html::a('<i class="fa fa-arrow-circle-left "></i> Kembali',['listkasir'],['class' => 'btn btn-success']) ?>
								<?= Html::submitButton('Generate Report', ['class' => 'btn btn-success']) ?>
							</div>
						</div>
						</div>
						
						</div>
					</div>
					<?php ActiveForm::end(); ?>
				</div>
			</div>
		</div>
	</div>
</div>
