152 lines
4.3 KiB
PHP
152 lines
4.3 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="Content-Type" content="text/html; charset=Windows-1252" />
|
|
<title>Document</title>
|
|
{{-- <link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> --}}
|
|
{{-- <link href="https://fonts.googleapis.com/css2?family=Oswald&family=Roboto:wght@300;400&display=swap"
|
|
rel="stylesheet"> --}}
|
|
</head>
|
|
|
|
<style>
|
|
@font-face {
|
|
font-family: Bitum;
|
|
src: url('/assets/font/Bitum.ttf');
|
|
}
|
|
|
|
@page {
|
|
margin: 0cm;
|
|
}
|
|
|
|
html {
|
|
color: black;
|
|
}
|
|
|
|
body {
|
|
font-family: Bitum;
|
|
font-size: 8pt;
|
|
/* transform: scaleY(1.5); */
|
|
}
|
|
|
|
.title {
|
|
font-size: 11pt;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* .literely-table td,
|
|
th,
|
|
tr {
|
|
border-collapse: collapse;
|
|
border: 0.1px solid rgb(85, 85, 85);
|
|
} */
|
|
|
|
.rotate90 {
|
|
-webkit-transform: rotate(90deg);
|
|
-moz-transform: rotate(90deg);
|
|
-o-transform: rotate(90deg);
|
|
-ms-transform: rotate(90deg);
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
hr.style1 {
|
|
border-top: 3px double #8c8b8b;
|
|
}
|
|
|
|
hr.style2 {
|
|
border-top: 1px solid #8c8b8b;
|
|
}
|
|
|
|
.dashed-line {
|
|
border: 1.5px dashed black;
|
|
}
|
|
</style>
|
|
|
|
<body style="width: 58mm;">
|
|
@for ($i = 0; $i < 3; $i++)
|
|
<hr class="dashed-line" style="margin-top: 15px;">
|
|
<p style="text-align: center;font-size: 7pt">untuk dapur</p>
|
|
<hr class="dashed-line" style="margin-top: 10px;">
|
|
<span style="display: flex; justify-content: space-between">
|
|
<span>
|
|
<p>{{ tanggal_indonesia($pesanan->tanggal_pesanan) }}</p>
|
|
<p>{{ date('H:i', strtotime($pesanan->tanggal_pesanan)) }}</p>
|
|
</span>
|
|
<span style="text-align: right">
|
|
<p>{{ $pesanan->kode_pesanan }}</p>
|
|
<p>Kasir: {{ $pesanan->user->name }}</p>
|
|
</span>
|
|
</span>
|
|
<hr class="style2">
|
|
<span style="display: flex; justify-content: space-between">
|
|
<table width="100%">
|
|
<tr>
|
|
<td width=50%>
|
|
<h3>Meja: {{ $pesanan->nomor_meja }}</h3>
|
|
</td>
|
|
<td width=50% align="right">
|
|
<h3>Antrian: {{ $pesanan->nomor_antrian }}</h3>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<h3>Pemesan: {{ $pesanan->nama_pemesan }}</h3>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</span>
|
|
<p></p>
|
|
<hr class="style2">
|
|
<h5 style="text-align: left; margin-top:3px;">Menu Order</h5>
|
|
<table class="table" style="width: 100%;">
|
|
<tbody>
|
|
@foreach ($pesanan->detailPesanan as $item)
|
|
<tr>
|
|
<td style="width: 80px;" colspan="3">
|
|
<h4>
|
|
({{ $item->jumlah_produk }} X)
|
|
{{ $item->nama_produk }}
|
|
</h4>
|
|
@if ($item->keterangan_produk != '')
|
|
<br>
|
|
<p>
|
|
ket: {{ $item->keterangan_produk }}
|
|
</p>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<p style="text-align: left; margin-top:5px;">Keterangan Pesanan Keseluruhan</p>
|
|
<table class="table" style="width: 100%;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="width: 80px;" colspan="3">
|
|
<h4>{{ $pesanan->keterangan_pesanan != '' ? $pesanan->keterangan_pesanan : '-' }}</h4>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<hr class="style2">
|
|
@endfor
|
|
</body>
|
|
<script>
|
|
window.print();
|
|
</script>
|
|
|
|
</html>
|