pdf_barang.blade.php

mail@pastecode.io avatar
unknown
php
a month ago
827 B
4
Indexable
Never
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Laporan Barang</title>
</head>
<body>
    <h1>laporan barang</h1>
    <table width="100%" cellpadding="10" cellspacing="0" border=1>
        <tr>
            <th>No</th>
            <th>Kode</th>
            <th>Nama Barang</th>
            <th>Stok</th>
        </tr>

        @foreach ($data as $key => $item)
            <tr>
                <td align="center">{{$key + 1}}</td>
                <td align="center">{{$item->kode}}</td>
                <td align="center">{{$item->nama}}</td>
                <td align="center">{{$item->stok}}</td>
            </tr>
        @endforeach
    </table>
</body>
</html>
Leave a Comment