@@ -0,0 +1,360 @@
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding:4px;
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style:bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td, #sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#sign tr:hover {background-color: #ddd;}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table id="header">
|
||||
<tr>
|
||||
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan ="5"><b>LAPORAN ANSURAN</b></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap" colspan="2"><b>Tarikh Mula: </b>
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $mula_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp
|
||||
|
||||
</td>
|
||||
|
||||
<td style="white-space: nowrap" colspan="2"><b> Tarikh Hingga: </b>
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp</td>
|
||||
|
||||
<td style="white-space: nowrap" colspan="2"><b>Tarikh Cetak: </b>
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th width="30%">Nama</th>
|
||||
<th>No K/P</th>
|
||||
<th>Tarikh Bayaran</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Bayaran Pemb. (RM)</th>
|
||||
<th>Ujrah(RM)</th>
|
||||
<th>Keuntungan 1% (RM)</th>
|
||||
<th>Keuntungan (RM)</th>
|
||||
<th>Bayaran (RM)</th>
|
||||
</tr>
|
||||
@php
|
||||
$counter = 1;
|
||||
$totalduitmasuk = 0;
|
||||
$totalkeuntungan = 0;
|
||||
$totalpendahuluan = 0;
|
||||
$totalujrah = 0;
|
||||
$totalonepercent = 0;
|
||||
@endphp
|
||||
@foreach($tebus as $index=>$item)
|
||||
@php
|
||||
$totalduitmasuk += $item['duit_masuk'];
|
||||
$totalkeuntungan += $item['bayaran_keuntungan'];
|
||||
$totalpendahuluan += $item['bayaran_pembiayaan'];
|
||||
$totalujrah += bcdiv(round($item['ansuranujrah'],2),1,1);
|
||||
$totalonepercent += bcdiv(round($item['ansuranonepercent'],2),1,1);
|
||||
@endphp
|
||||
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $tebus[$index - 1]['teller'])
|
||||
<tr>
|
||||
<td colspan="11">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php
|
||||
$totaldmteller = 0;
|
||||
$totalupahteller = 0;
|
||||
$totalpendhteller = 0;
|
||||
$totalujrahteller = 0;
|
||||
$totalonepercentteller = 0;
|
||||
@endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="11">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php
|
||||
$totaldmteller = 0;
|
||||
$totalupahteller = 0;
|
||||
$totalpendhteller = 0;
|
||||
$totalujrahteller = 0;
|
||||
$totalonepercentteller = 0;
|
||||
@endphp
|
||||
@endif
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{$item['norujukan']}}</td>
|
||||
<td>{{ $item['nama'] }}</td>
|
||||
<td>{{ $item['nokp'] }}</td>
|
||||
<td> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d H:i:s', $item['tarikh_bayaran']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp</td>
|
||||
<td>{{ $item['tempoh'] }}</td>
|
||||
<td>{{ number_format($item['bakipjm'],2) }}</td>
|
||||
<td>{{ number_format($item['bayaran_pembiayaan'],2) }}</td>
|
||||
<td>{{ number_format(bcdiv(round($item['ansuranujrah'],2),1,1),2) }}</td>
|
||||
<td>{{ number_format(bcdiv(round($item['ansuranonepercent'],2),1,1),2) }}</td>
|
||||
<td>{{ number_format($item['bayaran_keuntungan'],2) }}</td>
|
||||
<td>{{ number_format($item['duit_masuk'],2) }}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@php
|
||||
$totaldmteller += $item['duit_masuk'];
|
||||
$totalupahteller += $item['bayaran_keuntungan'];
|
||||
$totalpendhteller += $item['bayaran_pembiayaan'];
|
||||
$totalujrahteller += bcdiv(round($item['ansuranujrah'],2),1,1);
|
||||
$totalonepercentteller += bcdiv(round($item['ansuranonepercent'],2),1,1);
|
||||
@endphp
|
||||
|
||||
@if($index+1 < sizeof($tebus))
|
||||
@if($item['teller'] != $tebus[$index + 1]['teller'])
|
||||
<tr>
|
||||
<td colspan="7">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td><b>{{ number_format($totalpendhteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalujrahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalonepercentteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaldmteller,2) }} </b></td>
|
||||
</tr>
|
||||
@php
|
||||
$counter = 1;
|
||||
$totaldmteller = 0;
|
||||
$totalupahteller = 0;
|
||||
$totalpendhteller = 0;
|
||||
@endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="7">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td><b>{{ number_format($totalpendhteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalujrahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalonepercentteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaldmteller,2) }} </b></td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
<br><br>
|
||||
<table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||
<tr>
|
||||
<th colspan="9"></th>
|
||||
<th style="text-align:center;">Bayaran Pemb. (RM)</th>
|
||||
<th style="text-align:center;">Ujrah (RM)</th>
|
||||
<th style="text-align:center;">Keuntungan 1% (RM)</th>
|
||||
<th style="text-align:center;">Keuntungan (RM)</th>
|
||||
<th style="text-align:center;">Bayaran (RM)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($totalpendahuluan,2) }}</td>
|
||||
<td>{{ number_format($totalujrah,2) }}</td>
|
||||
<td>{{ number_format($totalonepercent,2) }}</td>
|
||||
<td>{{ number_format($totalkeuntungan,2) }}</td>
|
||||
<td>{{ number_format($totalduitmasuk,2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br><br>
|
||||
<br><br>
|
||||
<table id="sign">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2">.................................................................. </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||
<td> </td>
|
||||
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,404 @@
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding:4px;
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:8px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style:bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td, #sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#sign tr:hover {background-color: #ddd;}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table id="header">
|
||||
<tr>
|
||||
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan ="5"><b>LAPORAN GADAIAN</b></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap" colspan="2"><b>Tarikh Mula: </b>
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $mula_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp
|
||||
|
||||
</td>
|
||||
|
||||
<td style="white-space: nowrap" colspan="2"><b> Tarikh Hingga: </b>
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp</td>
|
||||
|
||||
<td style="white-space: nowrap" colspan="2"><b>Tarikh Cetak: </b>
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:50px">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Norujukan</th>
|
||||
<th>Nama</th>
|
||||
<th>Alamat</th>
|
||||
<th>No K/P</th>
|
||||
<th>Tarikh Gadai</th>
|
||||
<th>Masa</th>
|
||||
<th>Berat</th>
|
||||
<th>N Marhun</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>Ujrah (RM)</th>
|
||||
<th>Keuntungan 1% (RM)</th>
|
||||
<th>Keuntungan</th>
|
||||
<th>Peratus (%)</th>
|
||||
</tr>
|
||||
@php
|
||||
$counter = 1;
|
||||
$totalpinjaman = 0;
|
||||
$totalberat = 0;
|
||||
$totalnm = 0;
|
||||
$totalupah = 0;
|
||||
$bil = 0;
|
||||
$full_total_ujrah = 0;
|
||||
$full_total_onepercent = 0;
|
||||
|
||||
@endphp
|
||||
@foreach($gadai as $index=>$item)
|
||||
@php
|
||||
$totalpinjaman += $item['pinjaman'];
|
||||
$totalberat += $item['berat'];
|
||||
$totalnm += $item['nilaimarhun'];
|
||||
$totalupah += $item['upah12'];
|
||||
$full_total_ujrah += $item['ujrah']*12;
|
||||
$full_total_onepercent += $item['onepercent']*12;
|
||||
|
||||
@endphp
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $gadai[$index - 1]['teller'])
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php
|
||||
$totalpinjamanteller = 0;
|
||||
$totalnmteller = 0;
|
||||
$totalberatteller = 0;
|
||||
$totalujrah = 0;
|
||||
$totalonepercent = 0;
|
||||
|
||||
@endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php
|
||||
$totalpinjamanteller = 0;
|
||||
$totalnmteller = 0;
|
||||
$totalberatteller = 0;
|
||||
$totalupah12 = 0;
|
||||
$totalujrah = 0;
|
||||
$totalonepercent= 0;
|
||||
@endphp
|
||||
|
||||
@endif
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td style="width:100px">{{$item['norujukan']}}</td>
|
||||
<td>
|
||||
{{ $item['nama'] }}
|
||||
</td>
|
||||
<td>{{ $item['alamat1'] }}</td>
|
||||
<td>{{ $item['nokp'] }}</td>
|
||||
<td>@php
|
||||
$dt = new DateTime($item['t_gadai']);
|
||||
$time = $dt->format('d-m-Y');
|
||||
echo date($time);
|
||||
@endphp</td>
|
||||
<td>{{ $item['masa'] }}</td>
|
||||
<td>{{ number_format($item['berat'],2) }}</td>
|
||||
<td>{{ number_format($item['nilaimarhun'],2) }}</td>
|
||||
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($item['ujrah']*12,2) }}</td>
|
||||
<td>{{ number_format($item['onepercent']*12,2) }}</td>
|
||||
<td>{{ number_format($item['upah12'],2) }}</td>
|
||||
<td>{{ $item['percentpinj'] }}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@php
|
||||
$totalpinjamanteller += $item['pinjaman'];
|
||||
$totalnmteller += $item['nilaimarhun'];
|
||||
$totalberatteller += $item['berat'];
|
||||
$totalupah12 += $item['upah12'];
|
||||
$totalujrah += $item['ujrah']*12;
|
||||
$totalonepercent += $item['onepercent']*12;
|
||||
|
||||
|
||||
@endphp
|
||||
@if($index+1 < sizeof($gadai))
|
||||
@if($item['teller'] != $gadai[$index + 1]['teller'])
|
||||
@php if($item['teller'] != '')$bil += ($counter-1); @endphp
|
||||
<tr>
|
||||
<td colspan="7"><b>{{ $counter-1 }}</b> Jumlah surat bagi teller : <b>{{ $item['teller'] }}</b></td>
|
||||
<td><b>{{ number_format($totalberatteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalnmteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalujrah,2) }}</b></td>
|
||||
<td><b>{{ number_format($totalonepercent,2) }}</b></td>
|
||||
<td><b>{{ number_format($totalupah12,2) }} </b></td>
|
||||
|
||||
|
||||
</tr>
|
||||
@php
|
||||
$counter = 1;
|
||||
$totalupah12 = 0;
|
||||
$totalpinjamanteller = 0;
|
||||
$totalnmteller = 0;
|
||||
$totalujrah = 0;
|
||||
$totalonepercent = 0;
|
||||
|
||||
@endphp
|
||||
@endif
|
||||
@else
|
||||
@php $bil += ($counter-1); @endphp
|
||||
<tr>
|
||||
<td colspan="7"><b>{{ $counter-1 }}</b> Jumlah surat bagi teller : <b>{{ $item['teller'] }}</b></td>
|
||||
<td><b>{{ number_format($totalberatteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalnmteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalujrah,2) }}</b></td>
|
||||
<td><b>{{ number_format($totalonepercent,2) }}</b></td>
|
||||
<td><b>{{ number_format($totalupah12,2) }} </b></td>
|
||||
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
<br><br>
|
||||
<table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||
<tr>
|
||||
<th colspan="9" style="text-align: center;"><b>JUMLAH BILANGAN = {{ $bil }}</b></th>
|
||||
<th style="text-align:center;">Berat (g/m)</th>
|
||||
<th style="text-align:center;">Nilai Marhun (RM)</th>
|
||||
<th style="text-align:center;">Pembiayaan (RM)</th>
|
||||
<th style="text-align:center;">Ujrah (RM)</th>
|
||||
<th style="text-align:center;">Keuntungan 1% (RM)</th>
|
||||
<th style="text-align:center;">Upah/Keuntungan (RM)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($totalberat,2) }}</td>
|
||||
<td>{{ number_format($totalnm,2) }}</td>
|
||||
<td>{{ number_format($totalpinjaman,2) }}</td>
|
||||
<td>{{ number_format($full_total_ujrah,2) }}</td>
|
||||
<td>{{ number_format($full_total_onepercent,2) }}</td>
|
||||
<td>{{ number_format($totalupah,2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{-- <h5 style="float:right;">JUMLAH KESELURUHAN GADAIAN : RM {{ number_format($totalpinjaman,2) }}</h5> --}}
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table id="sign">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2">.................................................................. </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||
<td> </td>
|
||||
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,431 @@
|
||||
@extends('layouts.app')
|
||||
<style>
|
||||
|
||||
.radiostyle .radio-green {
|
||||
background-color: #27ae60;
|
||||
color:white;
|
||||
box-shadow: 5px 10px #888888;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red {
|
||||
background-color: #e74c3c;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow {
|
||||
background-color: #3498db;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-green:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-red:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-green input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td,
|
||||
#customers th {
|
||||
|
||||
padding: 4px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#header tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#header th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td,
|
||||
#scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#scan tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td,
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#scan tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td,
|
||||
#details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#details tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style: bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td,
|
||||
#sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#sign tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('laporan.stokauditkhas') }}">SA(Blast Whatsapp)</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Stok Audit Khas (Blast Whatsapp)</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="card-body text-center">
|
||||
|
||||
<form id="exportpdf" action="{{route('stokaudit.exportlaporancetakkhas')}}" target="_blank" method="POST">
|
||||
{{-- <a class="btn m-1 btn-success confirmdel" href="{{route('stokaudit.exportlaporancetakkhas')}}" data-toggle="tooltip" data-placement="top" title="Blast"><i class="far fa-mail-alt"></i>Blast Whatsapp & SMS</a> --}}
|
||||
@csrf
|
||||
<input type="hidden" name="type" id="typedonwload" value="">
|
||||
<input type="hidden" name="daritempoh" value="{{ $daritempoh}}">
|
||||
<input type="hidden" name="hinggatempoh" value="{{ $hinggatempoh}}">
|
||||
<input type='hidden' name="radaktif" value="aktif">
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan ="5"><b>Laporan Stok Audit Khas (Blast Whatsapp)</b></th>
|
||||
|
||||
<th><b> Tarikh Cetak:</b>
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo $formattedweddingdate;
|
||||
@endphp
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> <b>Dari Tempoh: {{$daritempoh}} hingga Tempoh: {{$hinggatempoh}}</b></th>
|
||||
<td></td>
|
||||
<td style="width:50px"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table class="table table-bordered" id="details" style="width:100%">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>Status</th>
|
||||
<th>Nama</th>
|
||||
<th>No. KP</th>
|
||||
<th>No. Telefon</th>
|
||||
<th>Norujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Pembiayaan Asal (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Keuntungan Belum Bayar (RM)</th>
|
||||
</thead>
|
||||
@php
|
||||
$counter = 1;
|
||||
$totalpinjaman = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($stokaudit['rekod'] as $index => $item)
|
||||
@php
|
||||
if ($item['listsag'][0]['hargajualan'] == null) {
|
||||
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||
} else {
|
||||
$totalpinjaman += $item['listsag'][0]['bakipjm'];
|
||||
}
|
||||
|
||||
if ($item['blasted'] == null) {
|
||||
$status = 'Belum';
|
||||
} else {
|
||||
$status = 'Selesai';
|
||||
}
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td style="white-space: nowrap">{{ $status ?? '-' }}</td>
|
||||
<td style="white-space: nowrap;">{{ $item['info']['nama'] ?? '-' }}</td>
|
||||
<td>{{ $item['nokp'] }}<input type="hidden" name="nokp[]" value="{{ $item['nokp']}}"></td>
|
||||
<td>{{ $item['info']['telefon'] ?? '-' }}<input type="hidden" name="telefon[]" value="{{ $item['info']['telefon'] ?? ''}}"></td>
|
||||
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}<br>@endforeach</td>
|
||||
<td>@foreach($item['listsag'] as $item1){{ $item1['tempoh']}}<br>@endforeach</td>
|
||||
<td>@foreach($item['listsag'] as $item1){{ $item1['berat']}}<br>@endforeach</td>
|
||||
<td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['nilaimarhun'], 2)}}<br>@endforeach</td>
|
||||
<td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['pinjaman'], 2)}}<br>@endforeach</td>
|
||||
<td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['bakipjm'], 2)}}<br>@endforeach</td>
|
||||
<td align = "right">@foreach($item['listsag'] as $item1){{ number_format($item1['tunggakan'], 2) }}<br>@endforeach</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
<tfoot>
|
||||
<th colspan='7'>Jumlah</th>
|
||||
<th>{{ number_format($stokaudit['totalberat'], 2) }}</th>
|
||||
<th align = "right">{{ number_format($stokaudit['totalnilaimarhun'], 2) }}</th>
|
||||
<th align = "right">{{ number_format($stokaudit['totalpinjaman'], 2) }}</th>
|
||||
<th align = "right">{{ number_format($stokaudit['totalbakipjm'], 2) }}</th>
|
||||
<th>{{ number_format($stokaudit['totaltunggakan'], 2) }}</th>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
{{-- <table id="sign">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2">.................................................................. </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||
<td> </td>
|
||||
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table> --}}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
var tablelelongbid= $('#details').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"target": '_blank',
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
// order: [[1, 'asc']],
|
||||
// // "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 9999999,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
{
|
||||
className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||
target: "_blank",
|
||||
titleAttr: 'Export to Excel',
|
||||
text: '<h8><b>EXCEL</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$('#typedonwload').val('excel');
|
||||
$("#exportpdf").submit();
|
||||
// window.open("_blank");
|
||||
}
|
||||
},
|
||||
{
|
||||
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Export to PDF',
|
||||
text: '<h8><b>PDF</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$('#typedonwload').val('pdf');
|
||||
$("#exportpdf").submit();
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||
target: "_blank",
|
||||
titleAttr: 'Blast Whatsapp',
|
||||
text: '<h8><b>WHATSAPP & SMS</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('whatsapp');
|
||||
// $("#exportpdf").submit();
|
||||
$("#exportpdf").click(function() {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
alert("ADAKAH ANDA PASTI?");
|
||||
$('#typedonwload').val('whatsapp');
|
||||
$("#exportpdf").submit();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,503 @@
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding:4px;
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:8px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style:bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td, #sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#sign tr:hover {background-color: #ddd;}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.new-page {
|
||||
page-break-before: always;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<table id="header">
|
||||
<tr>
|
||||
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan ="5"><b>LAPORAN PENEBUSAN</b></th>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap" colspan="2"><b>Tarikh Mula: </b>
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $mula_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp
|
||||
|
||||
</td>
|
||||
|
||||
<td style="white-space: nowrap" colspan="2"><b> Tarikh Hingga: </b>
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp</td>
|
||||
|
||||
<td style="white-space: nowrap" colspan="2"><b>Tarikh Cetak: </b>
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Norujukan</th>
|
||||
<th>Nama</th>
|
||||
<th>No KP</th>
|
||||
<th>Tarikh Tebus</th>
|
||||
<th>Masa</th>
|
||||
<th>JBG</th>
|
||||
<th>J Tebus</th>
|
||||
<th>Nilai Marhun(RM)</th>
|
||||
<th>P. Asal(RM)</th>
|
||||
<th>B.Pembiayaan(RM)</th>
|
||||
<th>Ujrah(RM)</th>
|
||||
<th>Keuntungan 1%(RM)</th>
|
||||
<th>Keuntungan(RM)</th>
|
||||
<th>Bayaran(RM)</th>
|
||||
<th>Jumlah(RM)</th>
|
||||
</tr>
|
||||
@php
|
||||
$counter = 1;
|
||||
$totalnm = 0;
|
||||
$totalbayaran = 0;
|
||||
$totalpinjamanasal = 0;
|
||||
$totalpinjaman = 0;
|
||||
$totalupah = 0;
|
||||
$totalujrah = 0;
|
||||
$totalonepercent = 0;
|
||||
@endphp
|
||||
|
||||
@foreach($tebus as $index=>$item)
|
||||
@php
|
||||
$totalbayaran += ($item['jenistebus'] === 'S') ? ($item['gadaibakipjm']+$item['bakiupah']) : $item['bakipjm'];
|
||||
$totalpinjaman += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman'];
|
||||
$totalupah += $item['bakiupah'];
|
||||
$totalpinjamanasal += $item['pinjaman'];
|
||||
$totalnm += $item['nilaimarhun'];
|
||||
$totalujrah += $item['ujrah'];
|
||||
$totalonepercent += $item['onepercent'];
|
||||
|
||||
@endphp
|
||||
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $tebus[$index - 1]['teller'])
|
||||
<tr>
|
||||
<td colspan="12">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php
|
||||
$totalnmteller = 0;
|
||||
$totalpinjamanasalteller = 0;
|
||||
$totalpinjamanteller = 0;
|
||||
$totalupahteller = 0;
|
||||
$totalbayaranteller = 0;
|
||||
$totalujrahteller = 0;
|
||||
$totalonepercentteller = 0;
|
||||
@endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="12">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php
|
||||
$totalnmteller = 0;
|
||||
$totalpinjamanasalteller = 0;
|
||||
$totalpinjamanteller = 0;
|
||||
$totalupahteller = 0;
|
||||
$totalbayaranteller = 0;
|
||||
$totaljumlahteller = 0;
|
||||
$totalujrahteller = 0;
|
||||
$totalonepercentteller = 0;
|
||||
@endphp
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $item['norujukan'] }}</td>
|
||||
<td>{{ $item['nama'] }}</td>
|
||||
<td>{{ $item['nokp'] }}</td>
|
||||
<td>
|
||||
@php
|
||||
$dt = new DateTime($item['tarikh_bayaran']);
|
||||
$time = $dt->format('d-m-Y');
|
||||
echo date($time);
|
||||
@endphp
|
||||
</td>
|
||||
<td>
|
||||
@php
|
||||
$dt = new DateTime($item['tarikh_bayaran']);
|
||||
$time = $dt->format('h:i:s');
|
||||
echo date($time);
|
||||
@endphp
|
||||
</td>
|
||||
<td>{{ $item['jbg'] }}</td>
|
||||
<td>{{$item['jenistebus']}}</td>
|
||||
<td>
|
||||
{{ number_format($item['nilaimarhun'],2) }}
|
||||
</td>
|
||||
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||
<td>
|
||||
@php
|
||||
if($item['hargajualan'] !== $item['bakihargajualan'])
|
||||
echo number_format($item['gadaibakipjm'],2);
|
||||
else
|
||||
echo number_format($item['pinjaman'],2);
|
||||
@endphp
|
||||
</td>
|
||||
<td>{{ number_format($item['ujrah'],2) }}</td>
|
||||
<td>{{ number_format($item['onepercent'],2) }}</td>
|
||||
<td>{{ number_format($item['bakiupah'],2) }}</td>
|
||||
<td>{{ number_format($item['bakipjm'],2) }}</td>
|
||||
<td>@php if($item['jenistebus'] == 'S'){ $total=($item['gadaibakipjm']+$item['bakiupah']);echo number_format($total,2);} else echo number_format($item['bakipjm'],2); @endphp</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@php $counter++; @endphp
|
||||
@php
|
||||
$totalnmteller += $item['nilaimarhun'];
|
||||
$totalpinjamanasalteller += $item['pinjaman'];
|
||||
$totalpinjamanteller += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman'];
|
||||
$totalupahteller += $item['bakiupah'];$totalbayaranteller += $item['bakipjm'];
|
||||
$totalujrahteller += $item['ujrah'];
|
||||
$totalonepercentteller += $item['onepercent'];
|
||||
@endphp
|
||||
|
||||
@php
|
||||
$totaljumlahteller += ($item['jenistebus'] === 'S') ? ($item['gadaibakipjm']+$item['bakiupah']) : $item['bakipjm'];
|
||||
@endphp
|
||||
|
||||
@if($index+1 < sizeof($tebus))
|
||||
@if($item['teller'] != $tebus[$index + 1]['teller'])
|
||||
<tr class="new-page">
|
||||
<td colspan="8"><b>{{ $counter-1 }}</b> Jumlah Bagi Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
<td><b>{{ number_format($totalnmteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalpinjamanasalteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalujrahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalonepercentteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaljumlahteller,2) }} </b></td>
|
||||
|
||||
</tr>
|
||||
@php
|
||||
$counter = 1;
|
||||
$totalpinjamanasalteller = 0;
|
||||
$totalpinjamanteller = 0;
|
||||
$totalupahteller = 0;
|
||||
$totalbayaranteller = 0;
|
||||
$totaljumlahteller = 0;
|
||||
$totalujrahteller = 0;
|
||||
$totalonepercentteller = 0;
|
||||
@endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="8"><b>{{ $counter-1 }}</b> Jumlah Bagi Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
<td><b>{{ number_format($totalnmteller,2) }}</b></td>
|
||||
<td><b>{{ number_format($totalpinjamanasalteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalujrahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalonepercentteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaljumlahteller,2) }} </b></td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
<br><br>
|
||||
<table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||
<tr>
|
||||
<th colspan="9" style="text-align: center;"><b>JUMLAH BILANGAN = {{ $tebuspengasingan['biltawarruq'] + $tebuspengasingan['bilarrahn'] }}</b></th>
|
||||
<th style="text-align:center;">Nilai Marhun (RM)</th>
|
||||
<th style="text-align:center;">Pembiayaan Asal(RM)</th>
|
||||
<th style="text-align:center;">B. Pembiayaan (RM)</th>
|
||||
<th style="text-align:center;">Keuntungan Rebet(RM)</th>
|
||||
<th style="text-align:center;">Ujrah (RM)</th>
|
||||
<th style="text-align:center;">Keuntungan 1% (RM)</th>
|
||||
<th style="text-align:center;">Upah/Keuntungan (RM)</th>
|
||||
<th style="text-align:center;">Keuntungan Sebenar(RM)</th>
|
||||
<th style="text-align:center;">Jumlah (RM)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($totalnm,2) }}</td>
|
||||
<td>{{ number_format($totalpinjamanasal,2) }}</td>
|
||||
<td>{{ number_format($totalpinjaman,2) }}</td>
|
||||
<td>@php $totalkeuntunganrebet = ($totalpinjaman + $totalupah) - $totalbayaran;
|
||||
echo number_format($totalkeuntunganrebet,2);
|
||||
@endphp</td>
|
||||
<td>{{ number_format($totalujrah,2) }}</td>
|
||||
<td>{{ number_format($totalonepercent,2) }}</td>
|
||||
<td>{{ number_format($totalupah,2) }}</td>
|
||||
<td>{{ number_format($totalupah - $totalkeuntunganrebet,2) }}</td>
|
||||
<td>{{ number_format($totalbayaran,2) }}</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h4>Laporan Transaksi Penebusan</h4>
|
||||
<br>
|
||||
|
||||
<table id="details">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>Jenis</th>
|
||||
<th>Penebusan(RM)</th>
|
||||
<th>Ujrah(RM)</th>
|
||||
<th>Keuntungan 1% (RM)</th>
|
||||
<th>Keuntungan(RM)</th>
|
||||
<th>Rebate(RM)</th>
|
||||
</thead>
|
||||
<tr>
|
||||
<td>{{ $tebuspengasingan['biltawarruq'] }}</td>
|
||||
<td>Tawarruq</td>
|
||||
<td>{{ number_format($tebuspengasingan['totaltawarruq'],2) }}</td>
|
||||
<td>{{ number_format($tebuspengasingan['ujrahtawarruq'],2) }}</td>
|
||||
<td>{{ number_format($tebuspengasingan['onepercenttawarruq'],2) }}</td>
|
||||
<td>{{ number_format($tebuspengasingan['keuntungantawarruq'],2) }}</td>
|
||||
<td>{{ number_format($tebuspengasingan['totalrebate'],2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $tebuspengasingan['bilarrahn'] }}</td>
|
||||
<td>Ar-Rahn</td>
|
||||
<td>{{ number_format($tebuspengasingan['totalarrahn'],2) }}</td>
|
||||
<td>{{ number_format($tebuspengasingan['ujraharrahn'],2) }}</td>
|
||||
<td>{{ number_format($tebuspengasingan['onepercentarrahn'],2) }}</td>
|
||||
<td>{{ number_format($tebuspengasingan['keuntunganarrahn'],2) }}</td>
|
||||
<td> Not Applicable </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $upahlama['bilkaunter'] }}</td>
|
||||
<td>Bayaran Upah</td>
|
||||
<td> Not Applicable </td>
|
||||
<td> Not Applicable</td>
|
||||
<td> Not Applicable</td>
|
||||
<td>{{ number_format($upahlama['totalkaunter'],2) }}</td>
|
||||
<td> Not Applicable </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $upahlama['bilonline'] }}</td>
|
||||
<td>Bayaran Upah Online</td>
|
||||
<td> Not Applicable </td>
|
||||
<td> Not Applicable</td>
|
||||
<td> Not Applicable</td>
|
||||
<td>{{ number_format($upahlama['totalonline'],2) }}</td>
|
||||
<td> Not Applicable </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $ansuran['bilangankaunter'] }}</td>
|
||||
<td>Ansuran Pembiayaan</td>
|
||||
<td>{{ number_format($ansuran['totalpendahuluankaunter'],2) }}</td>
|
||||
<td>{{ number_format($ansuran['totalujrahkaunter'],2) }}</td>
|
||||
<td>{{ number_format($ansuran['totalonepercentkaunter'],2) }}</td>
|
||||
<td>{{ number_format($ansuran['totalkeuntungankaunter'],2) }}</td>
|
||||
<td> Not Applicable </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $ansuran['bilanganonline'] }}</td>
|
||||
<td>Ansuran Pembiayaan Online</td>
|
||||
<td>{{ number_format($ansuran['totalpendahuluanonline'],2) }}</td>
|
||||
<td>{{ number_format($ansuran['totalujrahonline'],2) }}</td>
|
||||
<td>{{ number_format($ansuran['totalonepercentonline'],2) }}</td>
|
||||
<td>{{ number_format($ansuran['totalkeuntunganonline'],2) }}</td>
|
||||
<td> Not Applicable </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table id="sign">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2">.................................................................. </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||
<td> </td>
|
||||
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user