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: 100pt;
margin-bottom: 10px;
}
@page { sheet-size: A4-L; }
section{
}
body {
font-family: 'examplefont', sans-serif;
font-size: 13px;
}
</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>
<section>
<div class="content">
<div style="page-break-inside:avoid">
<table border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;">
<thead>
<tr>
<th>Ec No.</th>
<th>Name</th>
<th>Class</th>
<?php $__currentLoopData = $feeheads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<th><?php echo e($var->headerName); ?></th>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<th>Fine</th>
<th>Total</th>
<th>Discount</th>
<th>Net</th>
<th>Receipt No</th>
</tr>
</thead>
<tbody>
<?php
$i=0;$pagetotal =[];
$page_netamt = 0;$page_fine = 0;$page_total=0;$page_discount=0;
$netamt = 0;$netfine = 0;$nettotal=0;$netdiscount=0;
foreach($feeheads as $var)
array_push($pagetotal,0);
?>
<?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php $i++; ?>
<tr>
<td><?php echo e($t->ecNo); ?></td>
<td><?php echo e($t->Name); ?></td>
<td><?php echo e($t->class); ?> <?php echo e($t->section); ?></td>
<?php $j=0;?>
<?php $__currentLoopData = $feeheads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<td>
<?php
$fd = \App\DailyTransactionDetail::where('idDailyTransaction','=',$t->idDailyTransaction)
->where('headerName','=',$var->headerName)
->select(DB::raw('SUM(dailytransaction_details.amountPaid) AS amountPaid'))
->first();
if(isset($fd)){
if(is_scalar($pagetotal[$j]))
$pagetotal[$j] =$pagetotal[$j]+ $fd->amountPaid;
}
$j++;
?>
<?php if($fd!=null): ?>
<?php echo e($fd->amountPaid); ?>
<?php endif; ?>
</td>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<td>
<?php echo e($t->totalFine); ?>
<?php $page_fine = $page_fine + $t->totalFine;
$netfine = $netfine + $t->totalFine;?>
</td>
<td>
<?php echo e($t->totalfeePaid); ?>
<?php $page_total = $page_total + $t->totalfeePaid;
$nettotal = $nettotal + $t->totalfeePaid;?>
</td>
<td>
<?php echo e($t->totalDiscount); ?>
<?php $page_discount = $page_discount + $t->totalDiscount;
$netdiscount = $netdiscount + $t->totalDiscount;?>
</td>
<td>
<?php echo e($t->netAmount); ?>
<?php $page_netamt = $page_netamt + $t->netAmount;
$netamt = $netamt + $t->netAmount;?>
</td>
<td><?php echo e($t->receiptNo); ?></td>
</tr>
<?php if($i%20 == '0'): ?>
<tr>
<th></th>
<th></th>
<th>Page Total:</th>
<?php $j=0;
foreach($feeheads as $var){
if(isset($pagetotal[$j]))
echo '<th>'.$pagetotal[$j].'</th>';
$j++;
}
?>
<th><?php echo e($page_fine); ?></th>
<th><?php echo e($page_total); ?></th>
<th><?php echo e($page_discount); ?></th>
<th><?php echo e($page_netamt); ?></th>
<th></th>
</tr>
<tr>
<th colspan="<?php echo e(count($feeheads)+8); ?>">Page Total:<?php echo e($page_netamt); ?></th>
</tr>
<?php $pagetotal =[]; $page_netamt = 0;$page_fine = 0;$page_total=0;$page_discount=0;
foreach($feeheads as $var)
array_push($pagetotal,0);?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
<tfoot>
<tr>
<th></th>
<th></th>
<th>Exemption:</th>
<?php $__currentLoopData = $feeheads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<th><?php echo e($var->discountTotalFeehead); ?></th>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
<tr>
<th></th>
<th></th>
<th>Total:</th>
<?php $__currentLoopData = $feeheads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<th><?php echo e($var->feeheadPaidTotal); ?></th>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<th><?php echo e($netfine); ?></th>
<th><?php echo e($nettotal); ?></th>
<th><?php echo e($netdiscount); ?></th>
<th><?php echo e($netamt); ?></th>
<th></th>
</tr>
<tr>
<th colspan="<?php echo e(count($feeheads)+8); ?>">Grand Total:<?php echo e($netamt); ?></th>
</tr>
</tfoot>
</table>
</div>
</div>
</section>
<htmlpagefooter name="page-footer" >
<p style="text-align: center;padding-top: 5px;padding-bottom: 0px;font-size: 12px;"><strong>Page No : {PAGENO} Created On : {DATE j-m-Y} ; Report Date : <?php echo e(\Carbon\Carbon::parse($todaydate)->format('d-m-Y')); ?></strong></p>
</htmlpagefooter>
</body>
</html>
Copyright © 2021 -