189 lines
6.8 KiB
PHP
189 lines
6.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Label {{ $label?->order?->no_order ?? '-' }}</title>
|
|
<style>
|
|
@page {
|
|
size: 80mm 130mm landscape;
|
|
margin: 4mm 1.5mm 2mm 1.5mm;
|
|
}
|
|
|
|
body {
|
|
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
|
|
font-size: 8.5px;
|
|
line-height: 1.1;
|
|
margin: 0;
|
|
color: #000;
|
|
margin-left: 22px;
|
|
}
|
|
.logo {
|
|
|
|
display: block;
|
|
width: 115px;
|
|
height: 35px;
|
|
margin-top: 15px;
|
|
margin-left: 13px;
|
|
}
|
|
|
|
.title {
|
|
text-align: center;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
margin-top: -32px;
|
|
margin-left:21px;
|
|
}
|
|
|
|
.order {
|
|
position: absolute;
|
|
font-size: 11px;
|
|
margin-left: 140px;
|
|
margin-top: -12px !important;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.info {
|
|
margin-top:10px;
|
|
margin-left: 30px !important;
|
|
justify-content: center;
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
|
|
}
|
|
.info td {
|
|
padding: 2px 5px;
|
|
vertical-align: top;
|
|
font-size: 10.5px;
|
|
}
|
|
.info td:first-child {
|
|
width: 30%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 10px;
|
|
text-align: center;
|
|
}
|
|
.footer-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px; /* jarak antar elemen */
|
|
}
|
|
.footer-logo {
|
|
margin-top:5px;
|
|
height: 40px; /* samakan tinggi logo */
|
|
}
|
|
.footer-text {
|
|
font-size: 12px;
|
|
margin-left:-12px;
|
|
font-weight: bold;
|
|
}
|
|
.footer-text-muted {
|
|
font-size: 10.5px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<img src="{{ public_path('logo/logo_rsabhk.png') }}" class="logo">
|
|
|
|
<div class="title">CATERING RSAB HARAPAN KITA</div>
|
|
<div class="order">No Order : {{ $label?->order?->no_order ?? 'xxxxxx' }}</div>
|
|
|
|
<table class="info">
|
|
@if($label->order?->jenis_customer === 'MCU')
|
|
<tr>
|
|
<td>Tanggal Pemeriksaan
|
|
</td>
|
|
<td>: {{ $label?->tgl_antar ? \Carbon\Carbon::parse($label->tgl_antar)->translatedFormat('d F Y') : '-' }}
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
|
|
<tr>
|
|
<td>{{ $label->order?->jenis_customer !== 'MCU' ? 'Nama Pemesan' : 'Nama Pasien'}}
|
|
{{ $label?->order?->jenis_customer === "Keluarga Pasien / Penunggu Pasien" ? '/ Pasien' : ''}}
|
|
</td>
|
|
<td><span style="vertical-align: top;">:</span>
|
|
<span style="max-width: 54mm; word-wrap: break-word; white-space: normal; display: inline-block; vertical-align: top;">
|
|
{{ $label?->order?->nama_pemesan }} {{ $label?->order?->jenis_customer === "Keluarga Pasien / Penunggu Pasien" ? '/ ' . $label?->order?->nama_pasien : ''}}
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
@if($label?->order?->jenis_customer === "Keluarga Pasien / Penunggu Pasien")
|
|
<tr>
|
|
<td>Ruang Perawatan/No Kamar</td>
|
|
<td><span style="vertical-align: top;">:</span>
|
|
<span style="max-width: 54mm; word-wrap: break-word; white-space: normal; display: inline-block; vertical-align: top;">
|
|
{{ $label?->order?->kelas_perawatan ?? '-'}} / {{ $label?->order?->no_kamar_perawatan ?? '-'}}
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
@elseif($label?->order?->jenis_customer === "Karyawan RSAB Harapan Kita")
|
|
<tr>
|
|
<td>Bagian/No Ekstensien </td>
|
|
<td><span style="vertical-align: top;">:</span>
|
|
<span style="max-width: 54mm; word-wrap: break-word; white-space: normal; display: inline-block; vertical-align: top;">
|
|
{{ $label?->order?->bagian_instalasi ?? '-'}} / {{ $label?->order?->no_ekstensien ?? '-'}}
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
|
|
@if ($label?->order?->nama_institusi)
|
|
<tr>
|
|
<td style="vertical-align: top;">Nama Institusi</td>
|
|
<td><span style="vertical-align: top;">:</span>
|
|
<span style="max-width: 54mm; word-wrap: break-word; white-space: normal; display: inline-block; vertical-align: top;">
|
|
{{ $label?->order?->nama_institusi }}
|
|
</span>
|
|
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
<tr>
|
|
<td> {{ $label->order?->jenis_customer !== 'MCU' ? 'Pesanan' : 'Jenis MCU'}}</td>
|
|
<td>
|
|
<span style="vertical-align: top;">:</span>
|
|
<span style="max-width: 54mm; word-wrap: break-word; white-space: normal; display: inline-block; vertical-align: top;">
|
|
{{ $label?->masterMcu?->nama_mcu ?? $label?->menu?->nama_menu }}
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
@if($label->total_kalori)
|
|
<tr><td>Total Kalori</td><td>: {{ $label->total_kalori }}</td></tr>
|
|
@endif
|
|
<tr><td>Catatan</td>
|
|
<td><span style="vertical-align: top;">:</span>
|
|
<span style="max-width: 54mm; word-wrap: break-word; white-space: normal; display: inline-block; vertical-align: top;">
|
|
{{ $label?->catatan ?? '-' }}
|
|
</span></td>
|
|
</tr>
|
|
<tr><td>Tanggal Produksi</td><td>: {{ $label?->tgl_antar ? \Carbon\Carbon::parse($label->tgl_antar)->translatedFormat('d F Y') : '-' }} </td></tr>
|
|
<tr><td>No. Telp</td><td>: {{ $label?->order?->no_wa ?? '-' }}</td></tr>
|
|
@if ($label?->order?->alamat)
|
|
<tr>
|
|
<td style="vertical-align: top;">Alamat</td>
|
|
<td><span style="vertical-align: top;">:</span>
|
|
<span style="max-width: 54mm; word-wrap: break-word; white-space: normal; display: inline-block; vertical-align: top;">
|
|
{{ $label?->order?->alamat }}
|
|
</span>
|
|
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
|
|
</table>
|
|
|
|
<div class="footer">
|
|
<div class="footer-content">
|
|
<img src="{{ public_path('logo/halal_gizi.png') }}" alt="Halal" class="footer-logo">
|
|
<span class="footer-text">SELAMAT MENIKMATI</span>
|
|
<img src="{{ public_path('logo/iso_gizi.png') }}" alt="ISO 22000" class="footer-logo">
|
|
</div>
|
|
<span class="footer-text-muted">Makanan sebaiknya dikonsumsi dalam waktu maksimal 2 jam setelah diberikan</span>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|