?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/application/views/hr/ |
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/eduplus2/application/views/hr/single_salary_setting.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $emplyee = $this->mastermodel->getdatas('employee', 'employee_id', '', 'employee_id'); $allowdeduc = $this->mastermodel->getdatas('allowdeduc', 'allowdeduc_id'); $employee_salary_allowdeduc = $this->mastermodel->getdatas('employee_salary_allowdeduc', 'employee_salary_id'); $curency = $this->mastermodel->getdatas('finance_currency', 'currency_id'); ?> <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>Salary Settings Details</div> <div class="tools"> <a href="#" onclick="viewdata('hr','viewinhrsearch','search_salary_setting','view_salary_setting','<?= $_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('', $attributes); ?> <h3 class="form-section">Employee Salary Details</h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Employee Name</label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_name ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">W.E.F Date</label> <div class="controls"> <span class="text bold"> <?= $this->mastermodel->convertdatenormalformat($viewinfo->wef_date) ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Basic Salary </label> <div class="controls"> <span class="text bold"> <?= $viewinfo->basic_salary ?></span> </div> </div> </div> </div> <h3 class="form-section">Annual Ticket Settings </h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">From:</label> <div class="controls"> <span class="text bold"> <?= $viewinfo->from_ticket ?> </span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">To: </label> <div class="controls"> <span class="text bold"><?= $viewinfo->to_ticket ?> </span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Return Ticket</label> <span class="text bold"><div class="controls"> <?php if ($viewinfo->return_ticket == '1') { echo 'Yes'; } else echo "No"; ?> </div></span> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">No.of Tickets </label> <div class="controls"> <span class="text bold"><?= $viewinfo->no_tickets ?> </div> </div> </div> </div> <h3 class="form-section"> Allowance/Deduction Details</h3> <table class="table table-striped table-hover table-bordered" id="sample_4" style="background-color: white;"> <tr> <th>Title</th> <th>Mode</th> <th>Amount/Percentage</th> <th>Sub Total</th> <th>Type</th> </tr> <?php $i = 1; $tot_allowance = 0; $tot_deduct = 0; $basicsalary = $viewinfo->basic_salary; $dept = $this->mastermodel->get_data('allowdeduc', '0', 'allowdeduc_type'); foreach ($dept as $dep) { if ($dep['allowdeduc_mode'] == 0) $mode = "Direct Amount"; else $mode = "Percentage"; ?> <tr> <td><?= $dep['allowdeduc_name']; ?><input type="hidden" value ="<?= $dep['allowdeduc_id']; ?>" name="allowdeduc_id_<?= $i; ?>"/> </td> <td><?= $mode ?></td> <?php $amount_allowdeduc = $this->mastermodel->get_data_dual_srow('employee_salary_allowdeduc', $dep['allowdeduc_id'], 'allowdeduc_id', $viewinfo->employee_salary_id, 'employee_salary_id'); if (!empty($amount_allowdeduc)) $allowdeduc_amount = $amount_allowdeduc->amount; else $allowdeduc_amount = 1; ?> <td> <?= $allowdeduc_amount; ?> <?php if ($dep['allowdeduc_mode'] == 1) { ?> <div style="margin-top:-30px;margin-left: 100px;">%</div> <?php } ?> </td> <?php if ($dep['allowdeduc_mode'] == 1) $allototal = $allowdeduc_amount / 100 * $basicsalary; else $allototal = $allowdeduc_amount; $tot_allowance+= $allototal; ?> <td><?= $allototal; ?> <td>Allowance</td> </tr> <?php $i++; } ?> <input type="hidden" name="allowcount" id="allowcount" value="<?= $i ?>" /> <?php $dept = $this->mastermodel->get_data('allowdeduc', '1', 'allowdeduc_type'); foreach ($dept as $dep) { if ($dep['allowdeduc_mode'] == 0) $mode = "Amount"; else $mode = "Percentage"; ?> <tr> <td> <?= $dep['allowdeduc_name']; ?><input type="hidden" value ="<?= $dep['allowdeduc_id']; ?>" name="allowdeduc_id_<?= $i; ?>"/> </td> <td> <?= $mode ?> </td> <?php $amount_allowdeduc = $this->mastermodel->get_data_dual_srow('employee_salary_allowdeduc', $dep['allowdeduc_id'], 'allowdeduc_id', $viewinfo->employee_salary_id, 'employee_salary_id'); // var_dump($amount_allowdeduc); $allowdeduc_amount = $amount_allowdeduc->amount; ?> <td> <?= $allowdeduc_amount; ?> <?php if ($dep['allowdeduc_mode'] == 1) { ?> <div style="margin-top:-30px;margin-left: 100px;">%</div> <?php } ?> </td> <?php if ($dep['allowdeduc_mode'] == 1) $dedtotal = $allowdeduc_amount / 100 * $basicsalary; else $dedtotal = $allowdeduc_amount; $tot_deduct += $dedtotal; ?> <td><?= $dedtotal ?></td> <td>Deduction</td> </tr> <?php $i++; } ?> <input type="hidden" name="dedcount" id="dedcount" value="<?= $i ?>" /> </table> <h3 class="form-section"> Salary Details</h3> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th>Allowance</th> <th>Deduction</th> </tr> <tr> <td style="text-align:center;"><?php echo $tot_allowance; ?></td> <td style="text-align:center;"><?php echo $tot_deduct; ?></td> </tr> <tr> <th>Gross Salary</th> <th>Net Salary</th> </tr> <tr> <td style="text-align:center;"><?php echo $basicsalary + $tot_allowance; ?></td> <td style="text-align:center;"><?php echo ($basicsalary + $tot_allowance) - $tot_deduct; ?></td> </tr> <tr> <th style="text-align:center;">Payment Method</th> <td style="text-align:center;width: 50%"> <?php if ($viewinfo->payment_method == "Cheque") { echo "Cheque"; } ?> <?php if ($viewinfo->payment_method == "cash") { echo "Cash"; } ?> <?php if ($viewinfo->payment_method == "BankTransfer") { echo "Bank Transfer"; } ?> </td> </tr> </table> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Insurance Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th>Type of Insurance</th> <th>Insurance Company</th> <th>Policy No</th> <th>Plan Name</th> <th>Sum Insured</th> </tr> <?php $insuranceDetails = $this->mastermodel->get_data('employee_salary_medical', $viewinfo->employee_salary_id, 'employee_salary_id'); $k = 1; foreach ($insuranceDetails as $insu) { ?> <tr> <td><?= $insu['type'] ?></td> <td><?= $insu['company'] ?></td> <td><?= $insu['policy'] ?></td> <td><?= $insu['plan'] ?></td> <td><?= $insu['sum'] ?></td> </tr> <?php } ?> </table> </div> </div> </div> </div> <?php echo form_close(); ?> <?php $data['master_id'] = $viewinfo->employee_id; $data['controller'] = 'hr'; $data['controller_function'] = 'viewinhrsearch'; $data['page'] = 'view_salary_setting'; $data['model_function'] = 'search_salary_setting'; $this->load->view('master/uploaded_files', $data); echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div> </div>