You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
209 lines
12 KiB
PHP
209 lines
12 KiB
PHP
<!-- Extend area where template is defined -->
|
|
<?= $this->extend('templates/adminlte/generalcontent') ?>
|
|
<!-- .Extend -->
|
|
|
|
<!-- Title of the page -->
|
|
<?= $this->section('title') ?>Payroll Settings<?= $this->endSection() ?>
|
|
<!-- .Title -->
|
|
|
|
<!-- CSS of the page -->
|
|
<?= $this->section('css') ?>
|
|
<?= $this->endSection() ?>
|
|
<!-- .CSS -->
|
|
|
|
<!-- body attribute - class definition -->
|
|
<?= $this->section('bodyclass') ?>sidebar-mini<?= $this->endSection() ?>
|
|
<!-- .body attribute -->
|
|
|
|
<!-- Container title -->
|
|
<?= $this->section('containertitle') ?>Payroll Settings<?= $this->endSection() ?>
|
|
<!-- .Container title -->
|
|
|
|
<!-- Active breadcrumb -->
|
|
<?= $this->section('breadcrumbs') ?>
|
|
<li class="breadcrumb-item active">Payroll Settings</li>
|
|
<?= $this->endSection() ?>
|
|
<!-- .Active breadcrumb -->
|
|
|
|
<!-- Main content -->
|
|
<?= $this->section('main') ?>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h3 class="card-title">List of Payroll Settings</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<p>Assign proper value to each payroll settings for proper payroll computation during payroll processing.</p>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Setting</th>
|
|
<th>Value</th>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
<th>Save Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<form action="/payroll/paysettings" method="POST">
|
|
<tr>
|
|
|
|
<td>
|
|
<?php if($basicSalVal != null): ?>
|
|
<input type="hidden" name="id" value="<?= $basicSalVal->id ?>">
|
|
<?php endif ?>
|
|
<input type="hidden" name="class" value="Payroll">
|
|
<input type="text" class="form-control" name="key" value="BasicSalary" readonly>
|
|
</td>
|
|
<td>
|
|
<select class="form-control" style="width: 100%;" name="value">
|
|
<?php foreach($indedList as $inded): ?>
|
|
<?php $selected = ($basicSalVal != null && $basicSalVal->value == $inded->inded_id) ? 'selected' : ''; ?>
|
|
<?= '<option value="'.$inded->inded_id.'" '.$selected.'>'.$inded->inded_name.'</option>' ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</td>
|
|
<td><input type="text" class="form-control" name="type" value="int" readonly></td>
|
|
<td><input type="text" class="form-control" name="context" value="Basic Salary" readonly></td>
|
|
<td><input type="submit" class="btn btn-primary" value="Save"></td>
|
|
</tr>
|
|
</form>
|
|
<form action="/payroll/paysettings" method="POST">
|
|
<tr>
|
|
<td>
|
|
<?php if($COLAVal != null): ?>
|
|
<input type="hidden" name="id" value="<?= $COLAVal->id ?>">
|
|
<?php endif ?>
|
|
<input type="hidden" name="class" value="Payroll">
|
|
<input type="text" class="form-control" name="key" value="COLA" readonly>
|
|
</td>
|
|
<td>
|
|
<select class="form-control" style="width: 100%;" name="value">
|
|
<?php foreach($indedList as $inded): ?>
|
|
<?php $selected = ($COLAVal != null && $COLAVal->value == $inded->inded_id) ? 'selected' : ''; ?>
|
|
<?= '<option value="'.$inded->inded_id.'" '.$selected.'>'.$inded->inded_name.'</option>' ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</td>
|
|
<td><input type="text" class="form-control" name="type" value="int" readonly></td>
|
|
<td><input type="text" class="form-control" name="context" value="Cost of Living Allowance" readonly></td>
|
|
<td><input type="submit" class="btn btn-primary" value="Save"></td>
|
|
</tr>
|
|
</form>
|
|
<form action="/payroll/paysettings" method="POST">
|
|
<tr>
|
|
<td>
|
|
<?php if($PhilhealthVal != null): ?>
|
|
<input type="hidden" name="id" value="<?= $PhilhealthVal->id ?>">
|
|
<?php endif ?>
|
|
<input type="hidden" name="class" value="Payroll">
|
|
<input type="text" class="form-control" name="key" value="Philhealth" readonly>
|
|
</td>
|
|
<td>
|
|
<select class="form-control" style="width: 100%;" name="value">
|
|
<?php foreach($indedList as $inded): ?>
|
|
<?php $selected = ($PhilhealthVal != null && $PhilhealthVal->value == $inded->inded_id) ? 'selected' : ''; ?>
|
|
<?= '<option value="'.$inded->inded_id.'" '.$selected.'>'.$inded->inded_name.'</option>' ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</td>
|
|
<td><input type="text" class="form-control" name="type" value="int" readonly></td>
|
|
<td><input type="text" class="form-control" name="context" value="Philhealth Contribution" readonly></td>
|
|
<td><input type="submit" class="btn btn-primary" value="Save"></td>
|
|
</tr>
|
|
</form>
|
|
<form action="/payroll/paysettings" method="POST">
|
|
<tr>
|
|
<td>
|
|
<?php if($HDMFVal != null): ?>
|
|
<input type="hidden" name="id" value="<?= $HDMFVal->id ?>">
|
|
<?php endif ?>
|
|
<input type="hidden" name="class" value="Payroll">
|
|
<input type="text" class="form-control" name="key" value="HDMF" readonly>
|
|
</td>
|
|
<td>
|
|
<select class="form-control" style="width: 100%;" name="value">
|
|
<?php foreach($indedList as $inded): ?>
|
|
<?php $selected = ($HDMFVal != null && $HDMFVal->value == $inded->inded_id) ? 'selected' : ''; ?>
|
|
<?= '<option value="'.$inded->inded_id.'" '.$selected.'>'.$inded->inded_name.'</option>' ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</td>
|
|
<td><input type="text" class="form-control" name="type" value="int" readonly></td>
|
|
<td><input type="text" class="form-control" name="context" value="Pag-IBIG Contribution" readonly></td>
|
|
<td><input type="submit" class="btn btn-primary" value="Save"></td>
|
|
</tr>
|
|
</form>
|
|
<form action="/payroll/paysettings" method="POST">
|
|
<tr>
|
|
<td>
|
|
<?php if($SSSVal != null): ?>
|
|
<input type="hidden" name="id" value="<?= $SSSVal->id ?>">
|
|
<?php endif ?>
|
|
<input type="hidden" name="class" value="Payroll">
|
|
<input type="text" class="form-control" name="key" value="SSS" readonly>
|
|
</td>
|
|
<td>
|
|
<select class="form-control" style="width: 100%;" name="value">
|
|
<?php foreach($indedList as $inded): ?>
|
|
<?php $selected = ($SSSVal != null && $SSSVal->value == $inded->inded_id) ? 'selected' : ''; ?>
|
|
<?= '<option value="'.$inded->inded_id.'" '.$selected.'>'.$inded->inded_name.'</option>' ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</td>
|
|
<td><input type="text" class="form-control" name="type" value="int" readonly></td>
|
|
<td><input type="text" class="form-control" name="context" value="SSS Contribution" readonly></td>
|
|
<td><input type="submit" class="btn btn-primary" value="Save"></td>
|
|
</tr>
|
|
</form>
|
|
<form action="/payroll/paysettings" method="POST">
|
|
<tr>
|
|
<td>
|
|
<?php if($GSISVal != null): ?>
|
|
<input type="hidden" name="id" value="<?= $GSISVal->id ?>">
|
|
<?php endif ?>
|
|
<input type="hidden" name="class" value="Payroll">
|
|
<input type="text" class="form-control" name="key" value="GSIS" readonly>
|
|
</td>
|
|
<td>
|
|
<select class="form-control" style="width: 100%;" name="value">
|
|
<?php foreach($indedList as $inded): ?>
|
|
<?php $selected = ($GSISVal != null && $GSISVal->value == $inded->inded_id) ? 'selected' : ''; ?>
|
|
<?= '<option value="'.$inded->inded_id.'" '.$selected.'>'.$inded->inded_name.'</option>' ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</td>
|
|
<td><input type="text" class="form-control" name="type" value="int" readonly></td>
|
|
<td><input type="text" class="form-control" name="context" value="GSIS Contribution" readonly></td>
|
|
<td><input type="submit" class="btn btn-primary" value="Save"></td>
|
|
</tr>
|
|
</form>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?= $this->endSection() ?>
|
|
<!-- .Main content -->
|
|
|
|
<!-- Javascript -->
|
|
|
|
<?= $this->section('js') ?>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
<!-- .Javascript -->
|