<commit_before><?php

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

// print_r($tahun);
//             exit();
/* @var $this yii\web\View */
/* @var $model app\models\InstruksiKerjaSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="form-instruksi-kerja-search">

    <?php $form = ActiveForm::begin([
        'action' => ['issued'],
        'method' => 'get',
    ]); ?>

    <?= $form->field($model, 'id', ['template' => '{input}'])->textInput(['style' => 'display:none']); ?>

    <div class="row">
        <div class="col-md-4">
            

            <?= $form->field($model, 'case_number')->textInput(['maxlength' => true, 'placeholder' => 'Case Number']) ?>
            <?php $type_of_instruction = ["Cargo Damage" =>"Cargo Damage", "Hull Survey" => "Hull Survey", "Risks Survey" => "Risks Survey", "Carrier's Liability" => "Carrier's Liability"]; ?>
            <?= $form->field($model, 'type_of_instruction')->label("Type of Instruction")->widget(\kartik\widgets\Select2::classname(), [
                'data' => $type_of_instruction,
                'options' => ['placeholder' => 'Choose Type of Instruction'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]); ?>
            <?= $form->field($model, 'casualty')->textInput(['maxlength' => true, 'placeholder' => 'Casualty']) ?>
        </div>
        <div class="col-md-4">
            <?= $form->field($model, 'id_client')->widget(\kartik\widgets\Select2::classname(), [
                'data' => \yii\helpers\ArrayHelper::map(\app\models\Client::find()->orderBy('id')->asArray()->all(), 'id', 'nama'),
                'options' => ['placeholder' => 'Choose Assurer'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]); ?>
            <?= $form->field($model, 'insured')->textInput(['maxlength' => true, 'placeholder' => 'Insured']) ?>
            <?= $form->field($model, 'conveyence')->textInput(['maxlength' => true, 'placeholder' => 'Conveyence']) ?>
        </div>
        <div class="col-md-4">
            <?= $form->field($model, 'adjuster')->label("Adjuster")->widget(\kartik\widgets\Select2::classname(), [
                'data' => $adjuster,
                'options' => ['placeholder' => 'Adjuster'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]); ?>
            <?php 
                $month = array(
                    "Jan" => "-01-",
                    "Feb" => "-02-",
                    "Mar" => "-03-",
                    "Apr" => "-04-",
                    "May" => "-05-",
                    "Jun" => "-06-",
                    "Jul" => "-07-",
                    "Aug" => "-08-",
                    "Sep" => "-09-",
                    "Oct" => "-10-",
                    "Nov" => "-11-",
                    "Des" => "-12-");
                echo $form->field($model, 'month_option')->label("Choose Month")->widget(\kartik\widgets\Select2::classname(), [
                'data' => $month,
                'options' => ['placeholder' => 'Choose Month'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]);
            ?>
            <?php 
            // $form->field($model, 'date_of_instruction')->widget(\kartik\datecontrol\DateControl::classname(), [
            //     'type' => \kartik\datecontrol\DateControl::FORMAT_DATE,
            //     'saveFormat' => 'php:Y-m-d',
            //     'ajaxConversion' => true,
            //     'options' => [
            //         'pluginOptions' => [
            //             'placeholder' => 'Choose Date Of Instruction',
            //             'autoclose' => true
            //         ]
            //     ],
            //     ]); 
            //$th = '2017';
            echo $form->field($model, 'date_of_issued')->label("Choose Year")->widget(\kartik\widgets\Select2::classname(), [
                'data' => $tahun,
                'options' => ['placeholder' => 'Choose Year'],
                'pluginOptions' => [<commit_msg>edit month of issued<commit_after><?php

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

// print_r($tahun);
//             exit();
/* @var $this yii\web\View */
/* @var $model app\models\InstruksiKerjaSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="form-instruksi-kerja-search">

    <?php $form = ActiveForm::begin([
        'action' => ['issued'],
        'method' => 'get',
    ]); ?>

    <?= $form->field($model, 'id', ['template' => '{input}'])->textInput(['style' => 'display:none']); ?>

    <div class="row">
        <div class="col-md-4">
            

            <?= $form->field($model, 'case_number')->textInput(['maxlength' => true, 'placeholder' => 'Case Number']) ?>
            <?php $type_of_instruction = ["Cargo Damage" =>"Cargo Damage", "Hull Survey" => "Hull Survey", "Risks Survey" => "Risks Survey", "Carrier's Liability" => "Carrier's Liability"]; ?>
            <?= $form->field($model, 'type_of_instruction')->label("Type of Instruction")->widget(\kartik\widgets\Select2::classname(), [
                'data' => $type_of_instruction,
                'options' => ['placeholder' => 'Choose Type of Instruction'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]); ?>
            <?= $form->field($model, 'casualty')->textInput(['maxlength' => true, 'placeholder' => 'Casualty']) ?>
        </div>
        <div class="col-md-4">
            <?= $form->field($model, 'id_client')->widget(\kartik\widgets\Select2::classname(), [
                'data' => \yii\helpers\ArrayHelper::map(\app\models\Client::find()->orderBy('id')->asArray()->all(), 'id', 'nama'),
                'options' => ['placeholder' => 'Choose Assurer'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]); ?>
            <?= $form->field($model, 'insured')->textInput(['maxlength' => true, 'placeholder' => 'Insured']) ?>
            <?= $form->field($model, 'conveyence')->textInput(['maxlength' => true, 'placeholder' => 'Conveyence']) ?>
        </div>
        <div class="col-md-4">
            <?= $form->field($model, 'adjuster')->label("Adjuster")->widget(\kartik\widgets\Select2::classname(), [
                'data' => $adjuster,
                'options' => ['placeholder' => 'Adjuster'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]); ?>
            <?php 
                $month = array(
                    "-01-" => "Jan",
                    "-02-" => "Feb",
                    "-03-" => "Mar",
                    "-04-" => "Apr",
                    "-05-" => "May",
                    "-06-" => "Jun",
                    "-07-" => "Jul",
                    "-08-" => "Aug",
                    "-09-" => "Sep",
                    "-10-" => "Oct",
                    "-11-" => "Nov",
                    "-12-" => "Des");
                echo $form->field($model, 'month_option')->label("Choose Month")->widget(\kartik\widgets\Select2::classname(), [
                'data' => $month,
                'options' => ['placeholder' => 'Choose Month'],
                'pluginOptions' => [
                    'allowClear' => true
                ],
            ]);
            ?>
            <?php 
            // $form->field($model, 'date_of_instruction')->widget(\kartik\datecontrol\DateControl::classname(), [
            //     'type' => \kartik\datecontrol\DateControl::FORMAT_DATE,
            //     'saveFormat' => 'php:Y-m-d',
            //     'ajaxConversion' => true,
            //     'options' => [
            //         'pluginOptions' => [
            //             'placeholder' => 'Choose Date Of Instruction',
            //             'autoclose' => true
            //         ]
            //     ],
            //     ]); 
            //$th = '2017';
            echo $form->field($model, 'date_of_issued')->label("Choose Year")->widget(\kartik\widgets\Select2::classname(), [
                'data' => $tahun,
                'options' => ['placeholder' => 'Choose Year'],
                'pluginOptions' => [
{'fraction_non_alphanumeric': 0.20909854759332613, 'fraction_numerical': 0.008642419877565718, 'mean_word_length': 1.5795665634674922, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 217, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5775022', 'n_tokens_mistral': 2522, 'n_tokens_neox': 2310, 'n_words': 379}