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;padding: 0px; "> STUDENT <br>COPY</th>
<th style="text-align: center;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: right; 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>
<?php if($transaction->paymentMode == 'Online'): ?> <strong>Transaction ID <?php else: ?> Fee Receipt : <?php endif; ?><?php echo e($transaction->receiptNo); ?></strong><br>
</td>
</tr>
</tbody>
</table>
<!--</htmlpageheader>-->
<section>
<div class="content">
<table border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;">
<thead>
<tr style="border: 1px solid black;">
<th style="border: 1px solid black;">Date</th>
<th style="border: 1px solid black;">Name</th>
<th style="border: 1px solid black;">Class</th>
<th style="border: 1px solid black;">Section</th>
<th style="border: 1px solid black;">Enrollment No.</th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo e($transaction->paymentDate); ?></td>
<td><?php echo e($student->firstName); ?> <?php echo e($student->middleName); ?> <?php echo e($student->lastName); ?></td>
<td><?php echo e($student->classM->className); ?></td>
<td><?php echo e($student->section->sectionName); ?></td>
<td><?php echo e($student->ecNo); ?></td>
</tr>
</tbody>
</table>
<p></p>
<table border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;">
<thead>
<tr style="border: 1px solid black;">
<th style="border: 1px solid black;">Feehead</th>
<th style="border: 1px solid black;">Fee</th>
<th style="border: 1px solid black;">Fee Paid</th>
<th style="border: 1px solid black;">Discount</th>
<?php if($school->idSchool == 25): ?>
<th style="border: 1px solid black;">Late Fee</th>
<?php else: ?>
<th style="border: 1px solid black;">Penalty</th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php $totalPaid = 0; $totalAmount = $penaltyAmount; $totalDiscount = 0;$discount=0;?>
<?php $__currentLoopData = $transaction->details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $det): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
if(isset($det->feehead)){
$totalPaid = $totalPaid + $det->amountPaid;
$totalAmount = $totalAmount + $det->feehead->amount;
$totalDiscount = $totalDiscount + $det->discount ;
$discount = 0;
$discountfees = DB::table('student_discounts')->where('idStudent', $student->idStudent)->where('idFeehead',$det->idFeehead)->where('isActive', 'Y')->get();
foreach($discountfees as $items){
$discount = $discount + $items->amount;
}
}
?>
<tr>
<?php if(isset($det->feehead)): ?>
<?php if($det->feehead->feeheadName == "Outstanding Payment"): ?>
<td>Fee Receipt</td>
<?php else: ?>
<td><?php echo e($det->feehead->feeheadName); ?></td>
<?php endif; ?>
<td><?php echo e($det->feehead->amount); ?></td>
<?php else: ?>
<td>Fee Receipt</td>
<td></td>
<?php endif; ?>
<td><?php echo e($det->amountPaid); ?></td>
<td><?php if($det->discount > 0): ?> <?php echo e($det->discount); ?> <?php else: ?> <?php echo e($discount); ?> <?php endif; ?></td>
<td><?php echo e($det->fine); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr>
<td colspan="2" style="height: 150px;">Remarks: Fee Paid By : <strong><?php echo e($transaction->paymentMode); ?></strong><br>
<?php if($transaction->paymentMode == 'Cheque' || $transaction->paymentMode =='DD'): ?>
Cheque/DD No. : <?php echo e($transaction->chequeNo); ?><br>
Cheque/DD Date : <?php echo e($transaction->chequeDate); ?><br>
Bank Name : <?php echo e(isset($transaction->bank->bankName) ? $transaction->bank->bankName : ''); ?><br>
Amount : <?php echo e($transaction->totalPaid + $transaction->additionalAmount); ?><br>
<?php endif; ?>
</td>
<?php if($school->idSchool == 25): ?>
<td colspan="3"><?php if($transaction->additionalAmount > 0): ?> <?php echo e($transaction->remarks); ?> : Rs.<?php echo e($transaction->additionalAmount); ?><br> <?php endif; ?>
Discount: Rs.<?php echo e($totalDiscount); ?> <br>
Amount Paid: Rs.<?php echo e($totalPaid + $transaction->additionalAmount); ?> <br>
Fee Rs.:
<?php echo e(figToWord($transaction->totalPaid + $transaction->additionalAmount)); ?> <br>
</td>
<?php else: ?>
<td colspan="3"> Extra Amount (<?php echo e($transaction->remarks); ?>) : Rs.<?php echo e($transaction->additionalAmount); ?><br>
Total Amount : Rs.<?php echo e($totalAmount + $transaction->additionalAmount); ?> <br>
Amount Paid: Rs.<?php echo e($totalPaid + $transaction->additionalAmount); ?> <br>
Discount: Rs.<?php echo e($totalDiscount); ?> <br>
Pending Amount : Rs.<?php echo e($totalAmount - ($totalPaid - $totalDiscount)); ?> <br>
Fee Rs.:
<?php echo e(figToWord($transaction->totalPaid + $transaction->additionalAmount)); ?> <br>
</td>
<?php endif; ?>
</tr>
</tbody>
</table>
<p>This is computer Generated Receipt.</p>
<hr>
<table class="table">
<tbody>
<tr>
<th style="vertical-align: middle;text-align: center;padding: 0px; "> OFFICE <br>COPY</th>
<th style="text-align: center;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: right; 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>
<?php if($transaction->paymentMode == 'Online'): ?> <strong>Transaction ID <?php else: ?> Receipt No : <?php endif; ?><?php echo e($transaction->receiptNo); ?></strong><br>
</td>
</tr>
</tbody>
</table>
<table border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;">
<thead>
<tr style="border: 1px solid black;">
<th style="border: 1px solid black;">Date</th>
<th style="border: 1px solid black;">Name</th>
<th style="border: 1px solid black;">Class</th>
<th style="border: 1px solid black;">Section</th>
<th style="border: 1px solid black;">Enrollment No.</th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo e($transaction->paymentDate); ?></td>
<td><?php echo e($student->firstName); ?> <?php echo e($student->middleName); ?> <?php echo e($student->lastName); ?></td>
<td><?php echo e($student->classM->className); ?></td>
<td><?php echo e($student->section->sectionName); ?></td>
<td><?php echo e($student->ecNo); ?></td>
</tr>
</tbody>
</table>
<p></p>
<table border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;">
<thead>
<tr style="border: 1px solid black;">
<th style="border: 1px solid black;">Feehead</th>
<th style="border: 1px solid black;">Fee</th>
<th style="border: 1px solid black;">Fee Paid</th>
<th style="border: 1px solid black;">Discount</th>
<?php if($school->idSchool == 25): ?>
<th style="border: 1px solid black;">Late Fee</th>
<?php else: ?>
<th style="border: 1px solid black;">Penalty</th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $transaction->details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $det): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$discount = 0;
$discountfees = DB::table('student_discounts')->where('idStudent', $student->idStudent)->where('idFeehead',$det->idFeehead)->where('isActive', 'Y')->get();
foreach($discountfees as $items){
$discount = $discount + $items->amount;
}
?>
<tr>
<?php if(isset($det->feehead)): ?>
<?php if($det->feehead->feeheadName == "Outstanding Payment"): ?>
<td>Fee Receipt</td>
<?php else: ?>
<td><?php echo e($det->feehead->feeheadName); ?></td>
<?php endif; ?>
<td><?php echo e($det->feehead->amount); ?></td>
<?php else: ?>
<td>Fee Receipt</td>
<td></td>
<?php endif; ?>
<td><?php echo e($det->amountPaid); ?></td>
<td><?php if($det->discount > 0): ?> <?php echo e($det->discount); ?> <?php else: ?> <?php echo e($discount); ?> <?php endif; ?></td>
<td><?php echo e($det->fine); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr>
<td colspan="2" style="height: 150px;">Remarks: Fee Paid By : <strong><?php echo e($transaction->paymentMode); ?></strong><br>
<?php if($transaction->paymentMode == 'Cheque' || $transaction->paymentMode =='DD'): ?>
Cheque/DD No. : <?php echo e($transaction->chequeNo); ?><br>
Cheque/DD Date : <?php echo e($transaction->chequeDate); ?><br>
Bank Name : <?php echo e(isset($transaction->bank->bankName) ? $transaction->bank->bankName : ''); ?><br>
Amount : <?php echo e($transaction->totalPaid + $transaction->additionalAmount); ?><br>
<?php endif; ?>
</td>
<?php if($school->idSchool == 25): ?>
<td colspan="3"> <?php if($transaction->additionalAmount > 0): ?> <?php echo e($transaction->remarks); ?> : Rs.<?php echo e($transaction->additionalAmount); ?><br> <?php endif; ?>
Discount: Rs.<?php echo e($totalDiscount); ?> <br>
Amount Paid: Rs.<?php echo e($totalPaid + $transaction->additionalAmount); ?> <br>
Fee Rs.:
<?php echo e(figToWord($transaction->totalPaid + $transaction->additionalAmount)); ?> <br>
</td>
<?php else: ?>
<td colspan="3"> Extra Amount (<?php echo e($transaction->remarks); ?>) : Rs.<?php echo e($transaction->additionalAmount); ?><br>
Total Amount : Rs.<?php echo e($totalAmount + $transaction->additionalAmount); ?> <br>
Amount Paid: Rs.<?php echo e($totalPaid + $transaction->additionalAmount); ?> <br>
Discount: Rs.<?php echo e($totalDiscount); ?> <br>
Pending Amount : Rs.<?php echo e($totalAmount - ($totalPaid - $totalDiscount)); ?> <br>
Fee Rs.:
<?php echo e(figToWord($transaction->totalPaid + $transaction->additionalAmount)); ?> <br>
</td>
<?php endif; ?>
</tr>
</tbody>
</table>
</div>
</section>
<htmlpagefooter name="page-footer" >
</htmlpagefooter>
</body>
</html>
Copyright © 2021 -