102 lines
2.9 KiB
PHP
102 lines
2.9 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Cetak pdf | Laporan Barang Masuk</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 20px;
|
|
background-color: #f4f4f9;
|
|
}
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
h4, p {
|
|
font-size: 24px;
|
|
margin: 0 20px;
|
|
color: #333;
|
|
text-align: center;
|
|
}
|
|
.logo {
|
|
width: 80px; /* Adjust the width as needed */
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
background-color: #fff;
|
|
}
|
|
th, td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
font-size: 10px;
|
|
}
|
|
th {
|
|
background-color: #969276;
|
|
color: #0c0c0c;
|
|
border-bottom: 2px solid #264653;
|
|
}
|
|
td {
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
{{-- <img src="{{ asset('admin/img/logo/jcc1.jpg') }}" alt="Logo" class="logo"> --}}
|
|
|
|
<div class="identitas">
|
|
<h4>Tabel Laporan Barang Masuk</h4>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>No</th>
|
|
<th scope="col">Nama Supplier</th>
|
|
<th scope="col">Kode Barang</th>
|
|
<th scope="col">Nama User</th>
|
|
<th scope="col">Nama Kopi</th>
|
|
<th scope="col">Harga Beli</th>
|
|
<th scope="col">Satuan</th>
|
|
<th scope="col">Jumlah(Kg)</th>
|
|
<th scope="col">Total Harga</th>
|
|
<th scope="col">Tanggal Masuk</th>
|
|
<th scope="col">Tanggal Kadaluarsa</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($barangMasuk as $barang)
|
|
<tr>
|
|
<td>{{ $loop->iteration }}</td>
|
|
<td>{{ $barang->nama_supplier }}</td>
|
|
<td>{{ $barang->kode_barang }}</td>
|
|
<td>{{ $barang->nama_user }}</td>
|
|
<td>{{ $barang->nama_kopi }}</td>
|
|
<td>@currency ($barang->harga_beli)</td>
|
|
<td>{{ $barang->satuan }}</td>
|
|
<td>{{ $barang->jumlah }}</td>
|
|
<td>@currency ($barang->total_harga)</td>
|
|
<td>{{ $barang->tanggal_masuk }}</td>
|
|
<td>{{ $barang->tanggal_kadaluarsa }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|