IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/stock/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/stock/print_invoice.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;
            }
            table {
                width: 100%;
                border-collapse: collapse;
                margin-bottom: 10px;
                font-size: 14px;
            }
            th, td {
                border: 1px solid black;
                padding: 5px;
                text-align: left;
            }
            .no-border {
                border: none !important;
            }
            .center {
                text-align: center;
            }
            .right {
                text-align: right;
            }
            .bold {
                font-weight: bold;
            }
            .small-text {
                font-size: 10px;
            }
            .table-header td {
                font-weight: bold;
                border: 1px solid black;
                font-size: 12px;
            }
            .amount-in-words {
                margin-top: 10px;
                font-style: italic;
            }
            .footer-table td {
                font-size: 10px;
                border: none;
            }
            .signature {
                text-align: right;
                font-weight: bold;
                margin-top: 20px;
            }
            .declaration {
                margin-top: 10px;
                font-size: 10px;
            }
            body {
                font-family: 'examplefont', sans-serif;
            }	
            td.container {
                height: 50px;
            }
        </style>
    </head>

    <body>
        <h3 class="center">Invoice</h3>
        <table>
        <!-- Seller and Invoice Details -->
        <tr>
            <td colspan="3" rowspan="4">
                <img src="{{ asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)}}" height="50"><br>
                <strong>{{$school->schoolName}}</strong><br>
                    {{$school->street}} {{$school->landmark}} {{$school->subArea}} {{$school->area}} <br>
                    {{$school->city}}  
                    @if($school->idCountry == 1)
                    {{$school->state->stateName}}
                    @else 
                    {{$school->qatar->stateName}}
                    @endif<br>
                    Contact No : {{$school->mobile}}<br>
                    Email : {{$school->email}}<br>
            </td>
            <td>Invoice No: <br><strong>{{$invoice->invoiceNo}}</strong></td>
            <td>Dated: <br><strong>{{$invoice->invoiceDate}}</strong></td>
        </tr>
        <tr>
            <td>Delivery Note:<br><span>-</span></td>
            <td>Mode/Terms of Payment:<br><span>-</span></td>
        </tr>
        <tr>
            <td>Reference No. & Date.<br><span>-</span></td>
            <td>Other References<br><span>-</span></td>
        </tr>
        <tr>
            <td>Buyer’s Order No.:<br><span>-</span></td>
            <td>Dated:<br><span>-</span></td>
        </tr>
        <tr>
            <td colspan="3" rowspan="3">
                <strong>Buyer (Bill to)</strong><br>
                <strong>@if($invoice->customerType == 'Student')
                                    {{$invoice->student->name}}
                                    @else
                                    @if($invoice->customerType == 'Customer')
                                    {{$invoice->customer->customerName}}
                                    @else
                                    {{$invoice->employee->name}}
                                    @endif
                                    @endif</strong><br>
                                    <br>
                                    <br>
                                    <br>
            </td>
            <td>Dispatch Doc. No.:<br><span>-</span></td>
            <td>Delivery Note Date:<br><span>-</span></td>
        </tr>
        <tr>
            <td>Dispatched through:<br><span>-</span></td>
            <td>Destination:<br><span>-</span></td>
        </tr>
        <tr>
            <td>Terms of Delivery:<br><span>-</span></td>
            <td></td>
        </tr>
    </table>
    <section>
        <table>
            <thead>
                <tr>
                    <th>SI</th>
                    <th>Description of Goods</th>
                    <th>HSN/SAC</th>
                    <th>Quantity</th>
                    <th>Rate</th>
                    <th>per</th>
                    <th>Tax. %</th>
                    <th>Amount</th>
                </tr>
            </thead>
            <tbody>
                <?php $i = 1; ?>
                @foreach($invoice->details as $det)
                <tr>
                    <td>{{$i}}</td>
                    <td>{{$det->product->productName}}</td>
                    <td></td>
                    <td>{{$det->quantity}} PCS</td>
                    <td>{{$det->rate}}</td>
                    <td>PCS</td>
                    <td>{{$det->tax}}%</td>
                    <td>{{$det->productTotal}}</td>
                </tr>
                <?php $i++; ?>
                @endforeach
                <tr>
                    <td class="container"></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>

                <tr>
                    <td></td>
                    <td colspan="5"></td>
                    <td>Subtotal</td>
                    <td>{{$invoice->subTotal}}</td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="5"></td>
                    <td>Total</td>
                    <td>{{$invoice->amountPayable}}</td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="5"></td>
                    <td>Paid Amount</td>
                    <td>{{$ip->amountPaid}}</td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="5"></td>
                    <td>Total Due</td>
                    <td>{{$b = $invoice->amountPayable - $ip->amountPaid}}</td>
                </tr>
            </tbody>
            
        </table>
        <div class="amount-in-words">
            <strong>Amount Chargeable (in words):</strong> {{figToWord($invoice->amountPayable)}}
        </div>
        <br>
        <table>
                <thead>
                    <tr>
                        <th>Paid By</th>
                        <th>Payment Date</th>
                        <th>Payment Details</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($inv_payments as $v)
                    @if($v->paymentMode != "Unpaid")
                    <tr>
                        <td>{{$v->paymentMode}}</td>
                        <td>{{$v->paymentDate}}</td>
                        <td>@if($v->paymentMode == 'Cheque' || $v->paymentMode =='DD')
                                Cheque/DD No. :  {{$v->chequeNo}}<br>
                                Cheque/DD Date : {{$v->chequeDate}}<br>
                                Bank Name : {{$v->bank->bankName or ''}}<br>
                                Amount : {{$v->paidAmount}}<br>
                                @endif
                                @if($v->paymentMode == 'IMPS')
                                @php $account = \App\PaidAccounts::where('idAccount',$v->idAccount)->first(); @endphp
                                Account No. :  {{$account->accountNo}}<br>
                                Bank Name : {{$account->bank->bankName or ''}}<br>
                                Amount : {{$v->paidAmount}}<br>
                                @endif
                        </td>
                    </tr>
                    @endif
                    @endforeach
                </tbody>
            </table>
            <table>
                <tr>
                    <td>
                        <strong>Company's Bank Details</strong><br>
                        {!! $school->company_bank !!}
                    </td>
                    <td style="width: 300px;">
                        <strong>Note:</strong><br>{{$invoice->notes}}
                    </td>
                </tr>
            </table>
            <div class="amount-in-words">
                <strong>Print Date:</strong> : {{\Carbon\Carbon::now()->format('d-m-Y')}}<br>
            </div>
    </section>
    <htmlpagefooter name="page-footer" >
            <!-- Signature -->
            <div class="signature">
                <br><br>
                Authorised Signatory
            </div>

            <div class="center small-text">
                This is a Computer Generated Invoice
            </div>
    </htmlpagefooter>

</body>
</html>

Copyright © 2021 - 2025 IMMREX7