Files
kaunter/resources/views/print/resittebus_ujrah.blade.php
T

954 lines
28 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;
}
</style>
<style>
hr.new1 {
border-top: 1px dotted black;
}
.khazanah {
border: 1px solid black;
margin-left: 20px;
padding: 10px;
width: 250px;
transform: rotate(-90deg);
font-size: 12px;
}
#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: 12px;
}
#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: 60%;
font-size: 12px;
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: 12px;
}
#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: 10px;
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;
}
.center-table-style-border {
display: flex;
justify-content: center;
border: 1px solid black
}
.center-table-style {
display: flex;
justify-content: center;
}
.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;
}
.custom-table-right {
border: none !important;
border-left: 1px solid !important;
}
.text-center {
text-align: center !important;
}
.vertical-baseline {
vertical-align: baseline !important;
}
</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">T</div>
<table id="inside">
@if (sizeof($wakil) != 0)
<tr>
<td colspan="3">Nama Wakil</td>
<td class="text-center vertical-baseline">:</td>
<td class="vertical-baseline">{{ $wakil['nama'] }}</td>
<td colspan="2"> </td>
<td> </td>
<td> </td>
<td> <b>No SAG</b></td>
<td>: <b>{{ $gadai['norujukan'] }}</b> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil</td>
<td class="text-center vertical-baseline">:</td>
<td>{{ $wakil['nokp'] }}</td>
<td colspan="2"> </td>
<td> </td>
<td> </td>
<td> Tarikh Bayar</td>
<td>: @php
$time = new DateTime($penebusan['t_tebus']);
$date = $time->format('d/m/Y');
echo $date;
@endphp</td>
</tr>
<tr>
<td colspan="3">No Telefon</td>
<td class="text-center vertical-baseline">:</td>
<td>{{ $wakil['telefon'] }}</td>
<td colspan="3"> </td>
<td> </td>
<td>Masa Bayaran </td>
@php
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
$masa = date('H:i:s', $masa_bayaran);
@endphp
<td>: {{ $masa }}</td>
</tr>
<tr>
<td colspan="3" class="vertical-baseline">Alamat </td>
<td class="text-center vertical-baseline">:</td>
<td style="max-width: 180px">{{ $wakil['alamat1'] }}</td>
<td colspan="3"> </td>
<td> </td>
<td class="vertical-baseline">Tempoh Simpan</td>
<td class="vertical-baseline">: {{ $gadai['tempoh'] }}</td>
</tr>
<tr>
<td colspan="3">No Wakil</td>
<td class="text-center vertical-baseline">:</td>
<td>{{ sizeof($surat_wakil) == 0 ? '-' : $surat_wakil['no_surat'] }}</td>
<td colspan="7"> </td>
</tr>
@else
<tr>
<td colspan="3">Nama</td>
<td>: {{ $customers_info['nama'] }} </td>
<td colspan="3"> </td>
<td> </td>
<td> </td>
<td><strong>No SAG</strong></td>
<td>: <strong>{{ $gadai['norujukan'] }}</strong></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($penebusan['t_tebus']);
$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_tebus['tarikh_bayaran']);
$masa = date('H:i:s', $masa_bayaran);
@endphp
<td>: {{ $masa }}</td>
</tr>
<tr>
<td colspan="7"></td>
<td> </td>
<td> </td>
<td>Tempoh Simpan</td>
<td>: {{ $gadai['tempoh'] }}</td>
</tr>
@endif
</table>
</div>
</div>
<div class="{{ sizeof($wakil) != 0 ? 'center-table-style-border' : 'center-table-style' }}" style="margin-top: 10px">
@if (sizeof($wakil) != 0)
<table id="payment" style="border: none; height: fit-content">
<tr>
<td colspan="3">Maklumat Pelanggan</td>
</tr>
<tr>
<td style="width:75px" class="vertical-baseline">Nama</td>
<td style="width: 1px" class="text-center vertical-baseline">:</td>
<td style="">{{ $customers_info['nama'] }}</td>
</tr>
<tr>
<td style="width:75px" class="vertical-baseline">No K/P</td>
<td style="width: 1px" class="text-center vertical-baseline">:</td>
<td>
@php
if ($customers_info['kpbaru'] == '') {
echo $customers_info['kplama'];
} else {
echo $customers_info['kpbaru'];
}
@endphp
</td>
</tr>
</table>
@endif
<table id="payment" class="{{ sizeof($wakil) != 0 ? 'custom-table-right' : '' }}">
<tr>
<td style="width:10px">Baki Pembiayaan</td>
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
</tr>
<tr>
<td style="width:10px">Keuntungan</td>
<td style="width:10px">: RM {{ number_format($transaction_tebus['onepercent'],2) }}</td>
</tr>
<tr>
<td style="width:10px">(-) Rebat Untung</td>
<td style="width:10px">: RM
{{ number_format($keuntungan_rebate,2) }}
</td>
</tr>
<tr>
<td style="width:10px">Lain-Lain Caj</td>
<td style="width:10px">: RM {{ number_format($transaction_tebus['ujrah'],2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Rebat Lain-Lain Caj</td>
<td style="width:10px">: RM
{{ number_format($ujrah_rebate, 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>
<td style="font-size: 17px"><strong>: RM
{{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td>
</tr>
</table>
</div>
<table id="payment" style="border: none; margin-top:10px; width: 60%">
<tr>
<td>Marhun: {{ $gadai['marhun'] }}</td>
</tr>
</table>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">Teller</td>
<td></td>
<td colspan="3">{{ sizeof($wakil) != 0 ? 'Wakil' : 'Pelanggan' }}</td>
<td></td>
<td colspan="3">Khazanah</td>
</tr>
<tr>
<td colspan="3">{{ Auth::user()->name }}</td>
<td></td>
<td colspan="3">{{ sizeof($wakil) != 0 ? $wakil['nama'] : $customers_info['nama'] }}</td>
<td></td>
<td colspan="3"> {{ $khazanah_user->name }}</td>
</tr>
</table>
<hr class="new2">
</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">T</div>
<table id="inside">
@if (sizeof($wakil) != 0)
<tr>
<td colspan="3">Nama Wakil</td>
<td class="text-center vertical-baseline">:</td>
<td class="vertical-baseline">{{ $wakil['nama'] }}</td>
<td colspan="2"> </td>
<td> </td>
<td> </td>
<td> <b>No SAG</b></td>
<td>: <b>{{ $gadai['norujukan'] }}</b> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil</td>
<td class="text-center vertical-baseline">:</td>
<td>{{ $wakil['nokp'] }}</td>
<td colspan="2"> </td>
<td> </td>
<td> </td>
<td> Tarikh Bayar</td>
<td>: @php
$time = new DateTime($penebusan['t_tebus']);
$date = $time->format('d/m/Y');
echo $date;
@endphp</td>
</tr>
<tr>
<td colspan="3">No Telefon</td>
<td class="text-center vertical-baseline">:</td>
<td>{{ $wakil['telefon'] }}</td>
<td colspan="3"> </td>
<td> </td>
<td>Masa Bayaran </td>
@php
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
$masa = date('H:i:s', $masa_bayaran);
@endphp
<td>: {{ $masa }}</td>
</tr>
<tr>
<td colspan="3" class="vertical-baseline">Alamat </td>
<td class="text-center vertical-baseline">:</td>
<td style="max-width: 180px">{{ $wakil['alamat1'] }}</td>
<td colspan="3"> </td>
<td> </td>
<td class="vertical-baseline">Tempoh Simpan</td>
<td class="vertical-baseline">: {{ $gadai['tempoh'] }}</td>
</tr>
<tr>
<td colspan="3">No Wakil</td>
<td class="text-center vertical-baseline">:</td>
<td>{{ sizeof($surat_wakil) == 0 ? '-' : $surat_wakil['no_surat'] }}</td>
<td colspan="7"> </td>
</tr>
@else
<tr>
<td colspan="3">Nama</td>
<td>: {{ $customers_info['nama'] }} </td>
<td colspan="3"> </td>
<td> </td>
<td> </td>
<td><strong>No SAG</strong></td>
<td>: <strong>{{ $gadai['norujukan'] }}</strong></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($penebusan['t_tebus']);
$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_tebus['tarikh_bayaran']);
$masa = date('H:i:s', $masa_bayaran);
@endphp
<td>: {{ $masa }}</td>
</tr>
<tr>
<td colspan="7"></td>
<td> </td>
<td> </td>
<td>Tempoh Simpan</td>
<td>: {{ $gadai['tempoh'] }}</td>
</tr>
@endif
</table>
</div>
</div>
<div class="{{ sizeof($wakil) != 0 ? 'center-table-style-border' : 'center-table-style' }}" style="margin-top: 10px">
@if (sizeof($wakil) != 0)
<table id="payment" style="border: none; height: fit-content">
<tr>
<td colspan="3">Maklumat Pelanggan</td>
</tr>
<tr>
<td style="width:75px" class="vertical-baseline">Nama</td>
<td style="width: 1px" class="text-center vertical-baseline">:</td>
<td style="">{{ $customers_info['nama'] }}</td>
</tr>
<tr>
<td style="width:75px" class="vertical-baseline">No K/P</td>
<td style="width: 1px" class="text-center vertical-baseline">:</td>
<td>
@php
if ($customers_info['kpbaru'] == '') {
echo $customers_info['kplama'];
} else {
echo $customers_info['kpbaru'];
}
@endphp
</td>
</tr>
</table>
@endif
<table id="payment" class="{{ sizeof($wakil) != 0 ? 'custom-table-right' : '' }}">
<tr>
<td style="width:10px">Baki Pembiayaan</td>
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
</tr>
<tr>
<td style="width:10px">Keuntungan</td>
<td style="width:10px">: RM {{ number_format($transaction_tebus['onepercent'], 2) }}</td>
</tr>
<tr>
<td style="width:10px">(-) Rebat Untung</td>
<td style="width:10px">: RM
{{ number_format($keuntungan_rebate, 2) }}
</td>
</tr>
<tr>
<td style="width:10px">Lain-Lain Caj</td>
<td style="width:10px">: RM {{ number_format($transaction_tebus['ujrah'], 2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Rebat Lain-Lain Caj</td>
<td style="width:10px">: RM
{{ number_format($ujrah_rebate, 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>
<td style="font-size: 17px"><strong>: RM
{{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td>
</tr>
</table>
</div>
<table id="payment" style="border: none; margin-top:10px; width: 60%">
<tr>
<td>Marhun: {{ $gadai['marhun'] }}</td>
</tr>
</table>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">Teller</td>
<td></td>
<td colspan="3">{{ sizeof($wakil) != 0 ? 'Wakil' : 'Pelanggan' }}</td>
<td></td>
<td colspan="3">Khazanah</td>
</tr>
<tr>
<td colspan="3"> {{ Auth::user()->name }}</td>
<td></td>
<td colspan="3">{{ sizeof($wakil) != 0 ? $wakil['nama'] : $customers_info['nama'] }}</td>
<td></td>
<td colspan="3">{{ $khazanah_user->name }}</td>
</tr>
</table>
<table id="inside" style="width: 45%; margin-top:20px">
<tr>
<td>Duit Pelanggan</td>
<td>: RM {{ number_format($transaction_tebus['duitpelanggan'], 2) }}</td>
</tr>
<tr>
<td>Jumlah Perlu Dibayar</td>
<td>: RM {{ number_format($transaction_tebus['duit_masuk'], 2) }}</td>
</tr>
<tr>
<td>Baki</td>
<td>: RM {{ number_format($transaction_tebus['bakipelanggan'], 2) }}</td>
</tr>
</table>
<table id="semakan" style="margin-top: 0">
<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>