<html>
<head>
<title>:: Laporan Transaksi Pembelian</title>
</head>
<body>
<script type="text/javascript">
window.print();
window.onfocus = function() {
window.close();
}
</script>
<style>
table,
th,
td {
border: 1px solid black;
border-collapse: collapse;
}
td {
text-align: center;
}
</style>
<h2>LAPORAN DATA PEMBELIAN </h2>
<table cellspacing="1" cellpadding="2">
<thead>
<tr>
<th bgcolor="#F5F5F5">Nama Barang</th>
<th bgcolor="#F5F5F5">Kategori</th>
<th bgcolor="#F5F5F5">Harga Jual</th>
<th bgcolor="#F5F5F5">Harga Beli</th>
<th bgcolor="#F5F5F5">Stok Toko</th>
{{-- <th bgcolor="#F5F5F5">Stok Gudang</th> --}}
<th bgcolor="#F5F5F5">Retur_penjualan</th>
</tr>
</thead>
<tbody>
@foreach ($datas as $key => $data)
<tr>
<td>
{{ $data->nama_item }}
</td>
<td>
{{ $data->kategoriItem->nama_kategori }}
</td>
<td>
{{ number_format($data->harga_item) }}
</td>
<td>
{{ number_format($data->biaya_item) }}
</td>
<td>
{{ $data->stok }}
</td>
{{-- <td>
{{ $data->stok_gudang }}
</td> --}}
<td>
{{ $data->total_retur_penjualan }}
</td>
</tr>
@endforeach
</tbody>
</table>
</body>
</html>
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]