?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/www/savoyglobal.net/eldertree/application/views/student/feereceiptunallocpdf.php |
<?php $center_info = $this->mastermodel->search_nursery(); foreach ($center_info['results']->result_array() 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:right;"><b>Date</b>: <?= $this->mastermodel->convertdatenormalformat($fee->fee_payment_date) ?></td> </tr> <tr> <td style="text-align:right;"><b>Receipt No</b>: <?= $fee->fee_receipt_no ?></strong></td> </tr> </table> <br/><br/><br/> <table width="60%"> <tr> <td style="text-align:left;"><strong>Student Name</strong></td><td><?= $fee->first_name . " " . $fee->last_name ?></strong></td> </tr> <tr> <td style="text-align:left;"><strong>Reg No</strong></td><td><?= $fee->reg_no ?></strong></td> </tr> </table> <br/> <br/> <div class="header main">Student Details</div> <?php $fee_particular = $this->mastermodel->search_fee_particular(); // $particular = array(); // foreach ($fee_particular as $value) { // $particular[$list['fee_particular_id']] = $list['fee_particular_name']; // } $particular_list = $this->mastermodel->get_data('fee_payment_details', $fee->fee_payment_id, 'fee_payment_id'); ?> <table border="1px" cellspacing="-1" cellpadding="0" style="text_align:center;" width="100%"> <tr> <td style="text-align:left;height:30px;width:7%;" bgcolor="#C3C3C3">Sl No</td> <td style="height:30px;width:70%;" bgcolor="#C3C3C3"> Fee Particulars</td> <td style="height:30px;width:23%;" bgcolor="#C3C3C3">QRS</td> </tr> <?php $i=0; foreach ($particular_list as $row) { ?> <tr> <td><?=++$i?></td> <td> <?php foreach ($fee_particular['results']->result_array() as $list) { if ($list['fee_particular_id'] == $row['fee_particular_id']) echo $list['fee_particular_name']; } ?> </td> <td> <?= $row['fee_term_amount'] ?> </td> </tr> <?php } ?> </table> <br/><br/><br/> <table border="1px" cellspacing="-1" cellpadding="15px" width="100%"> <tr> <td colspan="2" style="text-align:left; height:8px;" bgcolor="#C3C3C3">Payment Mode</td> <?php $payment_mode = 'Cash'; if ($fee->payment_mode == 2) { $payment_mode = 'Cheque'; } else if ($fee->payment_mode == 3) { $payment_mode = 'Credit Card'; } else if ($fee->payment_mode == 4) { $payment_mode = 'Bank Transfer'; } ?> <td><?= $payment_mode ?></td></tr> <?php if ($fee->payment_mode == 2) { $cheque = $this->mastermodel->get_data_srow('fee_payment_cheque_info', $fee->fee_payment_id, 'fee_payment_id'); ?> <tr> <td><span style="padding:0 10px;font-weight:bold;">Cheque Date :</span> <?= $this->mastermodel->convertdatenormalformat($cheque->cheque_date) ?></td> <td><span style="padding:0 10px;font-weight:bold;">Cheque No :</span> <?= $cheque->cheque_no ?></td> <td><span style="padding:0 10px;font-weight:bold;">Bank Drawn :</span> <?= $cheque->bank_drawn ?></td> </tr> <?php } else if ($fee->payment_mode == 3) { $credit_card_info = $this->mastermodel->get_data_srow('fee_payment_credit_card_info', $fee->fee_payment_id, 'fee_payment_id'); ?> <tr> <td colspan="2" > <span style="padding:0 10px;font-weight:bold;">Credit Card Holder:</span> <?= $credit_card_info->credit_card_holder ?></td> <td> <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_payment_bank_transfer_info', $fee->fee_payment_id, 'fee_payment_id'); ?> <tr> <td colspan="4" > <span style="padding:0 10px;font-weight:bold;">Bank Transfer Information:</span> <?= $bank_transfer_info->description ?></td> </tr> <?php } ?> </table> </html>