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

<div class="ncds index large-9 medium-8 columns content">
    <h3><?= __('Reports NCD') ?></h3>
	<div class="search-wrapper"> 
    <div class="btn-link">
            <?= $this->Html->link(__('Excel Export'), [
               'controller' => 'Reports', 'action' => 'ncdreports',
               '?' =>['applicationno'=> $applicationno,
                'fapplicantname'=> $fapplicantname,
                'panno' => $panno,   
                'datedform'=> $datedform,
                'datedto'=> $datedto,
                'banks'=> $banks,
                'customerid'=>$customerid]],['class'=>'green-btn']); ?></div> 
          <fieldset class="fieldset2">      
            <div class="search-filter"><?= $this->Search->filterForm($searchFilters) ?></div>       
          </fieldset>   
        </div>
    <table class="tbl-wrapper" cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <th style="width:40px;" scope="col"><?= $this->Paginator->sort('id') ?></th>
               <!--  <th scope="col"><?= $this->Paginator->sort('user_id') ?></th>
                <th scope="col"><?= $this->Paginator->sort('company_id') ?></th>
                <th scope="col"><?= $this->Paginator->sort('branch_id') ?></th>-->
                <th scope="col"><?= $this->Paginator->sort('Application No') ?></th>
               <!-- <th scope="col"><?= $this->Paginator->sort('managercode') ?></th>
                <th scope="col"><?= $this->Paginator->sort('submanagercode') ?></th>
                <th scope="col"><?= $this->Paginator->sort('subbrokeragentcode') ?></th>
                <th scope="col"><?= $this->Paginator->sort('escrowbankbranchcode') ?></th>
                <th scope="col"><?= $this->Paginator->sort('bankbranchserialno') ?></th> -->
               <!--  <th scope="col"><?= $this->Paginator->sort('reg no') ?></th> -->
               <!--  <th scope="col"><?= $this->Paginator->sort('receiptdated') ?></th> -->
                <th scope="col"><?= $this->Paginator->sort('First Applicant Name') ?></th>
               <!--  <th scope="col"><?= $this->Paginator->sort('firstapplicantdob') ?></th>
                <th scope="col"><?= $this->Paginator->sort('firstapplicantguardian') ?></th>
                <th scope="col"><?= $this->Paginator->sort('firstapplicantaddress') ?></th>
                <th scope="col"><?= $this->Paginator->sort('firstapplicantpinno') ?></th>
                <th scope="col"><?= $this->Paginator->sort('firstapplicantemail') ?></th>
                <th scope="col"><?= $this->Paginator->sort('firstapplicanttelphoneno') ?></th> -->
                <!-- <th scope="col"><?= $this->Paginator->sort('sapplicantname') ?></th>
                <th scope="col"><?= $this->Paginator->sort('tapplicantname') ?></th> -->
               <!--  <th scope="col"><?= $this->Paginator->sort('nomineename') ?></th> -->
               <!--  <th scope="col"><?= $this->Paginator->sort('nomineeguardianname') ?></th>
                <th scope="col"><?= $this->Paginator->sort('bank_id') ?></th>
                <th scope="col"><?= $this->Paginator->sort('bankdetail_id') ?></th>-->
                <th scope="col"><?= $this->Paginator->sort('Account No') ?></th>
                <th scope="col"><?= $this->Paginator->sort('IFSC Code') ?></th>
                <th scope="col"><?= $this->Paginator->sort('MIRC Code') ?></th> 
               <!--  <th scope="col"><?= $this->Paginator->sort('paymentdetail') ?></th> -->
                <th scope="col"><?= $this->Paginator->sort('Amount') ?></th>
               <!--  <th scope="col"><?= $this->Paginator->sort('chequeno') ?></th>
                <th scope="col"><?= $this->Paginator->sort('dated') ?></th>
                <th scope="col"><?= $this->Paginator->sort('drawn bank') ?></th> -->
               <!--  <th scope="col"><?= $this->Paginator->sort('asbabankacno') ?></th>
                <th scope="col"><?= $this->Paginator->sort('asbaacholdername') ?></th>
                <th scope="col"><?= $this->Paginator->sort('asbabankbranchname') ?></th>-->
                <!-- <th scope="col"><?= $this->Paginator->sort('firstapplicantpan') ?></th> -->
               <!--  <th scope="col"><?= $this->Paginator->sort('secondapplicantpan') ?></th>
                <th scope="col"><?= $this->Paginator->sort('thirdapplicantpan') ?></th>
                <th scope="col"><?= $this->Paginator->sort('signatureasbabankaccountholder1') ?></th>
                <th scope="col"><?= $this->Paginator->sort('signatureasbabankaccountholder2') ?></th>
                <th scope="col"><?= $this->Paginator->sort('signatureasbabankaccountholder3') ?></th>  -->
               
            </tr>
        </thead>
        <tbody>
            <?php foreach ($ncds as $ncd): ?>
            <tr>
                <td style="width:40px;"><?= $this->Number->format($ncd->id) ?></td>
                <!-- <td><?= $ncd->has('user') ? $this->Html->link($ncd->user->accountno, ['controller' => 'Users', 'action' => 'view', $ncd->user->id]) : '' ?></td>
                <td><?= $ncd->has('company') ? $this->Html->link($ncd->company->company, ['controller' => 'Companies', 'action' => 'view', $ncd->company->id]) : '' ?></td>
                <td><?= $ncd->has('branch') ? $this->Html->link($ncd->branch->branchname, ['controller' => 'Branches', 'action' => 'view', $ncd->branch->id]) : '' ?></td>-->
                <td><?= h($ncd->applicationno) ?></td> 
                <!--<td><?= h($ncd->managercode) ?></td>
                <td><?= h($ncd->submanagercode) ?></td>
                <td><?= h($ncd->subbrokeragentcode) ?></td>
                <td><?= h($ncd->escrowbankbranchcode) ?></td>
                <td><?= $this->Number->format($ncd->bankbranchserialno) ?></td> -->
               <!--  <td><?= $this->Number->format($ncd->registratersserialno) ?></td>
                <td><?= h($ncd->dateofreceipt) ?></td> -->
                <td><?= h($ncd->firstapplicantname) ?></td>
               <!--  <td><?= h($ncd->firstapplicantdob) ?></td>
                <td><?= h($ncd->firstapplicantguardian) ?></td>
                <td><?= h($ncd->firstapplicantaddress) ?></td>-->
               <!--  <td><?= $this->Number->format($ncd->firstapplicantpinno) ?></td> -->
               <!--  <td><?= h($ncd->firstapplicantemail) ?></td>
                <td><?= h($ncd->firstapplicanttelphoneno) ?></td> --> 
              <!--   <td><?= h($ncd->secondapplicantname) ?></td>
                <td><?= h($ncd->thirdapplicantname) ?></td> 
                <td><?= h($ncd->nomineename) ?></td>-->
               <!--  <td><?= h($ncd->nomineeguardianname) ?></td>
                <td><?= $ncd->has('bank') ? $this->Html->link($ncd->bank->banks, ['controller' => 'Banks', 'action' => 'view', $ncd->bank->id]) : '' ?></td>
                <td><?= $this->Number->format($ncd->bankdetail_id) ?></td>-->
                <td><?= h($ncd->accountno) ?></td>
                <td><?= h($ncd->ifsccode) ?></td>
                <td><?= h($ncd->micrcode) ?></td> 
               <!--  <td><?= h($ncd->paymentdetail) ?></td> -->
                <td><?= $this->Number->format($ncd->amount) ?></td>
                <!-- <td><?= $this->Number->format($ncd->chequeno) ?></td>
                <td><?= h($ncd->dated) ?></td> 
                <td><?= h($ncd->drawnonbankbranchname) ?></td>-->
                <!-- <td><?= $this->Number->format($ncd->asbabankacno) ?></td>
                <td><?= h($ncd->asbaacholdername) ?></td>
                <td><?= h($ncd->asbabankbranchname) ?></td>
                <td><?= h($ncd->firstapplicantpan) ?></td>
                <td><?= h($ncd->secondapplicantpan) ?></td>
                <td><?= h($ncd->thirdapplicantpan) ?></td>
                <td><?= h($ncd->signatureasbabankaccountholder1) ?></td>
                <td><?= h($ncd->signatureasbabankaccountholder2) ?></td>
                <td><?= h($ncd->signatureasbabankaccountholder3) ?></td> -->
                
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
    <div class="paginator">
        <ul class="pagination">
            <?= $this->Paginator->first(__('First', true), array('class' => 'disabled')); ?>
            <?= $this->Paginator->prev('< ' . __('previous',true), array('class' => 'disabled')) ?>
            <?= $this->Paginator->numbers() ?>
            <?= $this->Paginator->next(__('next' . ' >',true), array('class' => 'disabled')) ?>
		 <?=  $this->Paginator->last(__('Last', true), array('class' => 'disabled')); ?>
        </ul>
        <p><?= $this->Paginator->counter() ?></p>
    </div>
</div>
