fixing pagenumber
This commit is contained in:
@ -474,9 +474,17 @@
|
||||
$pages = array_filter($objects, function($v) {
|
||||
return $v['t'] == 'page';
|
||||
});
|
||||
|
||||
$number = 1;
|
||||
$no = 0;
|
||||
$noSurat = $infoSuratNew['no_surat'] ;
|
||||
foreach($pages as $pageId => $page) {
|
||||
$nos = $page['info']['pageNum'];
|
||||
$canvas->reopen_object($pageId + 1);
|
||||
$canvas->text(502, 780, "Page : ". $nos, $font, 10, array(0,0,0));
|
||||
$canvas->close_object();
|
||||
$number++;
|
||||
|
||||
if(($pageId + 1) !== $firstPageId) {
|
||||
$canvas->reopen_object($pageId + 1);
|
||||
$canvas->text(350, 50, "Lanjutan Surat No : $noSurat", $font, 10, array(0,0,0));
|
||||
|
@ -54,15 +54,14 @@
|
||||
}
|
||||
|
||||
|
||||
.footer {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
#footer {
|
||||
position: fixed;
|
||||
margin-top: 1cm;
|
||||
top: 23cm;
|
||||
font-size: 12px;
|
||||
|
||||
|
||||
left: 20px;
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
}
|
||||
#footer .page:after {
|
||||
content: counter(page);
|
||||
}
|
||||
|
||||
/* .header {
|
||||
@ -72,7 +71,7 @@
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
height: 50px;
|
||||
font-size: 20px !important;
|
||||
font-size: 20px !important;dsdas
|
||||
background-color: #000;
|
||||
color: white;
|
||||
text-align: center;
|
||||
@ -83,14 +82,14 @@
|
||||
/* body:nth-child(1) .header {
|
||||
display: none;
|
||||
} */
|
||||
|
||||
/*
|
||||
.pagenum:before {
|
||||
content: counter(page);
|
||||
}
|
||||
} */
|
||||
|
||||
.flyleaf {
|
||||
/* .flyleaf {
|
||||
page-break-after: always;
|
||||
}
|
||||
} */
|
||||
|
||||
|
||||
|
||||
@ -98,29 +97,29 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul class="no-bullets">
|
||||
<li>Nomor : {{$data['infoSuratNew']['no_surat']}}</li>
|
||||
<main>
|
||||
<ul class="no-bullets">
|
||||
<li>Nomor : {{$data['infoSuratNew']['no_surat']}}</li>
|
||||
<li>Tanggal : {{ $data['today'] }}</li>
|
||||
</ul><br>
|
||||
<ul class="no-bullets">
|
||||
</ul><br>
|
||||
<ul class="no-bullets">
|
||||
<li>Kepada Yth</li>
|
||||
<li>{{$data['infoSuratNew']['nama_tujuan']}}</li>
|
||||
<li>{{$data['infoSuratNew']['alamat']}}</li>
|
||||
<li>Email : {{$data['infoSuratNew']['email']}}</li>
|
||||
<li>Telp : {{$data['infoSuratNew']['tlp']}}</li>
|
||||
</ul><br>
|
||||
</ul><br>
|
||||
<ul class="no-bullets">
|
||||
<li> Sesuai dengan surat saudara Nomor {{$data['infoSuratNew']['no_req_surat']}} tanggal {{ Carbon\Carbon::parse($data['infoSuratNew']['tgl_req_surat'])->format('d-m-Y') }} dengan ini kami sampaikan data – data nasabah sesuai permintaan saudara sebagai berikut : </li><br>
|
||||
<li>Nama Nasabah : {{$data['DataCustomer']->SHORT_NAME}}</li>
|
||||
<li>Nomor CIF : {{$data['DataCustomer']->CUSTOMER_NO}}</li>
|
||||
</ul><br>
|
||||
</ul><br>
|
||||
<ul class="no-bullets">
|
||||
<li>SIMPANAN NASABAH YANG BERSANGKUTAN PADA BANK</li>
|
||||
<li>POSISI : {{ $data['batchDate'] }} </li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<table style="width:100%;" class="space1" >
|
||||
<table style="width:100%;" class="space1" >
|
||||
<thead style="background-color: dimgrey" >
|
||||
<tr>
|
||||
<th class="text-center space1" style="width:5%">No</th>
|
||||
@ -159,9 +158,9 @@
|
||||
@endif
|
||||
<!-- Add more rows here if needed -->
|
||||
</tbody>
|
||||
</table><br>
|
||||
</table><br>
|
||||
|
||||
<ul class="no-bullets">
|
||||
<ul class="no-bullets">
|
||||
<li>PINJAMAN YANG DIBERIKAN OLEH BANK KEPADA NASABAH</li>
|
||||
<li>POSISI : {{ $data['batchDate'] }} </li>
|
||||
</ul>
|
||||
@ -231,10 +230,6 @@
|
||||
@endif
|
||||
</tbody>
|
||||
</table><br>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="no-bullets" style="page-break-inside: avoid;">
|
||||
<li>FASILITAS LAIN YANG DITERIMA OLEH NASABAH</li>
|
||||
<li>POSISI : {{ $data['batchDate'] }} </li>
|
||||
@ -346,9 +341,8 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="footer">
|
||||
Page <span class="pagenum" style="margin-top:100px"></span>
|
||||
</div>
|
||||
</body>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user