303 lines
9.6 KiB
PHP
Executable File
303 lines
9.6 KiB
PHP
Executable File
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
|
|
<style>
|
|
@page {
|
|
margin: 20px 14px 24px 14px;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
|
font-size: 9px;
|
|
color: #000;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#header-table,
|
|
#info-table,
|
|
#sim {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
#header-table td,
|
|
#info-table td {
|
|
border: 0;
|
|
padding: 3px 5px;
|
|
}
|
|
|
|
#sim {
|
|
table-layout: fixed;
|
|
margin-top: 10px;
|
|
font-size: 8px;
|
|
}
|
|
|
|
#sim thead {
|
|
display: table-header-group;
|
|
}
|
|
|
|
#sim tfoot {
|
|
display: table-row-group;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
#sim tr {
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
#sim th {
|
|
border: 0;
|
|
border-bottom: 1px solid #000;
|
|
padding: 4px 2px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
line-height: 1.15;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
#sim td {
|
|
border: 0;
|
|
padding: 3px 3px;
|
|
vertical-align: top;
|
|
line-height: 1.15;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
#sim tfoot td {
|
|
border-top: 1px solid #000;
|
|
font-weight: bold;
|
|
padding-top: 5px;
|
|
}
|
|
|
|
.text-left {
|
|
text-align: left;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.col-no { width: 3%; }
|
|
.col-rujukan { width: 10%; }
|
|
.col-berat { width: 5%; }
|
|
.col-marhun { width: 8%; }
|
|
.col-pembiayaan { width: 8%; }
|
|
.col-margin { width: 5%; }
|
|
.col-keuntungan { width: 7%; }
|
|
.col-onepercent { width: 6%; }
|
|
.col-ujrah { width: 7%; }
|
|
.col-caj { width: 7%; }
|
|
.col-harga-lelong { width: 7%; }
|
|
.col-baki { width: 7%; }
|
|
.col-harga-asas { width: 7%; }
|
|
.col-pembeli { width: 13%; }
|
|
|
|
.signature-wrapper {
|
|
width: 100%;
|
|
margin-top: 32px;
|
|
page-break-inside: avoid;
|
|
clear: both;
|
|
}
|
|
|
|
.signature-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
.signature-table td {
|
|
border: 0;
|
|
padding: 0 20px;
|
|
font-size: 10px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.signature-space {
|
|
height: 45px;
|
|
}
|
|
|
|
.signature-line {
|
|
width: 260px;
|
|
border-top: 1px solid #000;
|
|
margin-bottom: 7px;
|
|
}
|
|
|
|
.signature-detail {
|
|
margin: 6px 0;
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
@php
|
|
$auctionInfo = collect($info)->first();
|
|
|
|
$tarikhLelong = '';
|
|
|
|
if (!empty($auctionInfo['tarikh_lelong'])) {
|
|
try {
|
|
$tarikhLelong = \Carbon\Carbon::parse(
|
|
$auctionInfo['tarikh_lelong']
|
|
)->format('d-m-Y');
|
|
} catch (\Exception $exception) {
|
|
$tarikhLelong = $auctionInfo['tarikh_lelong'];
|
|
}
|
|
}
|
|
|
|
$namaCawangan = '';
|
|
|
|
foreach ($arrayinfocaw as $laporanCawangan) {
|
|
foreach (($laporanCawangan['cawangan'] ?? []) as $details) {
|
|
$namaCawangan = $details['caw_name'] ?? '';
|
|
break 2;
|
|
}
|
|
}
|
|
|
|
$totalBaki = 0;
|
|
@endphp
|
|
|
|
<table id="header-table">
|
|
<tr>
|
|
<td>
|
|
<h3 style="margin: 0 0 20px 0;">
|
|
Koperasi Permodalan Kelantan Berhad
|
|
</h3>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<u><b>LAPORAN LELONG KESELURUHAN</b></u>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table id="info-table" style="margin-top: 15px;">
|
|
<tr>
|
|
<td style="width: 50%;">
|
|
Batch Lelong: {{ $lelong_id }}
|
|
</td>
|
|
<td style="width: 50%;">
|
|
Cawangan: {{ $namaCawangan }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Tarikh Lelong: {{ $tarikhLelong }}
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table id="sim">
|
|
<thead>
|
|
<tr>
|
|
<th class="col-no">No</th>
|
|
<th class="col-rujukan text-left">No Rujukan</th>
|
|
<th class="col-berat">Berat<br>(gm)</th>
|
|
<th class="col-marhun">Nilai Marhun Asal<br>(RM)</th>
|
|
<th class="col-pembiayaan">Pembiayaan<br>(RM)</th>
|
|
<th class="col-margin">Margin<br>(%)</th>
|
|
<th class="col-keuntungan">Keuntungan<br>(RM)</th>
|
|
<th class="col-onepercent">1%<br>(RM)</th>
|
|
<th class="col-ujrah">Lain-Lain Caj<br>(RM)</th>
|
|
<th class="col-caj">Caj Lelong<br>(RM)</th>
|
|
<th class="col-harga-lelong">Harga Lelong<br>(RM)</th>
|
|
<th class="col-baki">Baki Lelong<br>(RM)</th>
|
|
<th class="col-harga-asas">Harga Asas<br>(RM)</th>
|
|
<th class="col-pembeli text-left">Nama Pembeli</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@foreach ($arraydetails as $laporan)
|
|
@php
|
|
$laplelong = $laporan['laplelong'] ?? [];
|
|
$tagUjrah = (string) ($laplelong['tagujrah'] ?? '0');
|
|
$nilaiBaki = (float) ($laplelong['baki'] ?? 0);
|
|
$totalBaki += $nilaiBaki;
|
|
|
|
$keuntungan = (float) ($laplelong['bakiupah'] ?? 0);
|
|
$onePercent = $tagUjrah === '1'
|
|
? (float) ($laplelong['onepercent'] ?? 0)
|
|
: 0;
|
|
$lainLainCaj = $tagUjrah === '1'
|
|
? (float) ($laplelong['ujrah'] ?? 0)
|
|
: 0;
|
|
@endphp
|
|
|
|
<tr>
|
|
<td class="text-center">{{ $loop->iteration }}</td>
|
|
<td class="text-left">{{ $laplelong['norujukan'] ?? '-' }}</td>
|
|
<td class="text-right">{{ number_format((float) ($laplelong['berat'] ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($laplelong['nilaimarhun'] ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($laplelong['pinjaman'] ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($laporan['margin'] ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format($keuntungan, 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format($onePercent, 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format($lainLainCaj, 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($laplelong['cajlelong'] ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($laplelong['hargabida'] ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">
|
|
@if ($nilaiBaki > 0)
|
|
{{ number_format($nilaiBaki, 2, '.', ',') }}
|
|
@elseif ($nilaiBaki < 0)
|
|
({{ number_format(abs($nilaiBaki), 2, '.', ',') }})
|
|
@else
|
|
{{ number_format(0, 2, '.', ',') }}
|
|
@endif
|
|
</td>
|
|
<td class="text-right">{{ number_format((float) ($laplelong['hargaasas'] ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-left">{{ $laplelong['nama_bidder'] ?? '-' }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="2" class="text-left">JUMLAH KESELURUHAN</td>
|
|
<td class="text-right">{{ number_format((float) ($total_berat ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($total_nmarhun ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($total_pembiayaan ?? 0), 2, '.', ',') }}</td>
|
|
<td></td>
|
|
<td class="text-right">{{ number_format((float) ($total_upahsimpan ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($total_onepercent ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($total_ujrah ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($total_cajlelong ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">{{ number_format((float) ($total_hargalelong ?? 0), 2, '.', ',') }}</td>
|
|
<td class="text-right">
|
|
@if ($totalBaki > 0)
|
|
{{ number_format($totalBaki, 2, '.', ',') }}
|
|
@elseif ($totalBaki < 0)
|
|
({{ number_format(abs($totalBaki), 2, '.', ',') }})
|
|
@else
|
|
{{ number_format(0, 2, '.', ',') }}
|
|
@endif
|
|
</td>
|
|
<td class="text-right">{{ number_format((float) ($total_hargaasas ?? 0), 2, '.', ',') }}</td>
|
|
<td></td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
|
|
<div class="signature-wrapper">
|
|
<table class="signature-table">
|
|
<tr>
|
|
<td>
|
|
<b>Pengesahan Pelelong Berlesen:</b>
|
|
<div class="signature-space"></div>
|
|
<div class="signature-line"></div>
|
|
<div class="signature-detail">Tarikh: ____________________________</div>
|
|
<div class="signature-detail">Nama: ____________________________</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</body>
|