IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/transaction/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/transaction/print_receipt.blade.php

<!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="{{ 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>
                    <?php $fy = DB::table('financial_years')->where('idFinancialYear',$transaction->idFinancialYear)->first();?>
                    <th style="vertical-align: middle;text-align: center;padding: 0px; "> STUDENT <br>COPY <br> {{$fy->financialYearName}}</th>
                    <th style="text-align: center;padding: 0px; "><img src="{{ asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)}}" height="90" width="90"></th>
                    <td style="vertical-align: middle;text-align: right; width: 36%; padding-left: 0px; ">
                        <strong>{{$school->schoolName}}</strong><br>
                        {{$school->street}} {{$school->landmark}} {{$school->subArea}} {{$school->area}} <br>
                        {{$school->city}}  {{$school->state->stateName}}<br>
                        <strong>Contact No : {{$school->mobile}}</strong><br>
                        <strong>Email : {{$school->email}}</strong><br>
                        @if($transaction->paymentMode == 'Online') <strong>Transaction ID @else Fee Receipt : @endif{{$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>{{$transaction->paymentDate}}</td>
                            <td>{{$student->firstName}}  {{$student->middleName}}  {{$student->lastName}}</td>
                            <td>{{$student->classM->className}}</td>
                            <td>{{$student->section->sectionName}}</td>
                            <td>{{$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>
                            @if($school->idSchool == 135 || $school->idSchool == 140)
                            <th style="border: 1px solid black;">Tution Fee</th>
                            @else
                            <th style="border: 1px solid black;">Fee</th>
                            @endif
                            <th style="border: 1px solid black;">Fee Paid</th>
                            <th style="border: 1px solid black;">Discount</th>
                            @if($school->idSchool == 25)
                            <th style="border: 1px solid black;">Late Fee</th>
                            @else
                            <th style="border: 1px solid black;">Penalty</th>
                            @endif
                        </tr>
                    </thead>
                    <tbody>
                        <?php $chqPenalty = 0; 
                        $excessAmount = 0; 
                        ?>
                        @foreach($transaction->details as $det)
                        <tr>
                            @if(isset($det->feehead))
                            @if($det->feehead->feeheadName == "Outstanding Payment")
                            <td>Fee Receipt</td>
                            @else
                            <td>{{$det->feehead->feeheadName}}</td>
                            @endif
                            <td>{{$det->feehead->amount}}</td>
                            @else
                            <td>Fees</td>
                            <td>{{$det->amountPaid}}</td>
                            @endif
                            <td>@if($school->idSchool == 25)  @if (str_contains($transaction->receiptNo, 'RCPONL')) {{$det->amountPaid - $det->discount}} @else {{$det->amountPaid}} @endif @else {{$det->amountPaid}} @endif</td>
                            <td>{{$det->discount}}</td>
                            <td>{{$det->fine}}</td>

                            <?php $chqPenalty = $chqPenalty + $det->chqPenalty; ?>
                        </tr>
                        @endforeach
                        @if(isset($transaction->outstandingAmount))
                        <tr>
                            <td>Outstanding Fee</td>
                            <td>{{$transaction->outstandingAmount}}</td>
                            <td>{{$transaction->outstandingAmount}}</td>
                            <td>0.00</td>
                            <td>0.00</td>
                        </tr>
                        @endif

                        <tr>
                            <td colspan="2" style="height: 150px;">Remarks: Fee Paid By  : <strong>{{$transaction->paymentMode}}</strong><br>
                                @if($transaction->paymentMode == 'Cheque' || $transaction->paymentMode =='DD')
                                Cheque/DD No. :  {{$transaction->chequeNo}}<br>
                                Cheque/DD Date : {{$transaction->chequeDate}}<br>
                                Bank Name : {{$transaction->bank->bankName or ''}}<br>
                                Amount : {{$transaction->totalPaid + $transaction->additionalAmount}}<br>
                                @endif
                                
                                <?php $excess  = \App\ExcessTransaction::where('idTransaction','=',$transaction->idTransaction)->where('isActive','Y')->first();
                                    if($excess != null) {
                                        $excessAmount = $excess->excessAmount;
                                    }
                                ?>
                                
                                @if($school->idSchool != 25)
                                <br>@if($excess) Excess Amount Paid :  {{$excess->excessAmount}}@endif
                                
                                @if($chqPenalty > 0)
                                <br> Cheque Bounce Charges :  {{$chqPenalty}}
                                @endif
                                
                                @endif
                            </td>
                            @if(isset($transaction->outstandingAmount))
                            <td colspan="3">Fee Rs.: {{$transaction->totalPaid + $transaction->outstandingAmount + $transaction->additionalAmount}}<br> 
                                {{figToWord($transaction->totalPaid + $transaction->outstandingAmount + $transaction->additionalAmount)}} <br> 
                            </td>
                            @else
                            @if($school->idSchool == 25)
                            <td colspan="3">
                                @if($excess) Excess Amount Paid :  {{$excess->excessAmount}} <br>@endif
                                @if($chqPenalty > 0)
                                Cheque Bounce Charges : Rs.{{$chqPenalty}}<br>
                                @endif
                                @if($transaction->additionalAmount > 0){{$transaction->remarks}} : Rs.{{$transaction->additionalAmount}}<br> @endif
                                Amount Paid: Rs.{{$transaction->totalPaid + $transaction->additionalAmount + $chqPenalty + $excessAmount}} <br> 
                                Fee Rs.: 
                                {{figToWord($transaction->totalPaid + $transaction->additionalAmount + $chqPenalty + $excessAmount)}} <br>
                            </td>
                            @else
                            <td colspan="3">
                            @if(isset($transaction->fine)) @if($school->idSchool == 140 ) Late Fees : {{$transaction->fine}} <br> @else  Fine : {{$transaction->fine}} <br>@endif @endif    
                            Fee Rs.: {{$transaction->totalPaid + $transaction->additionalAmount}}/-<br> 
                                {{figToWord($transaction->totalPaid + $transaction->additionalAmount)}} <br> 
                            </td>
                            @endif
                            @endif
                        </tr>
                        
                        
                    </tbody>
                </table>
                <p>This is computer Generated Receipt.</p>
                <hr>

                @if($school->idSchool != 86)

                <table class="table">
                    <tbody>
                        <tr>
                        <th style="vertical-align: middle;text-align: center;padding: 0px; "> OFFICE <br>COPY <br> {{$fy->financialYearName}}</th>
                        <th style="text-align: center;padding: 0px; "><img src="{{ asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)}}" height="90" width="90"></th>
                        <td style="vertical-align: middle;text-align: right; width: 36%; padding-left: 0px; ">
                                <strong>{{$school->schoolName}}</strong><br>
                                {{$school->street}} {{$school->landmark}} {{$school->subArea}} {{$school->area}} <br>
                                {{$school->city}}  {{$school->state->stateName}}<br>
                                <strong>Contact No : {{$school->mobile}}</strong><br>
                                <strong>Email : {{$school->email}}</strong><br>
                                @if($transaction->paymentMode == 'Online') <strong>Transaction ID @else Receipt No : @endif{{$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>{{$transaction->paymentDate}}</td>
                            <td>{{$student->firstName}}  {{$student->middleName}}  {{$student->lastName}}</td>
                            <td>{{$student->classM->className}}</td>
                            <td>{{$student->section->sectionName}}</td>
                            <td>{{$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>
                            @if($school->idSchool == 135  || $school->idSchool == 140)
                            <th style="border: 1px solid black;">Tution Fee</th>
                            @else
                            <th style="border: 1px solid black;">Fee</th>
                            @endif
                            <th style="border: 1px solid black;">Fee Paid</th>
                            <th style="border: 1px solid black;">Discount</th>
                            @if($school->idSchool == 25)
                            <th style="border: 1px solid black;">Late Fee</th>
                            @else
                            <th style="border: 1px solid black;">Penalty</th>
                            @endif
                        </tr>
                    </thead>
                    <tbody>
                        @foreach($transaction->details as $det)
                        <tr>
                            @if(isset($det->feehead))
                            @if($det->feehead->feeheadName == "Outstanding Payment")
                            <td>Fee Receipt</td>
                            @else
                            <td>{{$det->feehead->feeheadName}}</td>
                            @endif
                            <td>{{$det->feehead->amount}}</td>
                            @else
                            <td>Fees</td>
                            <td>{{$det->amountPaid}}</td>
                            @endif
                            <td>@if($school->idSchool == 25)  @if (str_contains($transaction->receiptNo, 'RCPONL')) {{$det->amountPaid - $det->discount}} @else {{$det->amountPaid}} @endif @else {{$det->amountPaid}} @endif</td>
                            <td>{{$det->discount}}</td>
                            <td>{{$det->fine}}</td>
                        </tr>
                        @endforeach
                        @if(isset($transaction->outstandingAmount))
                        <tr>
                            <td>Outstanding Fee</td>
                            <td>{{$transaction->outstandingAmount}}</td>
                            <td>{{$transaction->outstandingAmount}}</td>
                            <td>0.00</td>
                            <td>0.00</td>
                        </tr>
                        @endif
                        <tr>
                            <td colspan="2" style="height: 150px;">Remarks: Fee Paid By  : <strong>{{$transaction->paymentMode}}</strong><br>
                                @if($transaction->paymentMode == 'Cheque' || $transaction->paymentMode =='DD')
                                Cheque/DD No. :  {{$transaction->chequeNo}}<br>
                                Cheque/DD Date : {{$transaction->chequeDate}}<br>
                                Bank Name : {{$transaction->bank->bankName or ''}}<br>
                                Amount : {{$transaction->totalPaid + $transaction->additionalAmount}}<br>
                                @endif

                                 <?php $excess  = \App\ExcessTransaction::where('idTransaction','=',$transaction->idTransaction)->first();?>
                                @if($school->idSchool != 25)
                                <br>@if($excess) Excess Amount Paid :  {{$excess->excessAmount}}@endif
                                @if($chqPenalty > 0)
                                <br>Cheque Bounce Charges :  {{$chqPenalty}}
                                @endif
                                @endif
                            </td>
                            @if(isset($transaction->outstandingAmount))
                            <td colspan="3">Fee Rs.: {{$transaction->totalPaid + $transaction->outstandingAmount + $transaction->additionalAmount}}<br> 
                                {{figToWord($transaction->totalPaid + $transaction->outstandingAmount + $transaction->additionalAmount)}} <br> 
                            </td>
                            @else
                            @if($school->idSchool == 25)
                            <td colspan="3">
                                @if($excess) Excess Amount Paid :  {{$excess->excessAmount}} <br>@endif
                                @if($chqPenalty > 0)
                                Cheque Bounce Charges : Rs.{{$chqPenalty}}<br>
                                @endif
                                @if($transaction->additionalAmount > 0){{$transaction->remarks}} : Rs.{{$transaction->additionalAmount}}<br> @endif
                                Amount Paid: Rs.{{$transaction->totalPaid + $transaction->additionalAmount + $chqPenalty + $excessAmount}} <br> 
                                Fee Rs.: 
                                {{figToWord($transaction->totalPaid + $transaction->additionalAmount + $chqPenalty + $excessAmount)}} <br>
                            </td>
                            @else
                            <td colspan="3">
                            @if(isset($transaction->fine)) @if($school->idSchool == 140 ) Late Fees : {{$transaction->fine}} <br> @else  Fine : {{$transaction->fine}} <br>@endif @endif    
                            Fee Rs.: {{$transaction->totalPaid + $transaction->additionalAmount}}/-<br> 
                                {{figToWord($transaction->totalPaid + $transaction->additionalAmount)}} <br> 
                            </td>
                            @endif
                            @endif
                        </tr>
                          
                    </tbody>
                </table>
                @endif
            </div>
        </section>
    <htmlpagefooter name="page-footer" >
    </htmlpagefooter>

</body>
</html>

Copyright © 2021 - 2025 IMMREX7