auth
Zelda Ababil 2024-01-21 14:16:27 +07:00
parent 6a8953530e
commit 79354c6006
3 changed files with 84 additions and 30 deletions

View File

@ -83,14 +83,30 @@
<span>
<p>{{ tanggal_indonesia($pesanan->tanggal_pesanan) }}</p>
<p>{{ date('H:i', strtotime($pesanan->tanggal_pesanan)) }}</p>
<p>Meja: {{ $pesanan->nomor_meja }}</p>
</span>
<span style="text-align: right">
<p>{{ $pesanan->kode_pesanan }}</p>
<p>Kasir: {{ $pesanan->user->name }}</p>
<p>Order: {{ $pesanan->nama_pemesan }}</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">
<table class="literely-table" style="width: 100%;">

View File

@ -76,39 +76,57 @@
</style>
<body style="width: 58mm;">
@for ($i = 0; $i < 2; $i++) <hr class="dashed-line" style="margin-top: 15px;">
@for ($i = 0; $i < 2; $i++)
<hr class="dashed-line" style="margin-top: 15px;">
<p style="text-align: center;font-size: 7pt">Print Dapur</p>
<hr class="dashed-line" style="margin-top: 10px;">
<span style="display: flex; justify-content: space-between;margin-top: 10px;">
<hr class="style2">
<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>
<p>Meja: {{ $pesanan->nomor_meja }}</p>
</span>
<span style="text-align: right">
<p>{{ $pesanan->kode_pesanan }}</p>
<p>Kasir: {{ $pesanan->user->name }}</p>
<p>Order: {{ $pesanan->nama_pemesan }}</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">
<p style="text-align: left; margin-top:3px;">Menu Order</p>
<table class="table" style="width: 100%;">
<tbody>
@foreach ($pesanan->detailPesanan as $item)
<tr>
<td style="width: 80px;" colspan="3">
({{ $item->jumlah_produk }} X)
{{ $item->nama_produk }}
@if ($item->keterangan_produk != '')
<br>
<small>
&nbsp;&nbsp;&nbsp;&nbsp; ket: {{ $item->keterangan_produk }}
</small>
@endif
</td>
</tr>
<tr>
<td style="width: 80px;" colspan="3">
({{ $item->jumlah_produk }} X)
{{ $item->nama_produk }}
@if ($item->keterangan_produk != '')
<br>
<small>
&nbsp;&nbsp;&nbsp;&nbsp; ket: {{ $item->keterangan_produk }}
</small>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
@ -123,19 +141,19 @@
</tbody>
</table>
<hr class="style2">
@endfor
@endfor
<!-- Button Print -->
<br>
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
<div class="col-6 mt-2">
<button class="btn btn-danger btn-block hidden-print" id="refresh">Refresh
Halaman</button>
</div>
<!-- Button Print -->
<br>
<div class="">
<div class="col-6 mb">
<button class="btn btn-info btn-block hidden-print" id="print-dapur">Print</button>
</div>
<div class="col-6 mt-2">
<button class="btn btn-danger btn-block hidden-print" id="refresh">Refresh
Halaman</button>
</div>
</div>
</body>
<style>
/* Untuk menyembunyikan tombol print */
@ -220,4 +238,4 @@
})
</script>
</html>
</html>

View File

@ -80,6 +80,7 @@
<hr class="dashed-line" style="margin-top: 15px;">
<p style="text-align: center;font-size: 7pt">Print Dapur</p>
<hr class="dashed-line" style="margin-top: 10px;">
<hr class="style2">
<span style="display: flex; justify-content: space-between">
<span>
<p>{{ tanggal_indonesia($pesanan->tanggal_pesanan) }}</p>
@ -110,6 +111,25 @@
</span>
<p></p>
<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>