<html>

<head>
    <title>Danil Jaya Auto Service</title>
    <style type="text/css">
        html {
            font-family: "Arial, Helvetica, sans-serif";
        }

        .content {
            width: 80mm;
            font-size: 12px;
            padding: 5px;
            text-align: center;
        }

        .title {
            text-align: center;
            font-size: 16px;
            padding-bottom: 5px;
            border-bottom: 1px dashed;
        }

        .head {
            margin-top: 10px;
            margin-bottom: 5px;
            padding-bottom: 5px;
            border-bottom: 1px solid;
            font-size: 12px;
            text-align: left;
        }

        .head1 {
            border-bottom: 1px solid;
        }

        .table {
            width: 100%;

        }

        .thanks {
            margin-top: 3px;
            padding-top: 3px;
            text-align: center;
            border-top: 1px dashed;
        }

        @media print {
            @page {
                width: 80mm;
                margin: 0mm;
            }
        }
    </style>
</head>

<body onload=" window.print(); setTimeout(window.close, 0);">
    <div class="content">
        <div class="tittle">
            <b>Danil Jaya Auto Service</b>
            <br>
            Bengkel Mobil
        </div>

        <div class="head">
            Tanggal &nbsp; &nbsp;&nbsp; : <?php echo Date("d / m / y") . "" . Date("H : i "); ?> WIB <br>
            Suplier &nbsp; &nbsp; &nbsp; : <?= $sale->suplier ?><br>
            invoive &nbsp; &nbsp; &nbsp; : <?= $sale->invoice_nobrg ?>
        </div>

        <div class="transaction">

            <table width="100%" cellpadding="2" cellspacing="2" style="font-size: 16px">
                <tr>
                    <td width="48%"> nama barang</td>
                    <td align="center" width="2%">qty</td>
                </tr>
                <?php $no = 1;
                foreach ($sale_detail as $key => $data) { ?>
                    <tr>
                        <td> <?= $data->name_brg ?></td>
                        <td align="right"><?= $data->stok_brg ?></td>
                    </tr>
                <?php } ?>
            </table>

            <div class="thanks">
                                Support by Klinik Mobil App<br />
                *** Terima Kasih ***
            </div>
        </div>
</body>

</html>