|
|
|
@ -234,46 +234,63 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><span class="pl-3">Basic Salary</span></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td class="text-right"><?= number_format($selectedEmployee->basic_semi_monthly_pay, 2, ".", ",") ?></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$grossTotal = 0;
|
|
|
|
|
$deductionTotal = 0;
|
|
|
|
|
$netTotal = 0;
|
|
|
|
|
|
|
|
|
|
foreach($empPayIncomeList as $empPayIncome):?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><span class="pl-3"><?= $empPayIncome->inded_name ?></span></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td><?= $empPayIncome->amount ?></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td><span class="pl-3"><?= $empPayIncome->inded_name ?></span></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td class="text-right"><?= number_format($empPayIncome->amount, 2, ".", ",") ?></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$grossTotal += $empPayIncome->amount;
|
|
|
|
|
|
|
|
|
|
endforeach; ?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strong>Gross Total</strong></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td><strong>$500.00</strong></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td><strong>Gross Total</strong></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td class="text-right"><strong>Php <?= number_format($grossTotal, 2, ".", ","); ?></strong></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<?php foreach($empPayDeductionList as $empPayDeduction):?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><span class="pl-3"><?= $empPayDeduction->inded_name ?></span></td>
|
|
|
|
|
<td>-<?= $empPayDeduction->amount ?></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td><span class="pl-3"><?= $empPayDeduction->inded_name ?></span></td>
|
|
|
|
|
<td class="text-right">-<?= number_format($empPayDeduction->amount, 2, ".", ",") ?></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$deductionTotal += $empPayDeduction->amount;
|
|
|
|
|
|
|
|
|
|
endforeach;
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strong>Total Deductions</strong></td>
|
|
|
|
|
<td><strong>$500.00</strong></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td><strong>Total Deductions</strong></td>
|
|
|
|
|
<td class="text-right"><strong>Php <?= number_format($deductionTotal, 2, ".", ","); ?></strong></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<tfoot>
|
|
|
|
|
<tr>
|
|
|
|
|
<th><span class="text-uppercase">Net Income</span></th>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<th>$3300.00</th>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<th><span class="text-uppercase">Net Income</span></th>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<th class="text-right">Php <?= number_format($grossTotal - $deductionTotal, 2, ".", ",") ?></th>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tfoot>
|
|
|
|
|
</table>
|
|
|
|
|