				
<?php
$today = (!empty($created_on)) ? date("d/m/Y",strtotime($created_on)) : date("d/m/Y");
$tel_html = ( !empty( $settings['contact_no'] ) ? 'Tel: '.$settings['contact_no'] : '' ).'&nbsp;&nbsp;'. (!empty( $settings['fax'] ) ? 'Fax: '.$settings['fax'] : '');

?>
    <div class="page" style="<?php echo $status == "2" || IS_DEMO ? 'background: url('. BASE_URL .'assets/images/watermark'. ( IS_SHORT ? '-short' : '' ) . ( IS_DEMO ? '-demo' : '' ) .'.png) no-repeat center;' : ''; ?>" >
	<table width="<?php echo WIDTH; ?>" border="0" style="<?php echo IS_SHORT ? 'font-size:12px;' . ( $type != 5 ? ' border-bottom: 1px solid #999; ' : '' ) : 'font-size:14px;font-weight:bold;'; ?> font-family:Verdana, Geneva, sans-serif;">
        <tr>
            <td>
                <table width="<?php echo WIDTH; ?>">
                    
                    <?php if( IS_SHORT ) : ?>
                        <tr>
                            <td width="37.5%"></td>
                            <td width="37.5%"></td>
                            <td width="15%"></td>
                            <td width="10%"></td>
                        </tr>
                        
                        <tr>
                            <td colspan="2" width="75%"><?php echo !empty( $rec_no ) ? 'No: <strong>' . (is_array( $rec_no ) ? $rec_no[0] : $rec_no) . '</strong>' : '&nbsp;'; ?></td>
                            <td width="15%" rowspan="3" style="font-size:24px;" align="right"><?php echo $total_qty; ?></td>
                            <td width="10%">&nbsp;</td>
                        </tr>
                    
                        <tr>
                            <td colspan="2">Date: <strong><?php echo $today.($type != '5' ? ' '.date("h:i A") : ''); ?></strong></td>
                            <td>&nbsp;</td>
                        </tr>
						
						<tr>
                            <td colspan="2">GST Reg No: <strong>M90373384T</strong></td>
                            <td>&nbsp;</td>
                        </tr>
                        
                        <tr>
                                <td colspan="4" style="font-weight:bold; font-size:13px; font-family:Amudham; font-size:25px; text-shadow: 1px 0px #000;" align="center"><strong><?php echo $settings['tamil_name']; ?></strong></td>
                        </tr>
                        <tr>
                                <td colspan="4" style="font-weight:bold; text-transform:uppercase;" align="center"><?php echo $settings['temple_name']; ?></td>
                        </tr>
                        <?php     
                        /*
                        <tr>
                                <td colspan="4" align="center"><?php echo nl2br($settings['address']); ?></td>
                        </tr>
                        <tr>
                                <td colspan="4" align="center"><?php echo $tel_html; ?></td>
                        </tr>*/
                        
                        if( !empty( $title ) ) : 
                        ?>
                            
                            <tr>
                                <td colspan="4" style="font-weight:bold; text-transform:uppercase;" align="center"><?php echo $title; ?></td>
                            </tr>
                        <?php 
                        endif;
                        
                    else:
                        
                        // Large
                        $logo_url = !empty( $settings['logo'] ) && file_exists( DIR_COMPANY_LOGO . $settings['logo'] ) ?  DIR_COMPANY_LOGO . $settings['logo'] : 'assets/images/logo.png';
                    ?>    
                        <tr>
                            <td width="5%"><div style="min-width: 200px;">
							<img src="<?php  echo BASE_URL.$logo_url; ?>" style="max-width: 100%;" /> 
							</div></td>
                            <td width="70%">
                                <table border="0" width="100%">
                                    <tr>
                                        <td align="center">
										<strong><?php echo tamil($settings['tamil_name'], 'font-weight:bold; font-family:Amudham; font-size:25px; text-shadow: 1px 0px #000; border: none; width: 100%; text-align: center;'); ?></strong> 
										
										</td>
                                    </tr>
                                    <tr>
                                        <td align="center" style="font-size:18px;">
										<?php  echo $settings['temple_name']; ?></td>
                                    </tr>
                                    <tr>
                                        <td align="center"><?php  echo nl2br($settings['address']); ?></td>
                                    </tr>
                                    <tr>
                                        <td align="center"><?php  echo $tel_html; ?></td>
                                    </tr>

                                    <?php if( !empty( $settings['contact_email'] ) ) : ?>
                                        <tr>
                                            <td align="center"><?php  echo $settings['contact_email'] . ( !empty( $settings['website_url'] ) ? ' | ' . $settings['website_url'] : ' | www.srivkt.org' ); ?></td>
                                        </tr>
                                    <?php  endif; #if( !empty( $settings['website_url'] ) ) : ?>
                                        <!--<tr>
                                            <td align="center"><?php // echo $settings['website_url']; ?></td>
                                        </tr>-->
                                    <?php #endif; ?>
                                </table>
                           </td>


                           <td width="20%">
                                <?php if(!IS_KSK_CMS) {  ?>
                                    <table border="0" width="100%">
                                        <?php if(!empty($rec_no)) : ?>
                                        <tr>
                                            <td align="left" valign="middle"> <strong>Receipt No: <span style="font-weight:bold; font-size:20px;"> <?php echo $rec_no; ?> </span></strong></td>
                                        </tr>
                                        <tr height="5"></tr>

                                        <?php endif; // if( $is_copy ): ?>
                                        <!-- <tr>
                                            <td align="left" valign="middle" data-copy="Official's copy">Devotee's Copy</td>
                                        </tr>
                                        <tr height="5"></tr> -->
                                        <?php // endif; ?>

                                        <!--<tr>
                                            <td align="left" valign="middle" style="font-family:Amudham; font-size:15px;"><strong>தேதி</strong><span style="font-family:Verdana, Geneva, sans-serif; font-size:14px;">: <?php echo $today; ?></span></td>
                                        </tr>
                                        <tr height="5"></tr>-->
                                        <tr>
                                            <td align="left" valign="middle"><strong>Date: <span style="font-weight:bold; font-size:15px;"><?php echo $today; ?></strong></span></td>
                                        </tr>
										
										<tr height="5"></tr>
										
										<tr>
                                            <td align="left" valign="middle" style="white-space: nowrap;"><strong>GST Reg No: <span style="font-weight:bold; font-size:15px;">M90373384T</strong></span></td>
                                        </tr>
                                        <!-- <tr>
                                            <td>&nbsp;</td>
                                        </tr> -->
                                    </table>
                                <?php } ?>
                            </td>
                        </tr>
                    <?php endif; ?>    
                    
                </table>
				
				
				<?php if( $type=='11' ){ $hght = "600"; } else if($type=='10'){ $hght = "480"; } //560
				else if( $type=='13' or  $type=='15' or $type=='16' ) { $hght= "440"; } else if( $type=='1'){ $hght= "460"; } //430
				else if($type=='12'){ $hght = "430"; } else if($type=='9'){ $hght = "570"; } else if($type=='14' or $type=='17'){ $hght= "440"; }?>
				
                <table width="<?php echo WIDTH; ?>" height="<?php echo $hght; ?>" >
                    <tr style="vertical-align:top">
                        <td>
                            <table border="0" width="100%" cellpadding="5">
                                <?php if(!IS_SHORT) : ?>
                                <tr height="20" ><td></td></tr>  <!--class="auto-adj"-->
                                <tr>
                                    <td align="center" colspan="7" style="font-weight:bold; font-size:18px;"><?php echo $title; ?></td>
                                </tr>
                                <?php endif; ?>
                                <tr height="5"></tr>	


<?php

/* 
 * Author       : Jai K
 * Purpose      : View for Print Format 3 (Hall Booking, Wedding Hall Booking)
 * Created On   : 2016-09-20 18:14
 */
//$name = explode(',', is_array( $name ) ? $name[0] : $name);
$is_wedding = count( $data['proof'] ) == 3  ? TRUE : FALSE;
$name = $data['name'];
?>                             <?php if ($is_wedding) : ?> <tr height="20"></tr> <?php endif;?>
                                <tr>
                                    <td width="18%" class="lbl">Contact Person<div class="sub-lbl">தொடர்பு நபர்</div></td>
                                    <td width="1%">:</td>
                                    <td width="36%" style="border-bottom:2px dotted #000;"><?php echo $name[0]; ?></td>
                                    <td width="18%" class="lbl">Contact Number<div class="sub-lbl">தொடர்பு எண்</div></td>
                                    <td width="1%">:</td>
                                    <td width="26%" style="border-bottom:2px dotted #000;"><?php echo $data['contact_no']; ?></td>
                                </tr>
                                
                                <?php if( $is_wedding ) : ?>
                                    <tr height="20"></tr>
                                    <tr>
                                        <td class="lbl">Groom's Name<div class="sub-lbl">மணமகன்  பெயர்</div></td>
                                        <td>:</td>
                                        <td style="border-bottom:2px dotted #000;"><?php echo $name[1]; ?></td>
                                        <td class="lbl">Bride's Name<div class="sub-lbl">மணப்பெண்  பெயர்</div></td>
                                        <td>:</td>
                                        <td style="border-bottom:2px dotted #000;"><?php echo $name[2]; ?></td>
                                    </tr>
                                <?php endif; ?>
                                    
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                                <tr>
                                    <td class="lbl"><?php echo $is_wedding ? 'Wedding' : 'Event'; ?> Date<div class="sub-lbl"><?php echo $is_wedding ? 'திருமண' : 'நிகழ்ச்சி'; ?>  தேதி</div></td>
                                    <td>:</td>
                                    <td style="border-bottom:2px dotted #000;"><?php echo $data['date']; ?></td>
                                    <td class="lbl"><?php echo $is_wedding ? 'Wedding' : 'Event'; ?> Time<div class="sub-lbl"><?php echo $is_wedding ? 'திருமண' : 'நிகழ்ச்சி'; ?>  நேரம்</div></div></td>
                                    <td>:</td>
                                    <td style="border-bottom:2px dotted #000;"><?php echo $data['time']; ?></td>
                                </tr>
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                                <tr>
                                    <td class="lbl">Email ID<div class="sub-lbl">மின்னஞ்சல்</div></td>
                                    <td>:</td>
                                    <td style="border-bottom:2px dotted #000;"><?php echo $data['email']; ?></td>
                                    <td class="lbl">Period<div class="sub-lbl">காலம்</div></td>
                                    <td>:</td>
                                    <td style="border-bottom:2px dotted #000;"><?php echo $data['period']; ?></td>
                                </tr>
                                
                                <?php if( !$is_wedding ) : ?>
                                    <tr height="5"></tr>
                                    <tr>
                                        <td class="lbl">Event Type<div class="sub-lbl">நிகழ்ச்சி வகை</div></td>
                                        <td>:</td>
                                        <td colspan="4" style="border-bottom:2px dotted #000;"><?php echo $data['event_type']; ?></td>
                                    </tr>
                                <?php endif; ?>
                                    
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                                <tr>
                                    <td class="lbl">Address<div class="sub-lbl">முகவரி</div></td>
                                    <td>:</td>
                                    <td colspan="4" style="border-bottom:2px dotted #000;"><?php echo $data['address']; ?></td>
                                </tr>
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                                <tr>
                                    <td class="lbl">Description<div class="sub-lbl">விவரம்</div></td>
                                    <td>:</td>
                                    <td colspan="4" style="border-bottom:2px dotted #000;"><?php echo $data['desc']; ?></td>
                                </tr>
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                            </table>
                        </td>
                    </tr>
                </table>
                
                <?php if( $is_wedding ) : ?>
                    <table width="<?php echo WIDTH; ?>" border="1" style="border-collapse:collapse;" cellpadding="5">
                        <tr>
                            <th colspan="8" style="border:0px;" align="left">Documents Verified<span class="linear-lbl"> / சரிபார்க்கப்பட்ட ஆவணங்கள் </span></th>
                        </tr>
                        <tr>
                            <td colspan="8" height="15" style="border:0px;"></td>
                        </tr>
                        <tr>
                            <td width="5%" style="border:0px;" align="center"><input type="checkbox" <?php echo !empty( $data['proof'][0] ) ? 'checked' : ''; ?>/></td>
                            <td width="20%" style="border:0px; font-weight:bold;" align="left">Groom ID Proof<div class="sub-lbl">மணமகன் அடையாள அட்டை</div></td>
                            
                            <td width="10%" style="border:0px;">&nbsp;</td>
                            <td width="5%" style="border:0px;" align="center"><input type="checkbox" <?php echo !empty( $data['proof'][1] ) ? 'checked' : ''; ?>/></td>
                            <td width="20%" style="border:0px; font-weight:bold;">Bride ID Proof<div class="sub-lbl">மணப்பெண்  அடையாள அட்டை</div></td>
                            
                            <td width="10%" style="border:0px;">&nbsp;</td>
                            <td width="5%" style="border:0px;" align="center"><input type="checkbox" <?php echo !empty( $data['proof'][2] ) ? 'checked' : ''; ?>/></td>
                            <td width="20%" style="border:0px; font-weight:bold;" align="left">Wedding Invitation<div class="sub-lbl">திருமண அழைப்பிதழ்</div></td>
                            
                        </tr>
                        
                    </table>
                <?php endif; ?>
                
                <table width="<?php echo WIDTH; ?>" border="0">
                    <tr>
                    	<?php  echo ($is_wedding) ?  '<td colspan="5" height="10"></td>' : '<td colspan="5" height="10"></td>';?>
                    </tr>
                    <tr>
                        <td style="font-weight:bold;" width="40%">Total Amount / <span class="sub-lbl">மொத்த தொகை</span></td>
                        <td width="10%">: $<?php echo number_format($amount[0],2,'.',''); ?></td>
                        <td width="10%"></td>
                        <td style="font-weight:bold;" width="30%">Paid Amount / <span class="sub-lbl">செலுத்திய தொகை</span></td>
                        <td >: $<?php echo number_format($amount[1],2,'.',''); ?></td>
                    </tr>
                  <!--  <tr class="auto-adj">
                    	<?php // echo ($is_wedding) ?  '<td colspan="4" height="20" style="border:0px;"></td>' : '<td colspan="4" height="10" style="border:0px;"></td>';?>
                    </tr> -->
                    <tr>
                        <td style="font-weight:bold;" width="40%">Balance to be pay / <span class="sub-lbl">மீதமுள்ள தொகை</span></td>
                        <td width="10%">: $<?php echo !empty( $amount[3] ) ? number_format($amount[3],2,'.','') : number_format(($amount[0]-$amount[1]), 2, '.', ''); ?></td>
                        <td width="10%"></td>
                        <!--<td style="font-weight:bold;" width="30%">Paid Amount / <span class="sub-lbl">செலுத்திய தொகை</span></td>
                        <td >: $<?php #echo $amount[2]; ?></td>-->
                        <td style="font-weight:bold;" width="30%"></td>
                        <td ></td>
                    </tr>
                   <!-- <tr  class="auto-adj">
                        <?php // echo ($is_wedding) ?  '<td colspan="5" height="20" style="border:0px;"></td>' : '<td colspan="5" height="5" style="border:0px;"></td>';?>
                    </tr> -->
                </table>
                <table width="<?php echo WIDTH; ?>">
                    <tr>
                        <td>
                            <table border="0" width="100%">
                                <tr>
                                    <td colspan="2" style="font-weight:bold;">S$ <?php echo number_format($amount[2],2,'.',''); ?>/- <?php echo ($gst == 1 ? '<span style="font-size: 12px; color: #000; font-weight:bold;">(Inclusive of GST)</span>' : '')  . $pay_mode_str;?></td>
                                </tr>
                                <?php // echo ($is_wedding) ?  '<tr height="20" class="auto-adj"></tr>' : '<tr height="5" class="auto-adj"></tr>';?>
                                <tr>
                                    <td style="font-weight:bold;" width="20%">Amount in Words (S$)</td>
                                    <td width="80%">: <?php echo convert_amount_to_word( $amount[2] ); ?><!--<span style="float:right;">Devotee's Copy</span>--></td>
                                </tr>
                                <?php // echo ($is_wedding) ?  '<tr height="40"></tr>' : '<tr height="50"></tr>';?>
								
								
								
								
								
								
								<table><tr><td height="30px;">&nbsp;</td></tr></table>
								
								
								
								
								
								
								
					
<?php
$today = date("d/m/Y");
$tel_html = ( !empty( $settings['contact_no'] ) ? 'Tel: '.$settings['contact_no'] : '' ).'&nbsp;&nbsp;'. (!empty( $settings['fax'] ) ? 'Fax: '.$settings['fax'] : '');

?>
    <div class="page" style="<?php echo $status == "2" || IS_DEMO ? 'background: url('. BASE_URL .'assets/images/watermark'. ( IS_SHORT ? '-short' : '' ) . ( IS_DEMO ? '-demo' : '' ) .'.png) no-repeat center;' : ''; ?>" >
	<table width="<?php echo WIDTH; ?>" border="0" style="<?php echo IS_SHORT ? 'font-size:12px;' . ( $type != 5 ? ' border-bottom: 1px solid #999; ' : '' ) : 'font-size:14px;font-weight:bold;'; ?> font-family:Verdana, Geneva, sans-serif;">
        <tr>
            <td>
                <table width="<?php echo WIDTH; ?>">
                    
                    <?php if( IS_SHORT ) : ?>
                        <tr>
                            <td width="37.5%"></td>
                            <td width="37.5%"></td>
                            <td width="15%"></td>
                            <td width="10%"></td>
                        </tr>
                        
                        <tr>
                            <td colspan="2" width="75%"><?php echo !empty( $rec_no ) ? 'No: <strong>' . (is_array( $rec_no ) ? $rec_no[0] : $rec_no) . '</strong>' : '&nbsp;'; ?></td>
                            <td width="15%" rowspan="3" style="font-size:24px;" align="right"><?php echo $total_qty; ?></td>
                            <td width="10%">&nbsp;</td>
                        </tr>
                    
                        <tr>
                            <td colspan="2">Date: <strong><?php echo $today.($type != '5' ? ' '.date("h:i A") : ''); ?></strong></td>
                            <td>&nbsp;</td>
                        </tr>
						
						<tr>
                            <td colspan="2">GST Reg No: <strong>M90373384T</strong></td>
                            <td>&nbsp;</td>
                        </tr>
                        
                        <tr>
                            <td colspan="4" style="font-weight:bold; font-size:13px; font-family:Amudham; font-size:25px; text-shadow: 1px 0px #000;" align="center"><strong><?php echo $settings['tamil_name']; ?></strong></td>
                        </tr>
                        <tr>
                            <td colspan="4" style="font-weight:bold; text-transform:uppercase;" align="center"><?php echo $settings['temple_name']; ?></td>
                        </tr>
                        <?php     
                        /*
                        <tr>
                                <td colspan="4" align="center"><?php echo nl2br($settings['address']); ?></td>
                        </tr>
                        <tr>
                                <td colspan="4" align="center"><?php echo $tel_html; ?></td>
                        </tr>*/
                        
                        if( !empty( $title ) ) : 
                        ?>
                            
                            <tr>
                                <td colspan="4" style="font-weight:bold; text-transform:uppercase;" align="center"><?php echo $title; ?></td>
                            </tr>
                        <?php 
                        endif;
                        
                    else:
                        
                        // Large
                        $logo_url = !empty( $settings['logo'] ) && file_exists( DIR_COMPANY_LOGO . $settings['logo'] ) ?  DIR_COMPANY_LOGO . $settings['logo'] : 'assets/images/logo.png';
                    ?>    
                        <tr>
                            <td width="5%"><div style="min-width: 200px;">
							<img src="<?php echo BASE_URL.$logo_url; ?>" style="max-width: 100%;" /> 
							</div></td>
                            <td width="70%">
                                <table border="0" width="100%">
                                    <tr>
                                        <td align="center">
										<strong><?php echo tamil($settings['tamil_name'], 'font-weight:bold; font-family:Amudham; font-size:25px; text-shadow: 1px 0px #000; border: none; width: 100%; text-align: center;'); ?></strong> 
										
										</td>
                                    </tr>
                                    <tr>
                                        <td align="center" style="font-size:18px;">
										<?php echo $settings['temple_name']; ?></td>
                                    </tr>
                                    <tr>
                                        <td align="center"><?php echo nl2br($settings['address']); ?></td>
                                    </tr>
                                    <tr>
                                        <td align="center"><?php  echo $tel_html; ?></td>
                                    </tr>

                                    <?php if( !empty( $settings['contact_email'] ) ) : ?>
                                        <tr>
                                            <td align="center"><?php echo $settings['contact_email'] . ( !empty( $settings['website_url'] ) ? ' | ' . $settings['website_url'] : ' | www.srivkt.org' ); ?></td>
                                        </tr>
                                    <?php endif; #if( !empty( $settings['website_url'] ) ) : ?>
                                        <!--<tr>
                                            <td align="center"><?php // echo $settings['website_url']; ?></td>
                                        </tr>-->
                                    <?php #endif; ?>
                                </table>
                           </td>


                           <td width="20%">
                                <?php if(!IS_KSK_CMS) {  ?>
                                    <table border="0" width="100%">
                                        <?php if(!empty($rec_no)) : ?>
                                        <tr>
                                            <td align="left" valign="middle"> <strong>Receipt No: <span style="font-weight:bold; font-size:20px;"> <?php echo $rec_no; ?> </span></strong></td>
                                        </tr>
                                        <tr height="5"></tr>

                                        <?php endif; // if( $is_copy ): ?>
                                       <!--  
									   	<tr>
                                            <td align="left" valign="middle" data-copy="Official's copy">Official's Copy</td>
                                        </tr>
                                        <tr height="5"></tr> -->
                                        <?php // endif; ?>

                                        <!--<tr>
                                            <td align="left" valign="middle" style="font-family:Amudham; font-size:15px;"><strong>தேதி</strong><span style="font-family:Verdana, Geneva, sans-serif; font-size:14px;">: <?php echo $today; ?></span></td>
                                        </tr>
                                        <tr height="5"></tr>-->
                                        <tr>
                                            <td align="left" valign="middle"><strong>Date: <span style="font-weight:bold; font-size:15px;"><?php echo $today; ?></strong></span></td>
                                        </tr>
										
										<tr height="5"></tr>
										
										<tr>
                                            <td align="left" valign="middle" style="white-space: nowrap;"><strong>GST Reg No: <span style="font-weight:bold; font-size:15px;">M90373384T</strong></span></td>
                                        </tr>
                                        <!-- <tr>
                                            <td>&nbsp;</td>
                                        </tr> -->
                                    </table>
                                <?php } ?>
                            </td>
                        </tr>
                    <?php endif; ?>    
                    
                </table>
				
				
				<?php if( $type=='11' ){ $hght = "600"; } else if($type=='10'){ $hght = "480"; } //560
				else if( $type=='13' or  $type=='15' or $type=='16' ) { $hght= "440"; } else if( $type=='1'){ $hght= "460"; } //430
				else if($type=='12'){ $hght = "430"; } else if($type=='9'){ $hght = "570"; } else if($type=='14' or $type=='17'){ $hght= "440"; }?>
				
                <table width="<?php echo WIDTH; ?>" height="350" >
                    <tr style="vertical-align:top">
                        <td>
                            <table border="0" width="100%" cellpadding="5">
                                <?php if(!IS_SHORT) : ?>
                                <tr height="20" ><td></td></tr>  <!--class="auto-adj"-->
                                <tr>
                                    <td align="center" colspan="7" style="font-weight:bold; font-size:18px;"><?php echo $title; ?></td>
                                </tr>
                                <?php endif; ?>
                                								
								
								
								
								
								
								
								
								
								<?php

/* 
 * Author       : Jai K
 * Purpose      : View for Print Format 3 (Hall Booking, Wedding Hall Booking)
 * Created On   : 2016-09-20 18:14
 */
//$name = explode(',', is_array( $name ) ? $name[0] : $name);
$is_wedding = count( $data['proof'] ) == 3  ? TRUE : FALSE;
$name = $data['name'];
?>                             <?php if ($is_wedding) : ?> <tr height="20"></tr> <?php endif;?>
                                <tr>
                                    <td width="18%" class="lbl">Contact Person<div class="sub-lbl">தொடர்பு நபர்</div></td>
                                    <td width="1%">:</td>
                                    <td width="36%" style="border-bottom:2px dotted #000;"><?php echo $name[0]; ?></td>
                                    <td width="18%" class="lbl">Contact Number<div class="sub-lbl">தொடர்பு எண்</div></td>
                                    <td width="1%">:</td>
                                    <td width="26%" style="border-bottom:2px dotted #000;"><?php echo $data['contact_no']; ?></td>
                                </tr>
                                
                                <?php if( $is_wedding ) : ?>
                                    <tr height="20"></tr>
                                    <tr>
                                        <td class="lbl">Groom's Name<div class="sub-lbl">மணமகன்  பெயர்</div></td>
                                        <td>:</td>
                                        <td style="border-bottom:2px dotted #000;"><?php echo $name[1]; ?></td>
                                        <td class="lbl">Bride's Name<div class="sub-lbl">மணப்பெண்  பெயர்</div></td>
                                        <td>:</td>
                                        <td style="border-bottom:2px dotted #000;"><?php echo $name[2]; ?></td>
                                    </tr>
                                <?php endif; ?>
                                    
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                                <tr>
                                    <td class="lbl"><?php echo $is_wedding ? 'Wedding' : 'Event'; ?> Date<div class="sub-lbl"><?php echo $is_wedding ? 'திருமண' : 'நிகழ்ச்சி'; ?>  தேதி</div></td>
                                    <td>:</td>
                                    <td style="border-bottom:2px dotted #000;"><?php echo $data['date']; ?></td>
                                    <td class="lbl"><?php echo $is_wedding ? 'Wedding' : 'Event'; ?> Time<div class="sub-lbl"><?php echo $is_wedding ? 'திருமண' : 'நிகழ்ச்சி'; ?>  நேரம்</div></div></td>
                                    <td>:</td>
                                    <td style="border-bottom:2px dotted #000;"><?php echo $data['time']; ?></td>
                                </tr>
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                                <tr>
                                    <td class="lbl">Email ID<div class="sub-lbl">மின்னஞ்சல்</div></td>
                                    <td>:</td>
                                    <td style="border-bottom:2px dotted #000;"><?php echo $data['email']; ?></td>
                                    <td class="lbl">Period<div class="sub-lbl">காலம்</div></td>
                                    <td>:</td>
                                    <td style="border-bottom:2px dotted #000;"><?php echo $data['period']; ?></td>
                                </tr>
                                
                                <?php if( !$is_wedding ) : ?>
                                    <tr height="5"></tr>
                                    <tr>
                                        <td class="lbl">Event Type<div class="sub-lbl">நிகழ்ச்சி வகை</div></td>
                                        <td>:</td>
                                        <td colspan="4" style="border-bottom:2px dotted #000;"><?php echo $data['event_type']; ?></td>
                                    </tr>
                                <?php endif; ?>
                                    
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                                <tr>
                                    <td class="lbl">Address<div class="sub-lbl">முகவரி</div></td>
                                    <td>:</td>
                                    <td colspan="4" style="border-bottom:2px dotted #000;"><?php echo $data['address']; ?></td>
                                </tr>
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                                <tr>
                                    <td class="lbl">Description<div class="sub-lbl">விவரம்</div></td>
                                    <td>:</td>
                                    <td colspan="4" style="border-bottom:2px dotted #000;"><?php echo $data['desc']; ?></td>
                                </tr>
                                <?php echo ($is_wedding) ?  '<tr height="20"></tr>' : '<tr height="5"></tr>';?>
                            </table>
                        </td>
                    </tr>
                </table>
                
                <?php if( $is_wedding ) : ?>
                    <table width="<?php echo WIDTH; ?>" border="1" style="border-collapse:collapse;" cellpadding="5">
                        <tr>
                            <th colspan="8" style="border:0px;" align="left">Documents Verified<span class="linear-lbl"> / சரிபார்க்கப்பட்ட ஆவணங்கள் </span></th>
                        </tr>
                       
                        <tr>
                            <td width="5%" style="border:0px;" align="center"><input type="checkbox" <?php echo !empty( $data['proof'][0] ) ? 'checked' : ''; ?>/></td>
                            <td width="20%" style="border:0px; font-weight:bold;" align="left">Groom ID Proof<div class="sub-lbl">மணமகன் அடையாள அட்டை</div></td>
                            
                            <td width="10%" style="border:0px;">&nbsp;</td>
                            <td width="5%" style="border:0px;" align="center"><input type="checkbox" <?php echo !empty( $data['proof'][1] ) ? 'checked' : ''; ?>/></td>
                            <td width="20%" style="border:0px; font-weight:bold;">Bride ID Proof<div class="sub-lbl">மணப்பெண்  அடையாள அட்டை</div></td>
                            
                            <td width="10%" style="border:0px;">&nbsp;</td>
                            <td width="5%" style="border:0px;" align="center"><input type="checkbox" <?php echo !empty( $data['proof'][2] ) ? 'checked' : ''; ?>/></td>
                            <td width="20%" style="border:0px; font-weight:bold;" align="left">Wedding Invitation<div class="sub-lbl">திருமண அழைப்பிதழ்</div></td>
                            
                        </tr>
                       
                    </table>
                <?php endif; ?>
                
                <table width="<?php echo WIDTH; ?>" border="0">
                    <tr>
                    	<?php  echo ($is_wedding) ?  '<td colspan="5" height="10"></td>' : '<td colspan="5" height="10"></td>';?>
                    </tr>
                    <tr>
                        <td style="font-weight:bold;" width="40%">Total Amount / <span class="sub-lbl">மொத்த தொகை</span></td>
                        <td width="10%">: $<?php echo number_format($amount[0],2,'.',''); ?></td>
                        <td width="10%"></td>
                        <td style="font-weight:bold;" width="30%">Paid Amount / <span class="sub-lbl">செலுத்திய தொகை</span></td>
                        <td >: $<?php echo number_format($amount[1],2,'.',''); ?></td>
                    </tr>
                  <!--  <tr class="auto-adj">
                    	<?php // echo ($is_wedding) ?  '<td colspan="4" height="20" style="border:0px;"></td>' : '<td colspan="4" height="10" style="border:0px;"></td>';?>
                    </tr> -->
                    <tr>
                        <td style="font-weight:bold;" width="40%">Balance to be pay / <span class="sub-lbl">மீதமுள்ள தொகை</span></td>
                        <td width="10%">: $<?php echo !empty( $amount[3] ) ? number_format($amount[3],2,'.','') : number_format(($amount[0]-$amount[1]), 2, '.', ''); ?></td>
                        <td width="10%"></td>
                        <!--<td style="font-weight:bold;" width="30%">Paid Amount / <span class="sub-lbl">செலுத்திய தொகை</span></td>
                        <td >: $<?php #echo $amount[2]; ?></td>-->
                        <td style="font-weight:bold;" width="30%"></td>
                        <td ></td>
                    </tr>
                   <!-- <tr  class="auto-adj">
                        <?php // echo ($is_wedding) ?  '<td colspan="5" height="20" style="border:0px;"></td>' : '<td colspan="5" height="5" style="border:0px;"></td>';?>
                    </tr> -->
                </table>
                <table width="<?php echo WIDTH; ?>">
                    <tr>
                        <td>
                            <table border="0" width="100%">
                                <tr>
                                    <td colspan="2" style="font-weight:bold;">S$ <?php echo number_format($amount[2],2,'.',''); ?>/- <?php echo ($gst == 1 ? '<span style="font-size: 12px; color: #000; font-weight:bold;">(Inclusive of GST)</span>' : '')  . $pay_mode_str;?></td>
                                </tr>
                                <?php // echo ($is_wedding) ?  '<tr height="20" class="auto-adj"></tr>' : '<tr height="5" class="auto-adj"></tr>';?>
                                <tr>
                                    <td style="font-weight:bold;" width="20%">Amount in Words (S$)</td>
                                    <td width="80%">: <?php echo convert_amount_to_word( $amount[2] ); ?><!--<span style="float:right;">Official's Copy</span>--></td>
                                </tr>
                                <?php // echo ($is_wedding) ?  '<tr height="40"></tr>' : '<tr height="50"></tr>';?>