?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/franchisee/ |
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/sec/application/views/franchisee/single_franchisee_fee.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Franchisee Fee Details</div> <div class="tools"> <a href="#" onclick="viewdata('franchisee','viewinfranchiseesearch','search_franchisee_fee','view_franchisee_fee','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <div class="form-horizontal form-view form-bordered"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('franchisee/addinfranchisee/update_franchisee_fee/view_franchisee_fee/1', $attributes); $payment_type = $this->mastermodel->getdatas('finance_payment_types', 'payment_type_id', 'asc'); ?> <h3 class="form-section">Batch Details</h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Batch Code:</label> <div class="controls"> <span class="text bold"> <?= $viewinfo->batch_no; ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Course Name:</label> <div class="controls"> <span class="text bold"> <?= $viewinfo->course_name; ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Teacher:</label> <div class="controls"> <span class="text bold"> <?php $teacher = $this->mastermodel->get_teacher_batch($viewinfo->batch_id, date("d-m-Y")); if (!empty($teacher)) echo $teacher->employee_name; ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Date of Commencement:</label> <div class="controls"> <span class="text bold"> <?= $this->mastermodel->convertdatenormalformat($viewinfo->start_date) ?></span> </div> </div> </div> </div> <input type="hidden" name="franchisee_fee_batch_id" id="franchisee_fee_batch_id" value="<?= $viewinfo->batch_id; ?>"/> <h3 class="form-section"> Details of Payment</h3> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead> <tr> <th class="sl_th">Sl No</th> <th>Franchisee Name</th> <th>Receipt No of Franchisee</th> <th>Date</th> <th>Amount</th> <th>Post/View</th> <th>Print</th> </tr> </thead> <tbody> <?php $table = ""; $field = ""; $i = 0; $total_franchisee_fee = 0; foreach ($franchisee as $row) { $i++; ?> <tr class="odd gradeX"> <td><?= $i; ?></td> <td> <?= $row->franchisee_name; ?> </td> <td> <?= $row->franchisee_receipt_no; ?> </td> <td> <?= $this->mastermodel->convertdatenormalformat($row->franchisee_fee_date); ?> </td> <td style="text-align: right"> <?= $row->franchisee_fee_amount; ?> </td> <td> <?php if ($row->journal_id != 0) { ?> <a class="search_details" data-journal_id="<?=$row->journal_id;?>" id="image_icon" href="#" > <img src="<?= base_url() ?>/assets/img/view-icon.png" title="View" width="20" height="20" alt="View Entry" align = "center" /></a> <?php } else { ?> <a class="payment_voucher" data-franchisee_fee_id="<?= $row->franchisee_fee_id; ?>"id="image_icon" href="#" > <img src="<?= base_url() ?>/assets/img/saldet.png" title="Post" width="20" height="20" alt="View Entry" align = "center" /></a> <!-- <a href="#"><img src="<?= base_url() ?>assets/img/saldet.png" title="Reciept Voucher Post" width="20" height="20" alt="Edit" align = "center" class="inliexample2" onclick="check_pending_amount('<?=$reg_pending?>','<?=$course_pending?>','<?= $row->fee_id; ?>')" alt="" /> </a>--> <?php } ?> </td> <td> <?= anchor("franchisee/pdf_franchisee/" . $row->franchisee_fee_id, '<img src="' . base_url() . '/assets/img/pdf.png" title="PV" width="20" height="20">', 'title="PV"'); ?> </td> </tr> <input type="hidden" name="franchisee_fee_id" id="franchisee_fee_id" value=" <?= $row->franchisee_fee_id; ?>"/> <?php $total_franchisee_fee += $row->franchisee_fee_amount; } ?> <tr> <th colspan="4"> Total </th> <th style="text-align: right"> <?= number_format($total_franchisee_fee,2);?> </th> <th colspan="2"> </th> </tr> </tbody> </table> <h3 class="form-section">Franchisee Royalty Details</h3> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr> <th>Reg No </th> <th>First Name</th> <th>Last Name</th> <th>Gender</th> <th>Nationality</th> <th>Date of Birth</th> <th>Course Fee Paid</th> <th> Royalty </th> <th><?= anchor("franchisee/xls_franchisee_royality/" . $viewinfo->batch_id , '<img src="' . base_url() . '/assets/img/xls.png" title="xls" width="20" height="20">', 'title="xls"'); ?></th> </tr> <?php $sum = 0; foreach ($student_list as $row) { $id=$row['student_batch_id']; if(!empty($id)) { $course_paid_fee= $this->franchiseemodel->get_paid_fee_details($viewinfo->batch_id, $row['student_id']); ?> <tr> <td><?= $row['reg_no']; ?></td> <td><?= $row['first_name']; ?></td> <td><?= $row['last_name']; ?></td> <td><?= $row['gender']; ?></td> <td><?= $row['nationality']; ?></td> <td><?= $this->mastermodel->convertdatenormalformat($row['dob']); ?></td> <td style="text-align: right"><?= $course_paid_fee; ?></td> <td style="text-align: right"><?= $course_paid_fee * $viewinfo->franchisee_course_royalty / 100; ?></td> <td></td> </tr> <?php $sum+=$course_paid_fee * $viewinfo->franchisee_course_royalty / 100; } } ?> <tr> <th colspan="7">Total Amount</th> <th style="text-align: right"><?= $sum; ?></th> <th></th> </tr> </table> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div> </div> <script> jQuery(document).ready(function() { $('.payment_voucher').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal container hide fade" tabindex="-1"></div>'); var franchisee_fee_id = $(this).data('franchisee_fee_id'); $.ajax({ url : "<?= site_url('franchisee/edit_franchisee_fee_pv') ?>/" + franchisee_fee_id +"/franchisee_fee/franchisee_fee_id/post_franchisee_fee", success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); $('.search_details').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal hide fade" tabindex="-1"></div>'); var journal_id = $(this).data('journal_id'); $.ajax({ url : "<?= site_url('accounting/viewsingle_page') ?>/" + journal_id +"/search_fee_posted/view_receipt_fee_posted", success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); }); </script>