<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <?= $this->element('admin_sidebar') ?>
</nav>
<div class="customers form large-9 medium-8 columns content">


    <?= $this->Form->create($fds) ?>
    <fieldset class="fieldset2">
        <legend><?= __('Add FD Data') ?></legend>
        <div class="addmenu-col">
            <div class="column-box">
                <?php
                //echo $this->Form->input('id',['type'=>'hidden']);
                echo $this->Form->input('fdtable_fdid',['type'=>'hidden']);

                if(!empty($fds['fdtable_fdid'])){
                    $disabled ="disabled";
                }else{
                    $disabled ="";
                }


                echo $this->Form->input('csvid', ['class' => __('add-column'),'label' =>'Select Company Name:','required' => true,'options' => $filenames,'empty'=>'Choose Company Name','disabled'=>$disabled]);
                echo $this->Form->input('customer_name', ['class' => __('add-column'),'label' => ['text' => __('Applicant Name: ')],'required' => true]);
                echo $this->Form->input('pan_no', ['class' => __('add-column'),'label' => ['text' => __('Applicant Pan No: ')]]);
                echo $this->Form->input('application_no', ['class' => __('add-column'),'label' => ['text' => __('Application No: ')]]);
                echo $this->Form->input('typeofdeposit', ['class' => __('add-column'),'empty'=>'Choose Investment Type','label' =>'Investment Type:','options' => $typeofdeposit]);
                //echo $this->Form->input('application_date', ['required' => true, 'class'=>'datepicker', 'type'=>'text','label' =>'Application Date: ']);
                echo $this->Form->input('application_date', ['required' => false,	'class'=>'datepicker','type'=>'text','placeholder'=>'dd/mm/yyyy', 'label' =>'Investment Date: ']);
                //echo $this->Form->input('payment_mode', ['class' => __('add-column'),'id'=>'paymentmode','empty'=>'Choose Payment Mode','label' =>'Payment Mode:','options' => $paymentmode]);
                //echo $this->Form->input('payment_mode', ['class' => __('add-column'),'label' => ['text' => __('Payment Mode: ')]]);
                echo $this->Form->input('cheque_no', ['class' => __('add-column'),'label' => ['text' => __('Cheque No: ')]]);
                echo $this->Form->input('utr_fdr_no', ['class' => __('add-column'),'label' => ['text' => __('UTR/FDR No: ')]]);
                echo $this->Form->input('investment_amount', ['class' => __('add-column'),'label' => ['text' => __('Investment Amount: ')]]);
                echo $this->Form->input('period', ['class' => __('add-column'),'label' => ['text' => __('Period (In Month): ')]]);
                //echo $this->Form->input('maturity_date', ['required' => true, 'class'=>'datepicker', 'type'=>'text','label' =>'Maturity Date: ']);
                echo $this->Form->input('maturity_date', ['required' => false,	'class'=>'datepicker', 'type'=>'text','placeholder'=>'dd/mm/yyyy', 'label' =>'Maturity Date: ']);
                echo $this->Form->input('address', ['class' => __('add-column'),'label' => ['text' => __('Address: ')]]);
                echo $this->Form->input('product_name', ['class' => __('add-column'),'label' => ['text' => __('Product name: ')]]);
                //echo $this->Form->input('company_name', ['class' => __('add-column'),'label' => ['text' => __('Company Name: ')]]);
                echo $this->Form->input('institution_name', ['class' => __('add-column'),'label' => ['text' => __('Institution Name: ')]]);
                echo $this->Form->input('branch_id',['class' => __('add-column'),'empty'=>'Choose branch','label' => 'Investment Branch:','options' => $branches]);
                //echo $this->Form->input('sub_broker', ['class' => __('add-column'),'label' => ['text' => __('Sub Broker Name: ')]]);
                echo $this->Form->input('sub_broker', ['class' => __('add-column'),'label' =>'Sub Broker Name:','required' => false,'options' => $subbrokers,'empty'=>'Choose Sub Broker']);
                echo $this->Form->input('email', ['class' => __('add-column'),'label' => ['text' => __('Email Id:')]]);
                ?>
            </div>
        </div>
    </fieldset>
    <div class="add-button">
        <?= $this->Form->button(__('Submit'),['class' => 'green-btn']) ?>
    </div>
    <div class="btn-link"><input type="button" value="Back" onclick="window.history.back()" class="green-btn new_back" /> </div>
    <?= $this->Form->end() ?>
</div>
<script>
    $(document).ready(function() {
        $('form').submit(function() {
            $('select').removeAttr('disabled');
        });
    });

</script>

