181 lines
5.8 KiB
PHP
181 lines
5.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Rekapitulasi Bukti Tayang</title>
|
|
<style>
|
|
@page {
|
|
margin: 1cm;
|
|
size: landscape;
|
|
/* Gunakan landscape agar tabel lebih leluasa */
|
|
}
|
|
|
|
body {
|
|
font-family: 'Times New Roman', Times, serif;
|
|
color: #000;
|
|
font-size: 10pt;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.letterhead {
|
|
width: 100%;
|
|
border-bottom: 3px solid #000;
|
|
padding-bottom: 2px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.letterhead-border-bottom {
|
|
border-bottom: 1px solid #000;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.institution-logo {
|
|
max-width: 60px;
|
|
}
|
|
|
|
.letterhead-content {
|
|
text-align: center;
|
|
}
|
|
|
|
.goverment-name {
|
|
font-size: 12pt;
|
|
text-transform: uppercase;
|
|
margin: 0;
|
|
}
|
|
|
|
.department-name {
|
|
font-size: 14pt;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
margin: 0;
|
|
}
|
|
|
|
.institution-address {
|
|
font-size: 8pt;
|
|
font-style: italic;
|
|
margin: 0;
|
|
}
|
|
|
|
.document-title {
|
|
text-align: center;
|
|
font-size: 12pt;
|
|
font-weight: bold;
|
|
text-decoration: underline;
|
|
text-transform: uppercase;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.report-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.report-table th,
|
|
.report-table td {
|
|
border: 1px solid #000;
|
|
padding: 8px 5px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.report-table th {
|
|
background-color: #f2f2f2;
|
|
text-transform: uppercase;
|
|
font-size: 9pt;
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.text-nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.signature-section {
|
|
width: 100%;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.signature-box {
|
|
float: right;
|
|
width: 250px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<table class="letterhead">
|
|
<tr>
|
|
<td width="10%" align="center">
|
|
@if ($logoBase64)
|
|
<img src="{{ $logoBase64 }}" class="institution-logo">
|
|
@else
|
|
<div style="width: 50px; height: 50px; border: 1px dashed #ccc;">LOGO</div>
|
|
@endif
|
|
</td>
|
|
<td width="90%" class="letterhead-content">
|
|
<div class="goverment-name">{{ $settings->site_name }}</div>
|
|
<div class="department-name">DINAS KOMUNIKASI DAN INFORMATIKA</div>
|
|
<div class="institution-address">
|
|
{{ $settings->address }}<br>
|
|
Email: {{ $settings->site_email }} | Telp: {{ $settings->site_phone }}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="letterhead-border-bottom"></div>
|
|
|
|
<div class="document-title">Rekapitulasi Bukti Tayang </div>
|
|
|
|
<table class="report-table">
|
|
<thead>
|
|
<tr>
|
|
<th width="3%" class="text-center">No</th>
|
|
<th width="12%">Media</th>
|
|
<th width="30%">Judul Berita/Publikasi</th>
|
|
<th width="10%" class="text-center">Tanggal Tayang</th>
|
|
<th width="15%">Tautan (Link)</th>
|
|
<th width="15%" class="text-center">Gambar</th>
|
|
<th width="10%" class="text-center">Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($records as $index => $record)
|
|
<tr>
|
|
<td class="text-center">{{ $index + 1 }}</td>
|
|
<td>{{ $record->mediaTaskAssignment?->partnerMedia?->name ?? '-' }}</td>
|
|
<td>{{ $record->title }}</td>
|
|
<td class="text-center text-nowrap">
|
|
{{ $record->publication_date?->translatedFormat('d F Y') ?? '-' }}</td>
|
|
<td style="word-break: break-all; font-size: 8pt;">{{ $record->link }}</td>
|
|
<td class="text-center">
|
|
@if ($record->imageBase64)
|
|
<img src="{{ $record->imageBase64 }}" style="max-width: 100px; max-height: 80px;">
|
|
@else
|
|
-
|
|
@endif
|
|
</td>
|
|
<td class="text-center">{{ $record->status->getLabel() }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="signature-section">
|
|
<div class="signature-box">
|
|
Purwakarta, {{ now()->translatedFormat('d F Y') }}<br>
|
|
Admin SIMEDKOM
|
|
<div style="margin-top: 60px; font-weight: bold; text-decoration: underline;">
|
|
SISTEM DINAS KOMINFO
|
|
</div>
|
|
<div style="font-size: 8pt;">Dokumen Sah Elektronik</div>
|
|
</div>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|