fix rekodsenaraisag

This commit is contained in:
fifi97
2022-02-28 02:55:47 +08:00
parent 7e1c62d730
commit 66ce944b7f
9 changed files with 4176 additions and 28 deletions
+233
View File
@@ -0,0 +1,233 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Http;
use Carbon\Carbon;
class ResitController extends Controller
{
public function index(){
return view('bajet.home');
}
public function resittebus($id)
{
$auth_user = Auth::user();
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
$totaltransaction = 0;
$transaction = Http::get(config('api.url') . '/api/transaction/'. $id)->json();
foreach($transaction as $trans)
{
$totaltransaction += $trans['duit_masuk'];
}
if(sizeof($gadai) != 0)
$gadai = $gadai[0][0];
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
// if(sizeof($customers_info) != 0)
// $customers_info = $customers_info[0];
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
if(sizeof($penebusan) != 0)
$penebusan = $penebusan[0];
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
// dd($wakil);
if(sizeof($wakil) != 0)
$wakil = $wakil[0];
return view('print.resittebus',compact('transaction','gadai','cawangan_info','customers_info','penebusan','wakil','totaltransaction'));
}
public function resitadvansur($id)
{
$auth_user = Auth::user();
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
if(sizeof($gadai) != 0)
$gadai = $gadai[0][0];
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
// if(sizeof($customers_info) != 0)
// $customers_info = $customers_info[0];
$advansur = Http::get(config('api.url') . '/api/advansur/'. $auth_user['cawangan'] . '/'. $id)->json();
if($advansur['nowakil'] != 0){
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $advansur['nowakil'])->json();
if(sizeof($wakil) != 0){
$wakil = $wakil[0];
}
}
else
{
$wakil = [];
}
return view('print.resitadvansur',compact('gadai','customers_info','advansur','wakil'));
}
public function resittambahpinjam($id)
{
$auth_user = Auth::user();
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
if(sizeof($gadai) != 0)
$gadai = $gadai[0][0];
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
// if(sizeof($customers_info) != 0)
// $customers_info = $customers_info[0];
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'] ,[ "norujukan" => $id])->json();
if(sizeof($penebusan) != 0)
$penebusan = $penebusan[0];
// dd($penebusan['nowakil']);
if($penebusan['nowakil'] != 0)
{
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
if(sizeof($wakil) != 0)
$wakil = $wakil[0];
}
else
{
$wakil = [];
}
return view('print.resittambahpinjam',compact('gadai','customers_info','penebusan','wakil'));
}
public function resit($id)
{
$totaltransaction = 0;
$transaction = Http::get(config('api.url') . '/api/transaction/id/'. $id)->json();
if(sizeof($transaction) != 0)
$transaction = $transaction[0];
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $transaction['norujukan'])->json();
if(sizeof($gadai) != 0)
$gadai = $gadai[0][0];
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
// if(sizeof($customers_info) != 0)
// $customers_info = $customers_info[0];
return view('print.resitansuran',compact('transaction','gadai','customers_info'));
}
public function resittebusseparuh($id)
{
$auth_user = Auth::user();
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
$totaltransaction = 0;
$transaction = Http::get(config('api.url') . '/api/transaction/'. $id)->json();
foreach($transaction as $trans)
{
$totaltransaction += $trans['duit_masuk'];
}
if(sizeof($gadai) != 0)
$gadai = $gadai[0][0];
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
// if(sizeof($customers_info) != 0)
// $customers_info = $customers_info[0];
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
if(sizeof($penebusan) != 0)
$penebusan = $penebusan[0];
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
// dd($wakil);
if(sizeof($wakil) != 0)
$wakil = $wakil[0];
return view('print.resittebusseparuh',compact('transaction','gadai','customers_info','penebusan','wakil','totaltransaction'));
}
public function resitautotawarruq($id)
{
$auth_user = Auth::user();
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
$totaltransaction = 0;
$transaction = Http::get(config('api.url') . '/api/transaction/'. $id)->json();
foreach($transaction as $trans)
{
$totaltransaction += $trans['duit_masuk'];
}
if(sizeof($gadai) != 0)
$gadai = $gadai[0][0];
$customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json();
$transaction_keuntungan = Http::get(config('api.url'). '/api/transaksi_keuntungan_latest/'. $id)->json();
// if(sizeof($customers_info) != 0)
// $customers_info = $customers_info[0];
$penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json();
if(sizeof($penebusan) != 0)
$penebusan = $penebusan[0];
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
// dd($wakil);
if(sizeof($wakil) != 0)
$wakil = $wakil[0];
return view('print.resittebusautotawarruq',compact('transaction','gadai','customers_info','penebusan','wakil','totaltransaction','transaction_keuntungan'));
}
}
@@ -0,0 +1,365 @@
<template>
<div>
<transition name="modal-fade">
<div v-if="showModal" class=" overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none justify-center items-center flex">
<div class="relative w-full my-6 mx-auto max-w-6xl">
<!--content-->
<div class="border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none">
<!--header-->
<!--body-->
<div class="relative p-6 flex-auto">
<div class="grid grid-cols-3">
<div class="h-auto w-auto text-center p-6 mt-8 rounded-lg bg-yellow-300 border border-yellow-300">Hargajualan : RM {{ this.hargajualan }}</div>
<div class="h-auto w-auto text-center p-6 mt-8 ml-2 rounded-lg bg-yellow-300 border border-yellow-300">Pembiayaan : RM {{ this.pinjaman }}</div>
<div class="h-auto w-auto text-center p-6 mt-8 ml-2 rounded-lg bg-yellow-300 border border-yellow-300">Nilai Marhun : RM {{ this.nilaimarhun }}</div>
</div>
<div class="flex justify-center mt-10 mb-10">
<div class="mx-2 radio">
<input type="radio" id="bayaran" name="radpendser" value="bayaran" class="hidden focus:bg-gray-500" v-model="selected">
<label for="bayaran" class="cursor-pointer text-gray-500 focus:bg-gray-500 hover:bg-gray-200 focus:outline-none border px-10 py-4 border-solid border-gray-500 rounded">Bayaran</label>
</div>
<div class="mx-2 radio cursor-pointer">
<input type="radio" id="upah" name="radpendser" value="upah" class="hidden focus:bg-gray-500" v-model="selected">
<label for="upah" class="cursor-pointer text-gray-500 focus:bg-gray-500 hover:bg-gray-200 focus:outline-none border px-10 py-4 border-solid border-gray-500 rounded">Upah</label>
</div>
<div class="mx-2 radio cursor-pointer">
<input type="radio" id="rekod" name="radpendser" value="rekod" class="hidden focus:bg-gray-500" v-model="selected">
<label for="rekod" class="cursor-pointer text-gray-500 focus:bg-gray-500 hover:bg-gray-200 focus:outline-none border px-10 py-4 border-solid border-gray-500 rounded">Rekod</label>
</div>
</div>
<div v-if="selected=='bayaran'">
<table class="min-w-full leading-normal">
<thead class="text-center">
<tr>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Bil
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Tarikh Bayaran
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Bayaran
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Action
</th>
</tr>
</thead>
<tbody>
<tr v-if="objbayaran.length === 0">
<td colspan="9" class="text-center px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">
Tiada Data Diperolehi
</p>
</div>
</div>
</td>
</tr>
<tr v-for="(bayaran,i) in objbayaran" :key="i">
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="(i+1)">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="bayaran.created_at">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="bayaran.duit_masuk">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<button type="button" data-modal-toggle="popup-modal" class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
</button>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div v-if="selected=='upah'">
<table class="min-w-full leading-normal">
<thead class="text-center">
<tr>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Bil
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Tarikh
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Upah
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Action
</th>
</tr>
</thead>
<tbody>
<tr v-if="objupah.length === 0">
<td colspan="9" class="text-center px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">
Tiada Data Diperolehi
</p>
</div>
</div>
</td>
</tr>
<tr v-for="(upah,i) in objupah" :key="i">
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="(i+1)">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="upah.tarikh">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="upah.upahDibayar">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<button type="button" data-modal-toggle="popup-modal" class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
</button>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div v-if="selected=='rekod'">
<table class="min-w-full leading-normal">
<thead class="text-center">
<tr>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Bil
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
No Rujukan
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Jenis Tebus
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Pembiayaan Asal
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Tempoh
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Tarikh Tebus
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Action
</th>
</tr>
</thead>
<tbody>
<tr v-if="objrekod.length === 0">
<td colspan="9" class="text-center px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">
Tiada Data Diperolehi
</p>
</div>
</div>
</td>
</tr>
<tr v-for="(rekod,i) in objrekod" :key="i">
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="(i+1)">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="rekod.norujukan">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="rekod.jenistebus">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="rekod.pinjaman">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="rekod.jbg">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="rekod.t_tebus">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<button type="button" data-modal-toggle="popup-modal" class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
</button>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!--footer-->
<div class="flex items-center justify-end p-6 border-t border-solid border-blueGray-200 rounded-b">
<button class="bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 border border-gray-700 rounded mr-1" @click="toggleModal" type="button">
Batal
</button>
</div>
</div>
</div>
</div>
</transition>
<transition
enter-active-class="transition-all transform duration-200 ease-out"
>
</transition>
<div v-if="showModal" class="opacity-25 fixed inset-0 z-40 bg-black"></div>
</div>
</template>
<script>
import { createPopper } from "@popperjs/core";
export default {
props: {
placement: {
type: String,
default: "bottom-start"
}
},
name: "modal",
data() {
return {
showModal: false,
kodcaw: '',
norujukan:'',
kodcaw:'',
pinjaman:0,
hargajualan:0,
nilaimarhun:0,
selected: 'bayaran',
objbayaran:{},
objupah:{},
objrekod:{}
}
},
methods: {
toggleModal: function(){
this.showModal = false;
},
getData: function(){
this.axios.get(this.$hostname + '/api/transaction/' + this.norujukan).then(response => {
this.objbayaran = response.data;
});
this.axios.get(this.$hostname + '/api/listpenebusanhistory/' + this.kodcaw,{params: {
norujukan: this.norujukan
}}).then(response => {
this.objrekod = response.data;
});
this.axios.get(this.$hostname + '/api/ansuran/' + this.kodcaw + '/' + this.norujukan).then(response => {
this.objupah = response.data;
});
},
}
}
</script>
<style>
.modal-fade-enter,
.modal-fade-leave-to {
opacity: 0;
}
.modal-fade-enter-active,
.modal-fade-leave-active {
transition: opacity .5s ease;
}
</style>
+136 -28
View File
@@ -1,5 +1,9 @@
<template>
<form class="w-1/2 mt-10 p-6 bg-white rounded-xl shadow mx-auto">
<div>
<modal ref="modal" @clickEvent_="getDataSenaraiSAG"></modal>
<form :class="{ 'w-2/3' : this.showsag}" class="w-1/2 mt-10 p-6 bg-white rounded-xl shadow mx-auto">
<ul class="flex hidden rounded-lg divide-x divide-gray-200 shadow sm:flex dark:divide-gray-700 mb-4">
<li class="w-full">
@@ -166,6 +170,9 @@
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Bil
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Cawangan
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Norujukan
</th>
@@ -190,9 +197,18 @@
</tr>
</thead>
<tbody>
<!-- <div v-for="(belumtebus,i) in objbelumtebus.data" :key="i"> -->
<!-- <tr v-for="(btebus,b) in belumtebus" :key="b"> -->
<tr v-for="(belumtebus,i) in objbelumtebus.data[0]" :key="i">
<tr v-if="objbelumtebus.from === null">
<td colspan="9" class="text-center px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">
Tiada Data Diperolehi
</p>
</div>
</div>
</td>
</tr>
<tr v-for="(belumtebus,i) in objbelumtebus.data" :key="i">
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
@@ -201,6 +217,14 @@
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="belumtebus.kodcaw">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
@@ -252,7 +276,7 @@
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<button type="button" data-modal-toggle="popup-modal" class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300">
<button type="button" @click="rekodBayaran(belumtebus.norujukan,belumtebus.pinjaman,belumtebus.hargajualan,belumtebus.nilaimarhun,belumtebus.kodcaw)" data-modal-toggle="popup-modal" class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
@@ -262,11 +286,10 @@
</div>
</td>
</tr>
<!-- </div> -->
</tbody>
</tbody>
</table>
<pagination :data="paginate" @clickEvent_="getDataSenaraiSAG"></pagination>
<pagination :data="belumtebuspaginate" @clickEvent_="getDataSenaraiSAG"></pagination>
</div>
@@ -277,6 +300,9 @@
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Bil
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Cawangan
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Norujukan
</th>
@@ -292,10 +318,24 @@
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Tempoh
</th>
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
Action
</th>
</tr>
</thead>
<tbody>
<tr v-for="(sudahtebus,i) in objsudahtebus.data[0]" :key="i">
<tr v-if="objsudahtebus.from === null">
<td colspan="9" class="text-center px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">
Tiada Data Diperolehi
</p>
</div>
</div>
</td>
</tr>
<tr v-for="(sudahtebus,i) in objsudahtebus.data" :key="i">
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
@@ -304,6 +344,14 @@
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="sudahtebus.kodcaw">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
@@ -344,10 +392,22 @@
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<button type="button" @click="rekodBayaran(sudahtebus.norujukan,sudahtebus.pinjaman,sudahtebus.hargajualan,sudahtebus.nilaimarhun,sudahtebus.kodcaw)" data-modal-toggle="popup-modal" class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
</button>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<pagination :data="paginate" @clickEvent_="getDataSenaraiSAG"></pagination>
<pagination :data="sudahtebuspaginate" @clickEvent_="getDataSenaraiSAG"></pagination>
</div>
@@ -381,12 +441,23 @@
</th>
</tr>
</thead>
<!-- <tbody>
<tr v-for="(blacklist,i) in showblacklist.data" :key="i">
<tbody>
<tr v-if="objlelong.from === null">
<td colspan="9" class="text-center px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">
Tiada Data Diperolehi
</p>
</div>
</div>
</td>
</tr>
<tr v-for="(lelong,i) in objlelong.data" :key="i">
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="(showblacklist.from + i)">
<p class="text-gray-900 whitespace-no-wrap" v-text="(objlelong.from + i)">
</p>
</div>
</div>
@@ -394,7 +465,7 @@
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="blacklist.nama">
<p class="text-gray-900 whitespace-no-wrap" v-text="lelong.kodcaw">
</p>
</div>
</div>
@@ -402,7 +473,7 @@
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="blacklist.nokp">
<p class="text-gray-900 whitespace-no-wrap" v-text="lelong.norujukan">
</p>
</div>
</div>
@@ -410,7 +481,7 @@
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="blacklist.nota">
<p class="text-gray-900 whitespace-no-wrap" v-text="lelong.t_update">
</p>
</div>
</div>
@@ -418,30 +489,59 @@
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<button data-modal-toggle="popup-modal" @click="deleteBlacklist(blacklist.id,blacklist.nama,blacklist.nokp)" class="border border-red-600 text-red-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-red-600 hover:text-white transition-all duration-300">
<p class="text-gray-900 whitespace-no-wrap" v-text="lelong.bakipjm">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="lelong.percentpinj">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap" v-text="lelong.tempoh">
</p>
</div>
</div>
</td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<button type="button" data-modal-toggle="popup-modal" class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
</button>
</div>
</div>
</td>
</tr>
</tbody> -->
</tbody>
</table>
<pagination :data="lelongpaginate" @clickEvent_="getDataSenaraiSAG"></pagination>
</div>
</div>
</form>
</div>
</template>
<script>
import { required, minLength, between } from 'vuelidate/lib/validators'
import modal from '../components/util/RekodBayaranModal.vue'
import pagination from '../components/pagination.vue'
export default {
components: {
pagination
pagination,
modal
},
props: {
@@ -484,8 +584,9 @@ export default {
objbelumtebus: {},
objsudahtebus: {},
objlelong:{},
paginate:{}
sudahtebuspaginate:{},
belumtebuspaginate:{},
lelongpaginate:{}
}
},
setup: (props, context) => {
@@ -648,29 +749,36 @@ export default {
}
},
getDataSenaraiSAG: function(pageNumber){
console.log(this.selected,this.icnoasal,pageNumber)
this.axios.get('http://localhost:8000/admin/customers/' + this.icnoasal + '/gadai/' + this.selected,{params: {
page: pageNumber
}}).then(response => {
if(this.selected === 'belum_tebus')
{
this.objbelumtebus = response.data;
this.paginate = response.data;
this.belumtebuspaginate = response.data;
}
else if(this.selected === 'sudah_tebus')
{
this.objsudahtebus = response.data;
this.paginate = response.data;
this.sudahtebuspaginate = response.data;
}
else
{
this.objlelong = response.data;
this.paginate = response.data;
this.lelongpaginate = response.data;
}
console.log(this.objbelumtebus,this.objsudahtebus)
});
},
rekodBayaran: function(norujukan,pinjaman,hargajualan,nilaimarhun,kodcaw){
this.$refs.modal.norujukan = norujukan;
this.$refs.modal.pinjaman = pinjaman;
this.$refs.modal.hargajualan = hargajualan;
this.$refs.modal.nilaimarhun = nilaimarhun;
this.$refs.modal.kodcaw = kodcaw;
this.$refs.modal.showModal = true;
this.$refs.modal.getData();
}
},
validations: {
name: {
@@ -0,0 +1,573 @@
<!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>
<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:10px;
border: 1px solid black;
}
#cust td, #cust th {
border: 0px solid;
padding: 3px;
font-size:9px;
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:11px;
}
#inside {
font-family: Arial, Helvetica, sans-serif;
border-collapse:collapse;
width:100%;
font-size:10px;
}
#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:10px;
}
#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:10px;
}
#perjanjian td, #perjanjian th {
border: 1px solid #ddd;
padding: 2px;
font-size:9px;
}
#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:10px;
}
#keuntungan td, #keuntungan th {
border: 1px solid #ddd;
padding: 2px;
font-size:9px;
}
#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:10px;
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:9px;
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:10px;
}
#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:10px;
}
#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;
}
</style>
<table>
<td rowspan="4" style="width:50px;"> <img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" > </td>
<td rowspan="4" style="width:50px;"><img src="{{ asset('img/pkb.png') }}" style="width:50px" alt="User Image" class="center" > </td>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pelanggan</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> No SAG</td><td>: {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> Tarikh Bayar</td><td>: @php $time = new DateTime($advansur['tarikh']); $date = $time->format('d/m/Y'); echo $date; @endphp</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><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['jbg'] }} </b></td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">U</h1>
<table id="payment">
<tr>
<td style="width:10px"> Tarikh Bayaran</td><td style="width:5px"> </td><td style="width:10px">: @php $time = new DateTime($advansur['tarikh']); $date = $time->format('d/m/Y'); echo $date; @endphp</td>
</tr>
<tr>
<td style="width:10px">Pinjaman</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['pinjaman']),2) }} </td>
</tr>
<tr>
<td style="width:10px">Jumlah Upah</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($advansur['upahDibayar'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Bayaran Di Terima</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format($advansur['upahDibayar'],2) }} </b></td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn<br><b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
<br>
<hr class="new2"></hr>
<br>
<br>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pejabat</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> No SAG</td><td>: {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> Tarikh Bayar</td><td>: @php $time = new DateTime($advansur['tarikh']); $date = $time->format('d/m/y'); echo $date; @endphp </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"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['jbg'] }} </b></td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp</td> <td colspan="3"> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">U</h1>
<table id="payment">
<tr>
<td style="width:10px"> Tarikh Bayaran</td><td style="width:5px"> </td><td style="width:10px">: @php $time = new DateTime($advansur['tarikh']); $date = $time->format('d/m/y'); echo $date; @endphp</td>
</tr>
<tr>
<td style="width:10px">Pembiayaan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['pinjaman']),2) }} </td>
</tr>
<tr>
<td style="width:10px">Jumlah Upah</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($advansur['upahDibayar'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Bayaran Di Terima</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format($advansur['upahDibayar'],2) }}</b></td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn<br><b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
@@ -0,0 +1,557 @@
<!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>
<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;
}
</style>
<table>
<td rowspan="4" style="width:50px;"> <img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" > </td>
<td rowspan="4" style="width:50px;"><img src="{{ asset('img/pkb.png') }}" style="width:50px" alt="User Image" class="center" > </td>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pelanggan</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </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">Nama</td> <td>: {{ $customers_info['nama'] }} </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="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> <b>Tempoh Simpanan</b></td><td>:<b> {{ $gadai['tempoh'] }}</b> </td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:10px;">A</h1>
<table id="payment">
<tr>
<td style="width:30%">Harga Jualan/Baki</td>
<td style="width:20%">: RM {{ number_format(($transaction['bakiharga'] + $transaction['duit_masuk']),2) }} </td>
<td style="width:30%">Pembiayaan/Baki</td>
<td style="width:20%">: RM {{ number_format(($gadai['bakipjm']+$transaction['bayaran_pembiayaan']),2) }} </td>
</tr>
<tr>
<td style="width:30%"><b>Bayaran Harga Jualan</b></td>
<td style="width:20%">: <b>RM {{ number_format($transaction['duit_masuk'],2) }} </b></td>
<td style="width:30%">Ansuran Pembiyaan</td>
<td style="width:20%">: RM {{ number_format($transaction['bayaran_pembiayaan'],2) }} </td>
</tr>
<tr>
<td style="width:30%">Baki Harga Jualan</td>
<td style="width:20%">: RM {{ number_format($transaction['bakiharga'],2) }}</td>
<td style="width:30%">Baki Pembiayaan</td>
<td style="width:20%">: RM {{ number_format($gadai['bakipjm'],2) }} </td>
</tr>
<tr>
<td style="width:10px"></td>
<td style="width:10px"></td>
<td style="width:10px">Keuntungan</td>
<td style="width:10px">: RM {{ number_format($transaction['bayaran_keuntungan'],2) }} </td>
</tr>
</table>
<p style="float:left;position:absolute;margin-left:50px;"><i>* Keuntungan sebenar atas setiap baki pembiayaan akan direbat semasa penebusan</i></p>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
<br>
<hr class="new2"></hr>
<br>
<br>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pejabat</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </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">Nama</td> <td>: {{ $customers_info['nama'] }} </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="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> <b>Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }}</b> </td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:10px;">A</h1>
<table id="payment">
<tr>
<td style="width:30%">Harga Jualan/Baki</td>
<td style="width:20%">: RM {{ number_format(($transaction['bakiharga'] + $transaction['duit_masuk']),2) }} </td>
<td style="width:30%">Pembiayaan/Baki</td>
<td style="width:20%">: RM {{ number_format(($gadai['bakipjm']+$transaction['bayaran_pembiayaan']),2) }} </td>
</tr>
<tr>
<td style="width:30%"><b>Bayaran Harga Jualan</b></td>
<td style="width:20%">: <b>RM {{ number_format($transaction['duit_masuk'],2) }} </b></td>
<td style="width:30%">Ansuran Pembiyaan</td>
<td style="width:20%">: RM {{ number_format($transaction['bayaran_pembiayaan'],2) }} </td>
</tr>
<tr>
<td style="width:30%">Baki Harga Jualan</td>
<td style="width:20%">: RM {{ number_format($transaction['bakiharga'],2) }}</td>
<td style="width:30%">Baki Pembiayaan</td>
<td style="width:20%">: RM {{ number_format($gadai['bakipjm'],2) }} </td>
</tr>
<tr>
<td style="width:10px"></td>
<td style="width:10px"></td>
<td style="width:10px">Keuntungan</td>
<td style="width:10px">: RM {{ number_format($transaction['bayaran_keuntungan'],2) }} </td>
</tr>
</table>
<p style="float:left;position:absolute;margin-left:50px;"><i>* Keuntungan sebenar atas setiap baki pembiayaan akan direbat semasa penebusan</i></p>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
@@ -0,0 +1,574 @@
<!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>
<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:10px;
border: 1px solid black;
}
#cust td, #cust th {
border: 0px solid;
padding: 3px;
font-size:9px;
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: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: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;
}
</style>
<table>
<td rowspan="4" style="width:50px;"> <img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" > </td>
<td rowspan="4" style="width:50px;"><img src="{{ asset('img/pkb.png') }}" style="width:50px" alt="User Image" class="center" > </td>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pelanggan</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td>: No SAG</td><td> {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </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="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>: <b>Tempoh Simpan</b></td><td> <b>{{ $gadai['tempoh'] }}</b> </td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">P</h1>
<table id="payment">
<tr>
<td style="width:10px"> Tarikh Bayaran</td><td style="width:5px"> </td><td style="width:10px">: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp</td>
</tr>
<tr>
<td style="width:10px">Pembiayaan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($gadai['bakipjm'],2) }} </td>
</tr>
<tr>
<td style="width:10px">(+) Tambah Pembiayaan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['addpinjaman'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($gadai['bakipjm'] + $penebusan['addpinjaman'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Bayaran Keuntungan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format($penebusan['bakiupah'],2) }} </b> </td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
<br>
<hr class="new2"></hr>
<br>
<br>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pejabat</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td>: No SAG</td><td> {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </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="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>: <b>Tempoh Simpan</b></td><td> <b>{{ $gadai['tempoh'] }}</b> </td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">P</h1>
<table id="payment">
<tr>
<td style="width:10px"> Tarikh Bayaran</td><td style="width:5px"> </td><td style="width:10px">: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp</td>
</tr>
<tr>
<td style="width:10px">Pembiayaan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($gadai['bakipjm'],2) }} </td>
</tr>
<tr>
<td style="width:10px">(+) Tambah Pembiayaan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['addpinjaman'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($gadai['bakipjm'] + $penebusan['addpinjaman'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Bayaran Keuntungan</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format($penebusan['bakiupah'],2) }} </b> </td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
+583
View File
@@ -0,0 +1,583 @@
<!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>
<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;
}
</style>
<table>
<td rowspan="4" style="width:50px;"> <img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" > </td>
<td rowspan="4" style="width:50px;"><img src="{{ asset('img/pkb.png') }}" style="width:50px" alt="User Image" class="center" > </td>
<td></td>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pelanggan</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> No SAG</td><td>: {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </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="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><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
<table id="payment">
<tr>
<td style="width:10px">Harga Jualan</td>
<td style="width:10px">: RM {{ number_format(($gadai['hargajualan']),2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Jumlah Ansuran Telah Dibayar</td>
<td style="width:10px">: RM {{ number_format($totalBayaranAnsuran,2) }}</td>
</tr>
<tr>
<td style="width:10px">Baki Harga Jualan</td>
<td style="width:10px">: RM {{ number_format($gadai['bakihargajualan'],2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Ibra' (Rebat)</td>
<td style="width:10px">: RM {{ number_format($penebusan['rebate'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Tebus Keseluruhan</b></td>
<td style="width:10px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }} </b></td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
<br>
<hr class="new2"></hr>
<br>
<br>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pejabat</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> No SAG</td><td>: {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </td> <td colspan="3"> <t/d> <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 K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp</td> <td colspan="3"> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">T</h1>
<table id="payment">
<tr>
<td style="width:10px">Harga Jualan</td>
<td style="width:10px">: RM {{ number_format(($gadai['hargajualan']),2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Jumlah Ansuran Telah Dibayar</td>
<td style="width:10px">: RM {{ number_format($totalBayaranAnsuran,2) }}</td>
</tr>
<tr>
<td style="width:10px">Baki Harga Jualan</td>
<td style="width:10px">: RM {{ number_format($gadai['bakihargajualan'],2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Ibra' (Rebat)</td>
<td style="width:10px">: RM {{ number_format($penebusan['rebate'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Tebus Keseluruhan</b></td>
<td style="width:10px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }} </b></td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
@@ -0,0 +1,565 @@
<!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>
<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:10px;
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: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: 45%;
font-size:13px;
border: 1px solid black;
}
#payment td, #payment th {
border: 0px solid;
padding: 3px;
font-size:10px;
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;
}
</style>
<table>
<td rowspan="4" style="width:50px;"> <img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" > </td>
<td rowspan="4" style="width:50px;"><img src="{{ asset('img/pkb.png') }}" style="width:50px" alt="User Image" class="center" > </td>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pelanggan</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> No SAG</td><td>: {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </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="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><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">AT</h1>
<table id="payment">
<tr>
<td style="width:10px">Pinjaman</td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($gadai['pinjaman'],2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Bayaran Pinjaman</td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan'],2) }}</td>
</tr>
<tr>
<td style="width:10px"><b>Bayaran Upah</b></td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_keuntungan'],2) }} </td>
</tr>
<tr>
<td style="width:10px">Pembiyaan Baru</td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($gadai['pinjaman']-$transaction_keuntungan['bayaran_pembiayaan'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Jumlah Bayaran</b></td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan']+$transaction_keuntungan['bayaran_keuntungan'],2) }}</td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
<br>
<hr class="new2"></hr>
<br>
<br>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pejabat</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> No SAG</td><td>: {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </td> <td colspan="3"> <t/d> <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 K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp</td> <td colspan="3"> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">AT</h1>
<table id="payment">
<tr>
<td style="width:10px">Pinjaman</td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($gadai['pinjaman'],2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Bayaran Pinjaman</td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan'],2) }}</td>
</tr>
<tr>
<td style="width:10px"><b>Bayaran Upah</b></td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_keuntungan'],2) }} </td>
</tr>
<tr>
<td style="width:10px">Pembiyaan Baru</td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($gadai['pinjaman']-$transaction_keuntungan['bayaran_pembiayaan'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Jumlah Bayaran</b></td>
<td style="width:5px"> </td>
<td style="width:10px">: RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan']+$transaction_keuntungan['bayaran_keuntungan'],2) }}</td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
@@ -0,0 +1,590 @@
<!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>
<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:10px;
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: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: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;
}
</style>
<table>
<td rowspan="4" style="width:50px;"> <img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center" > </td>
<td rowspan="4" style="width:50px;"><img src="{{ asset('img/pkb.png') }}" style="width:50px" alt="User Image" class="center" > </td>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pelanggan</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> No SAG</td><td>: {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </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="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><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp </td> <td colspan="3"> </td> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">S</h1>
<table id="payment">
<tr>
<td style="width:10px"> Tarikh Bayaran</td><td style="width:5px"> </td><td style="width:10px">: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp</td>
</tr>
<tr>
<td style="width:10px">Harga Jualan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['hargajualan']),2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Bayaran Pelanggan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($totaltransaction,2) }}</td>
</tr>
<tr>
<td style="width:10px"><b>Baki Harga Jualan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($gadai['bakihargajualan'],2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Rebate</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['rebate'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Jumlah Bayaran</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['bakipjm'],2) }}</td>
</tr>
<tr>
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']-$penebusan['bakipjm']),2) }}</b></td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>
<br>
<hr class="new2"></hr>
<br>
<br>
</table>
<table id="cust">
<tr>
<th style="width:5px;"> Salinan Pejabat</th>
</tr>
<tr>
<td style="width:5px;"> RESIT BAYARAN </td>
</tr>
</table>
<br>
<table id="inside">
<tr>
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> No SAG</td><td>: {{ $gadai['norujukan'] }} </td>
</tr>
<tr>
<td colspan="3">Nama</td> <td>: {{ $customers_info['nama'] }} </td> <td colspan="3"> <t/d> <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 K/P </td> <td>: @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td><b> Tempoh Simpan</b></td><td>:<b> {{ $gadai['tempoh'] }} </b></td>
</tr>
<tr>
<td colspan="3">Nama Wakil </td> <td>: @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp </td> <td colspan="3"> <t/d> <td> </td><td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3">No K/P Wakil </td> <td>: @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp</td> <td colspan="3"> <td> </td><td> </td><td> </td><td> </td>
</tr>
</table>
<br>
<h1 style="float:left;position:absolute;margin-left:100px;">S</h1>
<table id="payment">
<tr>
<td style="width:10px"> Tarikh Bayaran</td><td style="width:5px"> </td><td style="width:10px">: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/y'); echo $date; @endphp</td>
</tr>
<tr>
<td style="width:10px">Harga Jualan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format(($gadai['hargajualan']),2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Bayaran Pelanggan</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($totaltransaction,2) }}</td>
</tr>
<tr>
<td style="width:10px"><b>Baki Harga Jualan</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($gadai['bakihargajualan'],2) }} </td>
</tr>
<tr>
<td style="width:10px">(-) Rebate</td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['rebate'],2) }} </td>
</tr>
<tr>
<td style="width:10px"><b>Jumlah Bayaran</b></td><td style="width:5px"> </td><td style="width:10px">: RM {{ number_format($penebusan['bakipjm'],2) }}</td>
</tr>
<tr>
<td style="width:10px"><b>Pembiayaan Baru</b></td><td style="width:5px"> </td><td style="width:10px">:<b> RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']-$penebusan['bakipjm']),2) }} </b></td>
</tr>
</table>
<br>
<table id="semakan">
<tr>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
<td></td>
<td colspan="3">.................................................... </td>
</tr>
<tr>
<td colspan="3">DiSemak </td>
<td></td>
<td colspan="3"> Cagaran Di Keluarkan</td>
<td></td>
<td colspan="3">Cagaran Diterima </td>
<td></td>
<td colspan="3"> Ar-Rahn <br> <b>{{ Auth::user()->name }}</b></td>
</tr>
</table>
<br>