MIF_E31211972/resources/views/admin/pages/barang/cetakstruk.blade.php

117 lines
4.4 KiB
PHP

<!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">
<link rel="shortcut icon" href="{{ url(asset('customer/img/short-icon.png')) }}">
<title>Gudang Jember Coffe Centre</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<style>
body {
font-size: 18px;
font-family: "Noto Sans", sans-serif;
}
.container {
padding: 0px !important;
}
table p {
padding: 0px;
margin: 0px;
}
table .left {
width: 65%;
padding-bottom: 10px;
padding-right: 3px;
}
table .right {
width: 35%;
padding-bottom: 10px;
}
table.detail-item .item-title,
table.detail-item .item-subtotal,
.order-detail {
font-weight: 600;
}
table.detail-item .item-price {
font-size: 16px;
}
</style>
</head>
</head>
<body style="width: 350px">
@foreach ($data as $item)
<div class="container">
<div class="identitas">
<h4 style="text-align: center">Jember Coffe Centre</h4>
<p class="text-center" style="margin: 0px; padding: 0px; font-size: 18px;">Catatan Kopi Mentah Dari Supplier
</div>
<hr style="border-top: 2px dotted rgb(0, 0, 0)" class="mb-0">
<div class="d-flex justify-content-between">
<div class="order">
<p style="margin-bottom: 1px;">Tanggal Masuk</p>
<p style="margin-bottom: 1px;">Tanggal Kadaluarsa</p>
<p style="margin-bottom: 1px;">Jenis</p>
<p style="margin-bottom: 1px;">Supplier</p>
</div>
<div class="value">
<p style="margin-bottom: 1px; text-align: right;">
{{ $item->tanggal_masuk }}
</p>
<p style="margin-bottom: 1px; text-align: right;">
{{ $item->tanggal_kadaluarsa }}
</p>
<p style="margin-bottom: 1px; text-align: right;">{{ $item->nama_kopi }}</p>
<p style="margin-bottom: 1px; text-align: right;">{{ $item->nama_supplier }}</p>
{{-- <p style="margin-bottom: 1px; text-align: right;">Admin</p> --}}
</div>
</div>
<hr class="mb-1 mt-0" style="border-top: 2px dotted rgb(0, 0, 0)">
<img src="data:image/png;base64,{{ $barcode }}" alt="barcode" width="100%"/>
<hr style="border-top: 2px dotted rgb(0, 0, 0)" class="mb-2 mt-2">
<div class="d-flex justify-content-between">
<div class="bayar">
{{-- <p class="mb-2" style="line-height: 1;">Harga Beli</p> --}}
<p class="mb-2" style="line-height: 1;">Jumlah(Kg)</p>
<p class="mb-2" style="line-height: 1;">Total</p>
</div>
<div class="value-bayar mb-1">
{{-- <p class="mb-2 order-detail" style="line-height: 1; text-align: right;">@currency($item->harga_beli)</p> --}}
<p class="mb-2 order-detail" style="line-height: 1; text-align: right;">{{ $item->jumlah }}</p>
<p class="mb-2 order-detail" style="line-height: 1; text-align: right;">@currency($item->total_harga)</p>
</div>
</div>
{{-- <hr style="border-top: 2px dotted rgb(0, 0, 0)" class="mt-1 mb-2">
<p class="text-center fw-bold mb-0 mt-1">Terima Kasih</p>
<p class="text-center fw-bold">Telah Membeli Produk Kami</p> --}}
<hr style="border-top: 2px dotted rgb(0, 0, 0)" class="mt-1 mb-2">
</div>
@endforeach
<script>
window.print();
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous">
</script>
</body>
</html>