706 lines
18 KiB
PHP
706 lines
18 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
window.print();
|
|
window.onfocus = function() {
|
|
window.close();
|
|
}
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<style>
|
|
/* Red border */
|
|
hr.new1 {
|
|
border-top: 1px solid red;
|
|
}
|
|
|
|
/* Dashed red border */
|
|
hr.new2 {
|
|
border-top: 1px dashed red;
|
|
}
|
|
|
|
/* Dotted red border */
|
|
hr.new3 {
|
|
border-top: 1px dotted red;
|
|
}
|
|
|
|
/* Thick red border */
|
|
hr.new4 {
|
|
border: 1px solid red;
|
|
}
|
|
|
|
/* Large rounded green border */
|
|
hr.new5 {
|
|
border: 10px solid green;
|
|
border-radius: 5px;
|
|
}
|
|
</style>
|
|
|
|
<style>
|
|
#cust {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
width: 20%;
|
|
font-size: 12px;
|
|
border: 1px solid black;
|
|
|
|
}
|
|
|
|
#cust td,
|
|
#cust th {
|
|
border: 0px solid;
|
|
padding: 3px;
|
|
font-size: 10px;
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
#cust tr:nth-child(even) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#cust tr:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#cust th {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
text-align: right;
|
|
background-color: #d9deda;
|
|
color: black;
|
|
padding: 2px;
|
|
}
|
|
|
|
#cust {
|
|
margin-left: auto;
|
|
margin-right: 0;
|
|
}
|
|
|
|
hr.new1 {
|
|
border-top: 1px dotted black;
|
|
}
|
|
|
|
.khazanah {
|
|
border: 1px solid black;
|
|
margin-left: 20px;
|
|
padding: 10px;
|
|
width: 250px;
|
|
transform: rotate(-90deg);
|
|
font-size: 11px;
|
|
}
|
|
|
|
#inside {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
font-size: 15px;
|
|
}
|
|
|
|
#inside td,
|
|
#inside th {
|
|
border: none;
|
|
padding: 2px;
|
|
}
|
|
|
|
#inside tr:nth-child(even) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#inside tr:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#inside th {
|
|
padding-top: 12px;
|
|
padding-bottom: 10px;
|
|
text-align: left;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
|
|
|
|
|
|
#semakan {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin-top: 40px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#semakan td,
|
|
#semakan th {
|
|
border: none;
|
|
padding: 2px;
|
|
text-align: center;
|
|
}
|
|
|
|
#semakan tr:nth-child(even) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#semakan tr:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#semakan th {
|
|
padding-top: 12px;
|
|
padding-bottom: 10px;
|
|
text-align: left;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
#salinan {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
font-size: 11px;
|
|
}
|
|
|
|
#salinan td,
|
|
#salinan th {
|
|
padding: 2px;
|
|
}
|
|
|
|
|
|
#salinan tr:nth-child(even) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#salinan tr:hover {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#salinan th {
|
|
padding-top: 12px;
|
|
padding-bottom: 10px;
|
|
text-align: right;
|
|
background-color: #ffffff;
|
|
color: black;
|
|
padding: 2px;
|
|
}
|
|
|
|
#perjanjian {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
#perjanjian td,
|
|
#perjanjian th {
|
|
border: 1px solid #ddd;
|
|
padding: 2px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
#perjanjian tr:nth-child(even) {
|
|
background-color: #ffffff
|
|
}
|
|
|
|
#perjanjian tr:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#perjanjian th {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
text-align: center;
|
|
background-color: #d9deda;
|
|
color: black;
|
|
padding: 5px;
|
|
}
|
|
|
|
#keuntungan {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
#keuntungan td,
|
|
#keuntungan th {
|
|
border: 1px solid #ddd;
|
|
padding: 2px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
#keuntungan tr:nth-child(even) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#keuntungan tr:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#keuntungan th {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
text-align: center;
|
|
background-color: #d9deda;
|
|
color: black;
|
|
padding: 2px;
|
|
}
|
|
|
|
#payment {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
width: 90%;
|
|
font-size: 13px;
|
|
border: 1px solid black;
|
|
|
|
}
|
|
|
|
#payment td,
|
|
#payment th {
|
|
border: 0px solid;
|
|
padding: 3px;
|
|
font-size: 15px;
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
#payment tr:nth-child(even) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#payment tr:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#payment th {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
text-align: left;
|
|
background-color: #d9deda;
|
|
color: black;
|
|
padding: 2px;
|
|
}
|
|
|
|
#payment {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
#akuan td,
|
|
#akuan th {
|
|
padding: 7px;
|
|
font-size: 10px;
|
|
padding: 4px;
|
|
}
|
|
|
|
#akuan tr:nth-child(even) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#akuan tr:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#akuan th {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
text-align: center;
|
|
background-color: #d9deda;
|
|
color: black;
|
|
padding: 3px;
|
|
}
|
|
|
|
.page-break {
|
|
page-break-before: always;
|
|
}
|
|
|
|
.formula {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#copy_cust {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
width: 10%;
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#copy_cust tr:nth-child(even) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#copy_cust tr:hover {
|
|
background-color: #ffffff
|
|
}
|
|
|
|
#copy_cust th {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
text-align: center;
|
|
background-color: #d9deda;
|
|
color: black;
|
|
padding: 4px;
|
|
}
|
|
|
|
|
|
#copy_cust {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-collapse: collapse;
|
|
width: 50%;
|
|
font-size: 12px;
|
|
|
|
|
|
}
|
|
|
|
#copy_cust td,
|
|
#copy_cust th {
|
|
border: 1px solid #ddd;
|
|
padding: 2px;
|
|
font-size: 9px;
|
|
text-align: right;
|
|
width: 10%;
|
|
|
|
}
|
|
|
|
#copy_cust {
|
|
margin-right: 0px;
|
|
margin-left: auto
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#inside tr:nth-child(even) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#inside tr:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#inside th {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
text-align: center;
|
|
background-color: #d9deda;
|
|
color: black;
|
|
padding: 4px;
|
|
}
|
|
|
|
.header-style {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center
|
|
}
|
|
|
|
.header-style span {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
text-align: right;
|
|
background-color: #d9deda;
|
|
color: black;
|
|
padding: 2px;
|
|
font-size: 10px;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
.receipt-type-style {
|
|
position: absolute;
|
|
right: 0;
|
|
height: 100%;
|
|
width:40px;
|
|
display:flex;
|
|
justify-content:center;
|
|
align-items:end;
|
|
font-size: 45px;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
<div class="header-style">
|
|
<!-- Logo Section -->
|
|
<div style="display: flex; align-items: center;">
|
|
<img src="{{ asset('img/kopkb.png') }}" style="width: 80px; margin-right: 10px;" alt="KOPKB Logo" class="center">
|
|
<img src="{{ asset('img/ARRAHN1.png') }}" style="width: 50px;" alt="ARRAHN Logo" class="center">
|
|
</div>
|
|
|
|
<!-- Cawangan Info -->
|
|
<div style="display: flex; align-items: center; margin-top: 10px;">
|
|
<span style="color: #0a0b0b; font-weight: bold;">
|
|
<strong>{{ $cawangan_info["details_caw"] }}</strong>
|
|
</span>
|
|
</div>
|
|
|
|
<!-- Notice Section -->
|
|
<div style="margin-top: 10px;">
|
|
<span><strong>UNTUK KEGUNAAN PELANGGAN</strong></span>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div style="position: relative">
|
|
<div class="receipt-type-style">A</div>
|
|
<table id="inside">
|
|
|
|
<tr>
|
|
<td colspan="3">Nama</td>
|
|
<td>: {{ $customers_info['nama'] }} </td>
|
|
<td colspan="3"> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td><b> No SAG</b></td>
|
|
<td>: <b style="font-size:15px">{{ $transaction['norujukan'] }}</b> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">No K/P </td>
|
|
<td>: @php
|
|
if ($customers_info['kpbaru'] == '') {
|
|
echo $customers_info['kplama'];
|
|
} else {
|
|
echo $customers_info['kpbaru'];
|
|
}
|
|
@endphp </td>
|
|
<td colspan="3"> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td> Tarikh Bayar</td>
|
|
<td>: @php
|
|
$time = new DateTime($transaction['created_at']);
|
|
$date = $time->format('d/m/Y');
|
|
echo $date;
|
|
@endphp</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="7"> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td>Masa Bayaran</td>
|
|
@php
|
|
$masa_bayaran = strtotime($transaction['tarikh_bayaran']);
|
|
$masa = date('H:i:s', $masa_bayaran);
|
|
@endphp
|
|
<td>: {{ $masa }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
|
|
<table id="payment" style="width: 60%">
|
|
<tr>
|
|
<td>Ansuran Pembiayaan</td>
|
|
<td>: RM {{ number_format($transaction['bayaran_pembiayaan'], 2) }} </td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Keuntungan</td>
|
|
<td>: RM {{ number_format($transaction['onepercent'], 2) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Lain-Lain Caj</td>
|
|
<td>: RM {{ number_format($transaction['ujrah'], 2) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-size: 17px"><strong>Jumlah Bayaran</strong></td>
|
|
@php
|
|
$jumlah_perlu_dibayar = $transaction['bayaran_pembiayaan'] + $transaction['bayaran_keuntungan'] + $transaction['ujrah'];
|
|
@endphp
|
|
<td><strong>: RM {{ number_format($transaction['duit_masuk'], 2) }}</strong></td>
|
|
</tr>
|
|
</table>
|
|
{{-- <table id="payment" style="border: none; margin-top:20px; width: 60%">
|
|
<tr>
|
|
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
|
</tr>
|
|
</table> --}}
|
|
<br>
|
|
<table id="semakan">
|
|
<tr>
|
|
<td colspan="3">.................................................... </td>
|
|
<td colspan="9"></td>
|
|
<td colspan="3">.................................................... </td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="3">Pelanggan</td>
|
|
<td colspan="9"></td>
|
|
<td colspan="3">Teller</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="3">{{ $customers_info['nama'] }}</td>
|
|
<td colspan="9"></td>
|
|
<td colspan="3">{{ Auth::user()->name }}</td>
|
|
</tr>
|
|
</table>
|
|
<hr class="new2">
|
|
</hr>
|
|
</table>
|
|
<div class="header-style">
|
|
<div style="display: flex; align-items:center">
|
|
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image"
|
|
class="center">
|
|
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center">
|
|
</div>
|
|
<div style="display: flex; align-items: center;">
|
|
<span style="color: #0a0b0b; font-weight: bold;">
|
|
<strong>{{ $cawangan_info["details_caw"] }} (arOS V2)</strong>
|
|
</span>
|
|
</div>
|
|
<div>
|
|
<span><strong>UNTUK KEGUNAAN PEJABAT</strong></span>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div style="position: relative">
|
|
<div class="receipt-type-style">A</div>
|
|
<table id="inside">
|
|
|
|
<tr>
|
|
<td colspan="3">Nama</td>
|
|
<td>: {{ $customers_info['nama'] }} </td>
|
|
<td colspan="3"> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td><b> No SAG</b></td>
|
|
<td>: <b style="font-size:15px">{{ $transaction['norujukan'] }}</b> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">No K/P </td>
|
|
<td>: @php
|
|
if ($customers_info['kpbaru'] == '') {
|
|
echo $customers_info['kplama'];
|
|
} else {
|
|
echo $customers_info['kpbaru'];
|
|
}
|
|
@endphp </td>
|
|
<td colspan="3"> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td> Tarikh Bayar</td>
|
|
<td>: @php
|
|
$time = new DateTime($transaction['created_at']);
|
|
$date = $time->format('d/m/Y');
|
|
echo $date;
|
|
@endphp</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="7"> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td>Masa Bayaran</td>
|
|
@php
|
|
$masa_bayaran = strtotime($transaction['tarikh_bayaran']);
|
|
$masa = date('H:i:s', $masa_bayaran);
|
|
@endphp
|
|
<td>: {{ $masa }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
|
|
<table id="payment" style="width: 60%">
|
|
<tr>
|
|
<td>Ansuran Pembiayaan</td>
|
|
<td>: RM {{ number_format($transaction['bayaran_pembiayaan'], 2) }} </td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Keuntungan</td>
|
|
<td>: RM {{ number_format($transaction['onepercent'], 2) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Lain-Lain Caj</td>
|
|
<td>: RM {{ number_format($transaction['ujrah'], 2) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-size: 17px"><strong>Jumlah Bayaran</strong></td>
|
|
@php
|
|
$jumlah_perlu_dibayar = $transaction['bayaran_pembiayaan'] + $transaction['bayaran_keuntungan'] + $transaction['ujrah'];
|
|
@endphp
|
|
<td><strong>: RM {{ number_format($transaction['duit_masuk'], 2) }}</strong></td>
|
|
</tr>
|
|
</table>
|
|
{{-- <table id="payment" style="border: none; margin-top:20px; width: 60%">
|
|
<tr>
|
|
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
|
</tr>
|
|
</table> --}}
|
|
<br>
|
|
<table id="semakan">
|
|
<tr>
|
|
<td colspan="3">.................................................... </td>
|
|
<td colspan="9"></td>
|
|
<td colspan="3">.................................................... </td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="3">Pelanggan</td>
|
|
<td colspan="9"></td>
|
|
<td colspan="3">Teller</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="3">{{ $customers_info['nama'] }}</td>
|
|
<td colspan="9"></td>
|
|
<td colspan="3">{{ Auth::user()->name }}</td>
|
|
</tr>
|
|
</table>
|
|
<table id="inside" style="width: 45%; margin-top:20px">
|
|
<tr>
|
|
<td>Duit Pelanggan</td>
|
|
<td>: RM {{ number_format($transaction['duitpelanggan'], 2) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Jumlah Perlu Dibayar</td>
|
|
<td>: RM {{ number_format($transaction['duit_masuk'], 2) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Baki</td>
|
|
<td>: RM {{ number_format($transaction['bakipelanggan'], 2) }}</td>
|
|
</tr>
|
|
</table>
|
|
<table id="semakan">
|
|
<tr style="visibility: hidden">
|
|
<td colspan="3">.................................................... </td>
|
|
<td></td>
|
|
<td colspan="3">.................................................... </td>
|
|
<td></td>
|
|
<td colspan="3">.................................................... </td>
|
|
<td></td>
|
|
<td colspan="3">.................................................... </td>
|
|
</tr>
|
|
</table>
|
|
</body>
|