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

<div class="ncds view large-9 medium-8 columns content">
<div class="col-md-6">
       <h3>NCD Application Detail</h3></div>
	   <div class="col-md-6">
       <div ><?= $this->Html->link(__('List NCDs'), ['controller' => 'ncds','action' => 'index'],['class'=>'green-btn', 'title' => 'list ncd', 'type' => 'button']) ?></div>  
    <div class="btn-link"><?= $this->Html->link(__('Edit'), ['action' => 'edit', $ncd->id],['class'=>'green-btn', 'title' => 'Edit ncds', 'type' => 'button']) ?></div></div> 
    <table class="vertical-table">
      <tr>
            <th scope="row"><?= __('Applicant Name') ?></th>
            <td><?= h($ncd->fapplicantname) ?></td>
        </tr>
       <?php if(!empty($ncd['minorname'])) { ?>
         <tr>
            <th scope="row"><?= __('Minor Name') ?></th>
            <td><?= h($ncd->minorname) ?></td>
        </tr>
        <?php } ?>
        <tr>
            <th scope="row"><?= __('Panno') ?></th>
            <td><?= h($ncd->panno) ?></td>
        </tr> 
		
		 <?php if(!empty($ncd['applicationno'])) { ?>
		<tr>
            <th scope="row"><?= __('Application no') ?></th>
            <td><?= h($ncd->applicationno) ?></td>
        </tr> 
		<?php } ?>
		<tr>
            <th scope="row"><?= __('Type of Deposit') ?></th>
            <td><?= h($ncd->typeofdeposit) ?></td>
        </tr>		
        <tr>
		<th scope="row"> <?= __('Company Name') ?> </th>
		<td><?=h($productcompanyName) ?></td>
		</tr>
		
       
      <?php if(!empty($ncd['tenure']))
{ ?>
         <tr>
            <th scope="row"><?= __('Period') ?></th>
            <td><?= h($ncd->tenure) ?>months</td>
        </tr> 
		<?php }		?>
		<?php if(!empty($ncd['chequeno']))
{ ?>
        <tr>
            <th scope="row"><?= __('Cheque Number') ?></th>
            <td><?= h($ncd->chequeno) ?></td>
        </tr>
		<?php }		?>
		<?php if(!empty($ncd['fdrno'])) { ?>
		<tr>
		<th scope="row"><?= __('FDR no') ?></th>
		<td><?= h($ncd->fdrno) ?></td>
		</tr>
		<?php } ?>
		<?php if(!empty($ncd['bank_id'])){ ?>
		<tr>
		<th scope="row"><?= __('Bank') ?></th>
		<td><?= h($bankname) ?></td>
		</tr>
		<?php } ?>
		<tr>
            <th scope="row"><?= __('Mainbroker') ?></th>
            <td><?= h($mainbrokerName) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Subbroker') ?></th>
            <td><?= $ncd->has('broker') ? $this->Html->link($ncd->broker->name, ['controller' => 'Brokers', 'action' => 'view', $ncd->broker->broker_id]) : '' ?></td>
        </tr>
        
       
       
         <tr>
            <th scope="row"><?= __('Amount') ?></th>
            <td><?= h($ncd->amount) ?></td>
        </tr>
		 <tr>
       <th><?= __('Postedby') ?></th>
            <td><?= h($userName) ?></td>
			
        </tr>
		<tr>
            <th scope="row"><?= __('User Company Name') ?></th>
            <td><?= $ncd->has('company') ? $this->Html->link($ncd->company->company, ['controller' => 'Companies', 'action' => 'view', $ncd->company->id]) : '' ?></td>
        </tr>
        <tr>
            <th><?= __('Posteduserbranch') ?></th>
           	<td><?= h($branchname) ?></td>
        </tr>
		<tr>
            <th><?= __('Created') ?></th>
            <td><?php $created = explode(" ", $ncd->created);
                 echo $created[0]; 
                ?></td>
        </tr>
           
        
    </table>
    <div class="btn-link"><input type="button" value="Back" onclick="window.history.back()" class="green-btn" /> </div>
</div>

