IMMREX7
<!DOCTYPE html>
<html>
<head>
<!-- <meta charset="utf-8"> -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>School MIS</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
<style type="text/css">
@page {
header: page-header;
footer: page-footer;
margin-top: 20pt;
margin-bottom: 10px;
}
body {
font-family: 'examplefont', sans-serif;
font-size: 14px;
}
.footer {
position: fixed;
bottom: -10px;
left: 0px;
right: 0px;
}
</style>
</head>
<body>
<div class="footer">
<table cellpadding="10" style="width:100%;border-top:1px solid black;">
<tbody>
<tr>
<td></td>
<td style="text-align:center;font-size: 12px;"><strong>Computer generated not valid for legal purpose</strong>
</td>
<td style="text-align:right;"></td>
</tr>
</tbody>
</table>
</div>
<?php if($school->isSalaryCustom == "Y"): ?>
<img src="<?php echo e(asset('storage/schools/'.$school->idSchool.'/'.$school->salaryLogo)); ?>" height="90" width="90"><br>
<strong><?php echo e($school->salary_name); ?></strong><br>
<?php echo e($school->salary_address); ?><br>
<?php echo e($school->salary_phone); ?><br>
<?php echo e($school->salary_email); ?><br><br>
<?php else: ?>
<img src="<?php echo e(asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)); ?>" height="90" width="90"><br>
<strong><?php echo e($school->schoolName); ?></strong><br>
<?php echo e($school->street); ?> <?php echo e($school->landmark); ?> <?php echo e($school->subArea); ?> <?php echo e($school->area); ?> <br>
<?php echo e($school->city); ?> <?php echo e($school->state->stateName); ?><br>
<?php echo e($school->mobile); ?><br>
<?php echo e($school->email); ?><br><br>
<?php endif; ?>
<table cellpadding="5" border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;text-align:left;">
<tbody>
<tr>
<td style="text-align:right;" colspan="4" >Date of Issue : <?php echo e(\Carbon\Carbon::now()->format('d-m-Y')); ?></td>
</tr>
<tr>
<td style="text-align:left;" colspan="4" ><strong>Pay Slip <?php echo e($pay_start); ?> to <?php echo e($pay_end); ?></strong></td>
</tr>
<tr style="background:#3ba8d5;">
<td style="color:white;" colspan="4"><b>Employee Details</b></td>
</tr>
<tr>
<td>Employee ID</td>
<td ><?php echo e($employee->enrollmentNo); ?></td>
<td>Employee Name</td>
<td><?php echo e($employee->firstName); ?> <?php echo e($employee->middleName); ?> <?php echo e($employee->lastName); ?></td>
</tr>
</tbody>
</table>
<table cellpadding="5" border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;text-align:left;margin-top:15px;">
<tbody>
<tr style="background:#3ba8d5;">
<td style="color:white;" colspan="6"><b>Attendance Summary</b></td>
</tr>
<tr>
<td>Total Salary Days</td>
<td><?php echo e($empsalary->salaryDays); ?></td>
<td>Total Half Days</td>
<td><?php echo e($empsalary->half_day); ?></td>
<td>Total Leave Days</td>
<td><?php echo e($empsalary->leave_day); ?></td>
</tr>
<tr>
<td>Total Paid Leave Days</td>
<td><?php echo e($empsalary->paid_leave); ?></td>
<td>Total Absent Days</td>
<td><?php echo e($empsalary->absent_day); ?></td>
<td>Total OT Hours</td>
<td>00:00</td>
</tr>
</tbody>
</table>
<table cellpadding="5" border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;text-align:left;margin-top:15px;">
<thead>
<tr style="background:#3ba8d5;">
<th style="color:white;">Earnings</th>
<th style="color:white;">Amount(INR)</th>
<th style="color:white;">Deductions</th>
<th style="color:white;">Amount(INR)</th>
</tr>
</thead>
<tbody>
<?php
$totalIndex = count($earnings);
if($totalIndex <= count($deductions))
$totalIndex = count($deductions);
$totalEarnings = 0;
$totalDeduction = 0;
$dynamic = 0;
$exceptions = [];
foreach($earnings as $earning){
$totalEarnings = $totalEarnings + $earning->amount;
}
foreach($deductions as $deduction){
$name = DB::table('deductions')->where('idDeduction',$deduction->idDeduction)->first();
if($name->deductionName == "TDS"){
if($deduction->deduction_type == "fixed"){
$totalDeduction = $totalDeduction + $deduction->amount;
$exceptions[$deduction->idDeduction] = $deduction->amount;
}else{
$dynamic = $dynamic + (($deduction->amount/$totalEarnings) * 100);
if($dynamic > 0){
$totalDeduction = $totalDeduction + (($empsalary->totalEarning * $dynamic) /100);
$exceptions[$deduction->idDeduction] = ($empsalary->totalEarning * $dynamic) /100;
}
}
}
}
?>
<?php for($i = 0; $i < $totalIndex; $i++): ?>
<tr>
<?php if(isset($earnings[$i])): ?>
<?php if($earnings[$i]->allowance->allowanceName == "Basic Salary" && ($school->idSchool == 135 || $school->idSchool == 140)): ?>
<td style="text-align:left;"><?php echo e($earnings[$i]->allowance->allowanceName); ?> (<?php echo e($earnings[$i]->amount); ?>)</td>
<td style="text-align:left;"><?php echo e($empsalary->totalEarning); ?></td>
<?php else: ?>
<td style="text-align:left;"><?php echo e($earnings[$i]->allowance->allowanceName); ?></td>
<td style="text-align:left;"><?php echo e($earnings[$i]->amount); ?></td>
<?php endif; ?>
<?php else: ?>
<td></td>
<td></td>
<?php endif; ?>
<?php if($deductions[$i]): ?>
<?php if($deductions[$i]->deduction->deductionName == "TDS" && ($school->idSchool == 135 || $school->idSchool == 140)): ?>
<td style="text-align:left;"><?php echo e($deductions[$i]->deduction->deductionName); ?> (<?php echo e(round($deductions[$i]->amount,2)); ?>)</td>
<td style="text-align:left;"><?php echo e($empsalary->totalDeduction); ?></td>
<?php else: ?>
<td style="text-align:left;"><?php echo e($deductions[$i]->deduction->deductionName); ?></td>
<td style="text-align:left;"><?php echo e($deductions[$i]->amount); ?></td>
<?php endif; ?>
<?php else: ?>
<td></td>
<td></td>
<?php endif; ?>
</tr>
<?php endfor; ?>
<tr>
<td>Extra Earnings</td>
<td><?php echo e(isset($empsalary->extraEarning) ? $empsalary->extraEarning : '0.00'); ?></td>
<td>Extra Deductions</td>
<td><?php echo e(isset($empsalary->extraDeduction) ? $empsalary->extraDeduction : '0.00'); ?></td>
</tr>
<tr>
<td>Advance</td>
<td><?php echo e(isset($empsalary->advanceSalary) ? $empsalary->advanceSalary : '0.00'); ?></td>
<td>Deducation</td>
<td><?php echo e(isset($empsalary->laDeduction) ? $empsalary->laDeduction : '0.00'); ?></td>
</tr>
<tr>
<td>Overtime</td>
<td><?php echo e(isset($empsalary->otEarning) ? $empsalary->otEarning : '0.00'); ?></td>
<td colspan="2" ></td>
</tr>
<tr>
<td colspan="2" style="padding: 60px;"></td>
<td colspan="2" style="padding: 60px;"></td>
</tr>
<tr>
<td style="text-align:left;border-top: 1px dotted black;">Total Earnings </td>
<td style="text-align:left;border-top: 1px dotted black;"><?php echo e($empsalary->totalEarning); ?></td>
<td style="text-align:left;border-top: 1px dotted black;">Total Deductions </td>
<td style="text-align:left;border-top: 1px dotted black;"><?php echo e($empsalary->totalDeduction); ?></td>
</tr>
</tbody>
</table>
<table cellpadding="5" border="1" style="width:30%;border-collapse: collapse;overflow: wrap;text-align:right;margin-top:15px;">
<tbody>
<tr>
<td style="background:#3ba8d5;color:white;text-align:left;">Net Salary (INR)</td>
<td><?php echo e($empsalary->totalSalary); ?></td>
</tr>
</tbody>
</table>
<br>
<br>
<b>Additional Notes / Comments </b>
<p><?php echo e(isset($empsalary->earningRemarks) ? $empsalary->earningRemarks : 'No remarks'); ?></p>
<p><?php echo e($empsalary->deductionRemarks); ?></p>
</body>
</html>
Copyright © 2021 -