?
Current Path : /home1/savoy/public_html/savoyglobal.net/koaladraft/application/views/student/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/koaladraft/application/views/student/feereceiptpdf_new.php |
<?php $center_info = $this->mastermodel->getdatas('nursery'); foreach ($center_info as $row) { $nursery_name = $row['nursery_name']; $nursery_address = $row['address']; $nursery_phone = $row['contact_no']; $nursery_email = $row['email']; $nursery_website = $row['website']; $nursery_logo = $row['logo']; } ?> <html> <table width="100%"> <tr> <td> <img src="<?= base_url() ?>assets/logo/<?=$nursery_logo;?>" > </td> </tr> </table> <table width="100%"> <tr> <td style="text-align:left;"> <?= $nursery_name ?>,<?= $nursery_address ?><br/>Tel:<?= $nursery_phone ?>, Email: <?= $nursery_email ?>, Website: <?= $nursery_website ?></td> </tr> </table> <hr> <br/> <table width="100%"> <tr> <td style="text-align:center;"><font size="16px"><b>RECEIPT</b></font></td> </tr> <tr> <td style="text-align:left;"><b>Date</b>: <?= $this->mastermodel->convertdatenormalformat($fee->fee_date) ?></td> </tr> <tr> <td style="text-align:right;"><b>Receipt No</b>: <?= $fee->fee_receipt_no ?></strong></td> </tr> <tr> <td style="text-align:right;">Payment Mode: <?php $payment_mode = 'Cash'; if ($fee->payment_mode == 2) { $payment_mode = 'Cheque'; } else if ($fee->payment_mode == 3) { $payment_mode = 'Credit Card'; } ?> <?= $payment_mode ?></td> </tr> <?php if ($fee->payment_mode == 2) { $cheque = $this->mastermodel->get_data_srow('fee_cheque_info', $fee->fee_id, 'fee_id'); ?> <tr> <td style="text-align:right;"><span style="padding:0 10px;font-weight:bold;">Cheque Date </span>: <?= $this->mastermodel->convertdatenormalformat($cheque->cheque_date) ?></td> </tr> <tr> <td style="text-align:right;"><span style="padding:0 10px;font-weight:bold;">Cheque No </span>: <?= $cheque->cheque_no ?></td> </tr> <tr> <td style="text-align:right;"><span style="padding:0 10px;font-weight:bold;">Bank Drawn</span>: <?= $cheque->cheque_info ?></td> </tr> <?php } else if ($fee->payment_mode == 3) { $credit_card_info = $this->mastermodel->get_data_srow('fee_credit_card_info', $fee->fee_id, 'fee_id'); ?> <tr> <td style="text-align:right;" <span style="padding:0 10px;font-weight:bold;">Credit Card Holder</span>: <?= $credit_card_info->credit_card_holder ?></td> </tr> <tr> <td style="text-align:right;"> <span style="padding:0 10px;font-weight:bold;">Credit Card No</span>: <?= $credit_card_info->credit_card_no ?></td> </tr> <?php }else if ($fee->payment_mode == 4) { $bank_transfer_info = $this->mastermodel->get_data_srow('fee_bank_transfer_info', $fee->fee_id, 'fee_id'); ?> <tr> <td style="text-align:right;"> <span style="padding:0 10px;font-weight:bold;">Description</span>: <?= $bank_transfer_info->description ?></td> </tr> <?php } ?> </table> <br/><br/><br/> <table border="1px" cellspacing="0" cellpadding="5px;" style="text_align:center;" width="100%"> <tr> <th></th><th>Child Name</th> <th>Class</th> <?php $fee_other=$this->mastermodel->get_data('fee_paid_details_other',$fee->fee_id,'fee_id','id'); foreach($fee_other as $list) { ?> <th> <?=$list['fee_other_name'];?> </th> <?php } ?> <th>Payment Type</th> <?php $fee_details=$this->studentmodel->get_fee_paid_details($fee->fee_id); foreach($fee_details as $list) { ?> <th> <?=$list['fee_particular_name'];?> </th> <?php } $total=0; ?> <th>1M</th> <th>3M</th> <th>Total</th> </tr> <tr> <td><?=$this->mastermodel->get_single_field_value('session','session_name','session_id',$student_class_details->class_session);?></td> <td><?= $student_class_details->first_name . " " . $student_class_details->last_name ?></td> <td><?php $class_array = explode('/',$student_class_details->class_name_code); echo $class_array[0]; ?></td> <?php foreach($fee_other as $list) { ?> <td> <?php $total +=$list['fee_other_amount']; echo $list['fee_other_amount']; ?> </td> <?php } ?> <td><?=$payment_mode;?></td> <?php $onem = ''; $threeem = ''; foreach($fee_details as $list) { if($list['payment_for']!='0000-00-00') $onem .= date("M", strtotime($list['payment_for'])).', '; if($list['payment_for'] =='0000-00-00') $threeem = "Y"; ?> <td> <?php $total +=$list['amount_paid']; echo $list['amount_paid']; ?> </td> <?php $onem = rtrim($onem, ', '); } ?> <td><?=$onem;?></td> <td><?php if($onem=='') {echo $threeem;}?></td> <td><?=number_format($total, 2);?> QAR</td> </tr> </table> <br/><br/> <div style="text-align: center">Child fee is to be paid as advance in the first of every month</div> <br/><br/> </html>