Files
lelong/resources/views/wtd/pdflistsagwtdprosesbycust.blade.php
T
nurafrinaalimi16 a3aa2f74c2 naming changes KoPKB
2025-01-23 13:41:57 +08:00

249 lines
7.2 KiB
PHP

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<style>
#sim {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:10px;
border-collapse: collapse;
width: 100%;
}
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
border: 0px solid;
padding: 1px;
/* text-align: left; */
}
#sim tr:nth-child(even){
border-bottom: 1px solid #ddd;
}
#sim tr:hover {}
#sim th {
/* text-align: left; */
border: 0px solid;
table-layout:auto;
color: black;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
#sim2 {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:10px;
border-collapse: collapse;
width: 100%;
}
#sim2 td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
border: 0px solid;
padding: 1px;
/* text-align: left; */
}
#sim2 tr:nth-child(even){
/* border-bottom: 1px solid #ddd; */
}
#sim2 tr:hover {}
#sim2 th {
/* text-align: left; */
border: 1px solid;
/* table-layout:auto; */
color: black;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
* {
box-sizing: border-box;
}
.row {
margin-left:-5px;
margin-right:-5px;
}
.column {
/* float: left; */
width: 100%;
padding: 5px;
}
/* Clearfix (clear floats) */
.row::after {
content: "";
clear: both;
display: table;
}
table {
border-collapse: collapse;
border-spacing: 0;
width: 200%;
border: 0px solid #ddd;
}
td {
/* text-align: left; */
padding: 16px;
}
th{
/* text-align: left; */
padding: 16px;
/* text-align: left; */
table-layout:auto
color: black;
border-bottom: 1px solid #ddd;
/* background-color:gainsboro; */
}
tr:nth-child(even) {
/* background-color: #f2f2f2; */
}
</style>
<style>
/** Define now the real margins of every page in the PDF **/
body {
/* margin-top: 1cm; */
/* margin-left: 2cm; */
/* margin-right: 2cm; */
margin-bottom: 2cm;
}
/** Define the footer rules **/
footer {
position: fixed;
bottom: 0cm;
left: 0cm;
right: 0cm;
height: 2cm;
/** Extra personal styles **/
/* background-color: #eaeaea; */
color: black;
text-align: center;
line-height: 1.5cm;
}
footer .pagenum:before {
content: counter(page);
}
</style>
<body>
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim2">
<tr>
<td width="50%"><h3>Koperasi Permodalan Kelantan Berhad</h3></td>
</tr>
<tr>
<td colspan="2"><u><b>SENARAI SAG WTD BY CUSTOMER (DALAM PROSES)</b></u></td>
</tr>
</table>
<footer>
<div class="pagenum-container"><span class="pagenum"></span></div>
</footer>
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim2">
<thead>
<br>
<tr>
<td><b>Cawangan : {{$cawanganDetail->caw_name}}</b></td>
<td><b>Jumlah(RM): {{$jumlahbaki}} </b></td>
{{-- <td><b>Bilangan : {{$jumlahbil}}</b></td> --}}
</thead>
</table>
<br>
<table cellspacing="0" cellpadding="5" style="float:right;" border="1" width="100%" height="80" align="left" id="sim2">
<thead class="bg-primary text-white">
<tr>
{{-- <th><input type="checkbox" aria-label="Checkbox for following text input" onclick="selectall(this)"></th> --}}
<th>Bil</th>
<th>NAMA</th>
<th>NOKP</th>
{{-- <th>NORUJUKAN</th> --}}
{{-- <th>TARIKH JUAL</th> --}}
{{-- <th>PEMBIAYAAN (RM)</th> --}}
<th>LEBIHAN(RM)</th>
</tr>
</thead>
<tbody>
{{-- {{dd($customers)}} --}}
@foreach ($customers as $customer)
<tr>
{{-- <td><input type="checkbox" aria-label="Checkbox for following text input" name="checkboxdata[]" value="{{ $lel->id }}"></td> --}}
<td>{{$loop->iteration}}</td>
<td style='word-wrap' align="left">{{$customer->nama}}</td>
<td align='center' style='word-wrap'>{{$customer->nokp}}</td>
{{--<td style="white-space: nowrap;">@foreach($customer['gadai'] as $data)
{{$data->norujukan}}<br>
@endforeach
</td>
<td style="white-space: nowrap;">@foreach($customer['gadai'] as $data)
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $data->t_jual );
$datez = $myDateTime->format('d-m-Y');
echo($datez);
@endphp<br>
@endforeach
</td>
<td align = 'right' style="white-space: nowrap;">
@php $jumpinjaman = 0;@endphp
@foreach($customer['gadai'] as $data)
@php
$jumpinjaman = $jumpinjaman + $data->pinjaman;
@endphp
{{$data->pinjaman}}<br>
@endforeach
<strong>{{ number_format($jumpinjaman, 2, '.', ',') }}</strong>
</td> --}}
<td align = 'right' style="white-space: nowrap;">
@php $jumbaki = 0;@endphp
@foreach($customer['gadai'] as $data)
@php
$jumbaki = $jumbaki + $data->baki;
@endphp
{{-- {{$data->baki}}<br> --}}
@endforeach
<strong>{{ number_format($jumbaki, 2, '.', ',') }}</strong>
</td>
</tr>
@endforeach
<tr>
<td colspan="3"><b>Jumlah Keseluruhan</b></td>
<td align="right"><b>{{$jumlahbaki}}</b></td>
</tr>
</tbody>
</table>