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;
}
section{
}
body {
font-family: 'examplefont', sans-serif;
}
</style>
</head>
<body>
<!--<htmlpageheader name="page-header" >-->
<table class="table">
<tbody>
<tr>
<th style="vertical-align: middle;text-align: center; width: 30%; padding: 0px; "><img src="<?php echo e(asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)); ?>" height="90" width="90"></th>
<td style="vertical-align: middle;text-align: center; width: 36%; padding: 0px; ">
<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>
<strong>Contact No : <?php echo e($school->mobile); ?></strong><br>
<strong>Email : <?php echo e($school->email); ?></strong><br>
</td>
</tr>
</tbody>
</table>
<!--</htmlpageheader>-->
<hr>
<div role="tabpanel" class="tab-pane in active" id="details" aria-expanded="true">
<div class="card" id="details">
<?php $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$ifSalaryExists = \App\EmpPayment::where('idMonth',$month)->where('idFinancialYear',$financialYear)->where('idSchool',Auth::guard('school')->user()->idSchool)->where('idEmployee', $value->idEmployee)->first();
if($ifSalaryExists == null){
$emp_shift = \App\AssignShift::where('idEmployee', '=', $value->idEmployee)->first();
if( $emp_shift != null){
$shift = \App\Shift::where('idShift', '=', $emp_shift->idShift)->first();
}
$emp_salstr = \App\SalaryStructure::where('idEmployee', '=', $value->idEmployee)->where('idFinancialYear',$financialYear)->first();
if($emp_salstr != null){
$deductions = \App\SalaryStrDeduction::where('idSalaryStr', '=', $emp_salstr->idSalaryStr)->get();
$earnings = \App\SalaryStrAllowances::where('idSalaryStr', '=', $emp_salstr->idSalaryStr)->get();
}
}
$salaryData = json_decode(Session::get($value->idEmployee."_".$month."_".$financialYear),true);
?>
<?php if($ifSalaryExists == null): ?>
<?php if($emp_shift == null || $emp_salstr == null): ?>
<?php else: ?>
<div class="row clearfix">
<div class="col-md-12">
<table class="table">
<tbody>
<tr>
<td>
<div class="col-md-6">
<p><b><?php echo e($value->firstName); ?> <?php echo e($value->middleName); ?> <?php echo e($value->lastName); ?></b></p>
<span style="color:black;">Enrollment No : <?php echo e($value->enrollmentNo); ?></span><br>
<span style="color:black;">Department : <?php echo e(isset($value->department->departmentName) ? $value->department->departmentName : ''); ?></span> |
<span style="color:black;">Designation : <?php echo e(isset($value->designation->designationName) ? $value->designation->designationName : ''); ?></span><br>
<span style="color:black;">Mobile : <?php echo e($value->mobile); ?></span><br>
<?php if(isset($emp_shift)): ?>
<?php if(isset($shift)): ?>
<span style="color:black;">Allocates Shift Name : <b><?php echo e($shift->shiftName); ?></b></span>
<?php endif; ?>
<?php else: ?>
<span style="color:red;">No shift allocated</span><br>
<?php endif; ?>
</div>
</td>
<td></td>
</tr>
<tr>
<td>
<div class="col-md-6">
<p><b>Attendance Summary</b></p>
<span id="<?php echo e($value->idEmployee); ?>_p">Full Present (Including All Holidays) : <?php echo e(isset($salaryData["present"]) ? $salaryData["present"] : ''); ?></span><br>
<span id="<?php echo e($value->idEmployee); ?>_ab">Total Absent : <?php echo e(isset($salaryData["absent"]) ? $salaryData["absent"] : ''); ?></span><br>
<span id="<?php echo e($value->idEmployee); ?>_hf">Half Day : <?php echo e(isset($salaryData["half_day"]) ? $salaryData["half_day"] : ''); ?></span><br>
<span id="<?php echo e($value->idEmployee); ?>_ia">Incomplete Attendance : <?php echo e(isset($salaryData["incomplete"]) ? $salaryData["incomplete"] : ''); ?></span><br>
<span id="<?php echo e($value->idEmployee); ?>_pl">Paid Leave : <?php echo e(isset($salaryData["paid_leave"]) ? $salaryData["paid_leave"] : ''); ?></span><br>
<span id="<?php echo e($value->idEmployee); ?>_leave">Leave : <?php echo e(isset($salaryData["leave"]) ? $salaryData["leave"] : ''); ?> </span><br>
</div>
</td>
<td>
<div class="col-md-6">
<p><b>Earnings</b></p>
<?php if(isset($emp_salstr)): ?>
<?php $__currentLoopData = $earnings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $earning): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php $allowance = \App\Allowance::where('idAllowance', '=', $earning->idAllowance)->first(); ?>
<?php if($allowance != null): ?>
<span style="color:black;"><?php echo e($allowance->allowanceName); ?> : <?php echo e($earning->amount); ?></span><br>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<span style="color:red;">No salary structure found</span><br>
<?php endif; ?>
</div>
</div>
<div class="col-md-6">
<p><b>Deduction</b></p>
<?php if(isset($emp_salstr)): ?>
<?php $__currentLoopData = $deductions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $deduction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php $deductionName = \App\Deduction::where('idDeduction', '=', $deduction->idDeduction)->first(); ?>
<?php if($deductionName != null): ?>
<span style="color:black;"><?php echo e($deductionName->deductionName); ?> : <?php echo e($deduction->amount); ?> (<?php echo e(isset($deduction->deduction_type) ? $deduction->deduction_type : ''); ?>) </span><br>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<span style="color:red;">No salary structure found</span><br>
<?php endif; ?>
</div>
</td>
</tr>
</tbody>
</table>
<p>Total Payable Amount : <b>Rs. <?php echo e(isset($salaryData["salary"]) ? $salaryData["salary"] : ''); ?></b></p>
</div>
</div>
<hr>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</body>
</html>
Copyright © 2021 -