File "yoy-non-grouped.blade.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/resources/views/layouts/reports/yoy-non-grouped.blade.php
File size: 4.16 KB
MIME-type: text/html
Charset: utf-8

<!doctype html>
<html lang="en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

    <title>PO Report (Date: {{ $year_from."-".$year_to }})</title>

    <style>

        .details > p {
            margin: 0;
            padding: 0;
        }

        .table-responsive {
            overflow-x: auto;
        }

        .thick-hr {
            border-top: 4px solid #000;
            margin: 20px 0;
        }

        .custom-font {
            font-size: 10px;
        }

        .last-border {
            border-top: 2px solid black;
        }

    </style>
</head>
<body>

<div class="row">
    <div class="col-12 mt-5">
        <div class="d-flex justify-content-between">
            <div class="w-100">
                <h3>J&M Trophies</h3>
                <div class="font-weight-bold">PO Report (Date: {{ $year_from."-".$year_to }})</div>
                <hr class="border-4 thick-hr">
            </div>
        </div>
    </div>

    <div class="col-12 mt-5">
        <div class="table-responsive">
            <table class="table table-striped custom-font">
                <thead class=thead-dark>
                <tr>
                    <th>Order Number</th>
                    <th>Ordered By</th>
                    <th>Order Date</th>
                    <th>Payment Terms</th>
                    <th>Reference</th>
                    <th>Total Quantity</th>
                    <th>Total Price</th>
                </tr>
                </thead>
                <tbody>
                    @foreach($report_filtered as $key => $report)
                        <tr>
                            <td>
                                <strong>{{ $key }}</strong>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        @foreach($report as $value)
                            <tr>
                                <td>{{ $value['order_number'] }}</td>
                                <td>{{ $value['ordered_by'] }}</td>
                                <td>{{ $value['created_at'] }}</td>
                                <td>{{ $value['payment_terms'] }}</td>
                                <td>{{ $value['reference'] }}</td>
                                <td>{{ $value['quantity'] }}</td>
                                <td>{{ "$".$value['price'] }}</td>
                            </tr>
                        @endforeach
                        <tr class="last-border">
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>Total</td>
                            <td>{{ $totals[$key]['total_quantity'] }}</td>
                            <td>{{ "$".$totals[$key]['total_price'] }}</td>
                        </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>