<?php 
echo $form->field($model, 'renc_tgl_selesai')->widget(DatePicker::classname(), ['options' => ['value' => $result['renc_tgl_selesai'], 'placeholder' => 'Pilih Tanggal'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']])->label('Sampai Keberangkatan');
?>
        
            </div>
                <?php 
switch ($result['jenis_detail_id']) {
    case "3":
        echo $form->field($model, 'no_reg')->textInput(['readOnly' => true, 'require' => true, 'value' => str_pad($dat, 4, "0", STR_PAD_LEFT) . '/SPPD-DN/BU/' . \common\components\MyHelper::Romawi(date('m')) . '/' . date('Y')])->label('No. Kwitansi');
        break;
    case "4":
        echo $form->field($model, 'no_reg')->textInput(['readOnly' => true, 'require' => true, 'value' => str_pad($dat, 4, "0", STR_PAD_LEFT) . '/SPPD-DN/BU/' . \common\components\MyHelper::Romawi(date('m')) . '/' . date('Y')])->label('No. Kwitansi');
        break;
    case "5":
        echo $form->field($model, 'no_reg')->textInput(['readOnly' => true, 'require' => true, 'value' => str_pad($dat, 4, "0", STR_PAD_LEFT) . '/SPPD-LN/BU/' . \common\components\MyHelper::Romawi(date('m')) . '/' . date('Y')])->label('No. Kwitansi');
        break;
}
?>

                
            <?php 
echo $form->field($model, 'nip_ppk')->hiddenInput(['readonly' => true, 'rows' => 6, 'value' => HelperUnit::Ppk(HelperUnit::ParentUnit($_GET['unit']))])->label(false);
?>

        </div>
    </div>


    <div class="modal-footer">
        <div class="row">