add feature search name and middleware changes to fix the resit for khazanah
This commit is contained in:
@@ -20,6 +20,7 @@ use Carbon\Carbon;
|
||||
class CustomersController extends Controller
|
||||
{
|
||||
private $customer_ic;
|
||||
private $customerService;
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
|
||||
@@ -467,6 +467,7 @@ class GadaianController extends Controller
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||
$transaction_tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/one/'. $id)->json();
|
||||
|
||||
$totaltransaction = 0;
|
||||
|
||||
@@ -497,7 +498,12 @@ class GadaianController extends Controller
|
||||
if(sizeof($wakil) != 0)
|
||||
$wakil = $wakil[0];
|
||||
|
||||
return view('print.resittebusseparuh',compact('transaction','gadai','customers_info','penebusan','wakil','totaltransaction'));
|
||||
$totalBayaranAnsuran = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/norujukan/total/ansuran',['norujukan'=>$id])->json();
|
||||
$khazanah_user = User::where('role_harian', 'khazanah')->where('cawangan', $auth_user['cawangan'])->select('name')->first();
|
||||
$totalrebate = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/reports/totalrebate',['norujukan'=>$id])->json();
|
||||
|
||||
|
||||
return view('print.resit.tebus_separuh',compact('totalrebate','khazanah_user','totalBayaranAnsuran','transaction_tebus','gadai','customers_info','penebusan','wakil'));
|
||||
}
|
||||
|
||||
public function resitautotawarruq($id)
|
||||
@@ -678,6 +684,7 @@ class GadaianController extends Controller
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||
$transaction_tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/one/'. $id)->json();
|
||||
|
||||
|
||||
if(sizeof($gadai) != 0)
|
||||
@@ -708,7 +715,11 @@ class GadaianController extends Controller
|
||||
$wakil = [];
|
||||
}
|
||||
|
||||
return view('print.resittambahpinjam',compact('gadai','customers_info','penebusan','wakil'));
|
||||
$totalBayaranAnsuran = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/norujukan/total/ansuran',['norujukan'=>$id])->json();
|
||||
$khazanah_user = User::where('role_harian', 'khazanah')->where('cawangan', $auth_user['cawangan'])->select('name')->first();
|
||||
$totalrebate = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/reports/totalrebate',['norujukan'=>$id])->json();
|
||||
|
||||
return view('print.resit.tambah_pinjaman',compact('totalrebate','khazanah_user','totalBayaranAnsuran','transaction_tebus','gadai','customers_info','penebusan','wakil'));
|
||||
}
|
||||
|
||||
public function history(Request $request)
|
||||
|
||||
@@ -294,7 +294,10 @@ class PenebusanController extends Controller
|
||||
'historygadaian' => $request->historygadaian,
|
||||
'marhun' => $request->marhun,
|
||||
'jenisbayarantebus' => $request->jenisbayarantebus,
|
||||
'teller' => $request->teller
|
||||
'jeniskeuntungan' => $request->jeniskeuntungan,
|
||||
'teller' => $request->teller,
|
||||
"duitpelanggan" => $request->bayaran,
|
||||
"bakipelanggan" => $request->bakipelanggan,
|
||||
])->json();
|
||||
|
||||
//////////////////////
|
||||
@@ -448,7 +451,7 @@ class PenebusanController extends Controller
|
||||
'teller' => $request->teller,
|
||||
'jeniskeuntungan' => $request->jeniskeuntungan,
|
||||
'totalbayaran' => $request->totalbayaran,
|
||||
"bayaranpelanggan" => $request->bayaran,
|
||||
"duitpelanggan" => $request->bayaran,
|
||||
"bakipelanggan" => $request->bakipelanggan,
|
||||
])->json();
|
||||
|
||||
@@ -603,7 +606,10 @@ class PenebusanController extends Controller
|
||||
'historygadaian' => $request->historygadaian,
|
||||
'marhun' => $request->marhun,
|
||||
'jenisbayarantebus' => $request->jenisbayarantebus,
|
||||
'teller' => $request->teller
|
||||
'jeniskeuntungan' => $request->jeniskeuntungan,
|
||||
'teller' => $request->teller,
|
||||
"duitpelanggan" => $request->bayaran,
|
||||
"bakipelanggan" => $request->bakipelanggan,
|
||||
])->json();
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,18 @@ class Khazanah
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if(Auth::check() && (Auth::user()->roles == 'pc' || Auth::user()->roles == 'ppc')){
|
||||
$Roles = ["teller","admin","penilai","khazanah"];
|
||||
$routeMiddleware = $request->route()->middleware();
|
||||
$filteredMiddleware = array_intersect($routeMiddleware, $Roles);
|
||||
|
||||
$filtered = array_map(function($res){
|
||||
switch($res){
|
||||
case 'teller' : return 'teller';
|
||||
case 'khazanah' : return 'pc';
|
||||
}
|
||||
},$filteredMiddleware);
|
||||
|
||||
if(Auth::check() && (Auth::user()->roles == 'pc' || Auth::user()->roles == 'ppc' || in_array(Auth::user()->roles,$filtered))){
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,9 +15,25 @@ class Teller
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if(Auth::check() && Auth::user()->role_harian == 'teller'){
|
||||
$Roles = ["teller","admin","penilai","khazanah"];
|
||||
$routeMiddleware = $request->route()->middleware();
|
||||
$filteredMiddleware = array_intersect($routeMiddleware, $Roles);
|
||||
|
||||
$filtered = array_map(function($res){
|
||||
switch($res){
|
||||
case 'teller' : return 'teller';
|
||||
case 'khazanah' : return 'pc';
|
||||
}
|
||||
},$filteredMiddleware);
|
||||
|
||||
// dd(in_array(Auth::user()->roles,$filtered));
|
||||
if(Auth::check() && (Auth::user()->role_harian == 'teller' || in_array(Auth::user()->roles,$filtered))){
|
||||
return $next($request);
|
||||
}else{
|
||||
dd(Auth::user()->role_harian == 'teller',in_array(Auth::user()->roles,$filtered));
|
||||
dd('not allowed');
|
||||
}
|
||||
dd('test');
|
||||
|
||||
return redirect('/login');
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ use App\ImbangDuga;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
use Carbon\Carbon;
|
||||
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class ImbangdugaServices
|
||||
{
|
||||
@@ -212,10 +212,9 @@ class ImbangdugaServices
|
||||
}
|
||||
|
||||
public function ViewImbangDugaAROS($kodcaw,$tarikh){
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$tarikh = $current->toDateString();
|
||||
$tarikh = new Carbon($tarikh);
|
||||
$tarikh = $tarikh->toDateString();
|
||||
|
||||
$imbangdugadata = ImbangDuga::orderBy('glcode')->get();
|
||||
$array_harta = [];
|
||||
@@ -322,11 +321,16 @@ class ImbangdugaServices
|
||||
|
||||
foreach($imbangdugadata as $index => $imbangdugaiteration){
|
||||
if($imbangdugaiteration->api_redirect != null){
|
||||
if($imbangdugaiteration['variable'] == 'untungrugiterkumpul' || $imbangdugaiteration['variable'] == 'keun_sebenar' || $imbangdugaiteration['variable'] == 'pend_terakru' || $imbangdugaiteration['variable'] == 'keun_penggadai'){
|
||||
if($imbangdugaiteration['variable'] == 'untungrugiterkumpul' || $imbangdugaiteration['variable'] == 'keun_sebenar' || $imbangdugaiteration['variable'] == 'pend_terakru'){
|
||||
if($imbangdugaiteration['variable'] == 'keun_sebenar' || $imbangdugaiteration['variable'] == 'keun_penggadai'){
|
||||
${$imbangdugaiteration['variable']} = Http::get(config('api.url'). $imbangdugaiteration['api_redirect'],['tarikh' => $tarikh,'kodcaw' => $kodcaw])->json();
|
||||
}else
|
||||
${$imbangdugaiteration['variable']} = Http::get(config('api.url'). '/admin/laporan/akrual/getImbangDugaBackupData',['tarikh' => $tarikh,'kodcaw' => $kodcaw,'data_name' => $imbangdugaiteration['variable']])->json();
|
||||
|
||||
${$imbangdugaiteration['variable']} = Http::get(config('api.url'). '/admin/laporan/akrual/getImbangDugaBackupData',['tarikh' => $tarikh,'kodcaw' => $kodcaw,'data_name' => $imbangdugaiteration['variable']])->json();
|
||||
}elseif($imbangdugaiteration['variable'] == 'onepercent' || $imbangdugaiteration['variable'] == 'ujrah'){
|
||||
${$imbangdugaiteration['variable']} = 0;
|
||||
// ${$imbangdugaiteration['variable']} = 0;
|
||||
${$imbangdugaiteration['variable']} = Http::get(config('api.url'). $imbangdugaiteration['api_redirect'] . $kodcaw,['tarikh' => $tarikh])->json();
|
||||
|
||||
}else{
|
||||
${$imbangdugaiteration['variable']} = Http::get(config('api.url'). $imbangdugaiteration['api_redirect'] . $kodcaw,['tarikh' => $tarikh])->json();
|
||||
}
|
||||
|
||||
Vendored
+50
@@ -44,3 +44,53 @@ span#basic-hargaemas {
|
||||
height: 38px;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* Twitter Typeahead CSS plugin */
|
||||
|
||||
.twitter-typeahead { width: 70%; }
|
||||
|
||||
.tt-query {
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
||||
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
||||
}
|
||||
|
||||
.tt-hint {
|
||||
color: #999
|
||||
}
|
||||
|
||||
.tt-menu { /* used to be tt-dropdown-menu in older versions */
|
||||
/* width: 422px; */
|
||||
width: 100%;
|
||||
margin-top: 4px;
|
||||
padding: 4px 0;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
||||
-moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
||||
box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
||||
}
|
||||
|
||||
.tt-suggestion {
|
||||
padding: 3px 20px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.tt-suggestion.tt-cursor,.tt-suggestion:hover {
|
||||
color: #fff;
|
||||
background-color: #0097cf;
|
||||
|
||||
}
|
||||
|
||||
.tt-suggestion p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.empty-message {
|
||||
padding: 5px 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
Vendored
+96
@@ -0,0 +1,96 @@
|
||||
const keysearch = document.querySelector("#noic");
|
||||
let roles = document.getElementById("roles_avatar").value;
|
||||
|
||||
$('#customerIDType').on('change', function() {
|
||||
switch(this.value){
|
||||
case 'nokp':
|
||||
disableTypeahead();
|
||||
resetInput();
|
||||
keysearch.setAttribute("placeholder", "No Kad Pengenalan Pelanggan");
|
||||
break;
|
||||
case 'passport':
|
||||
disableTypeahead();
|
||||
resetInput();
|
||||
keysearch.setAttribute("placeholder", "No Passport Pelanggan");
|
||||
break;
|
||||
case 'name':
|
||||
enableTypeahead();
|
||||
resetName();
|
||||
keysearch.setAttribute("placeholder", "Nama Pelanggan");
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
var bloodhound = new Bloodhound({
|
||||
datumTokenizer: Bloodhound.tokenizers.whitespace,
|
||||
queryTokenizer: Bloodhound.tokenizers.whitespace,
|
||||
remote: {
|
||||
url: 'http://localhost:8000/admin/searchByName?nama=%QUERY',
|
||||
wildcard:'%QUERY',
|
||||
transform: function(response) {
|
||||
return response.map(function(item) {
|
||||
return { name: item.nama,noic:item.kpbaru ? item.kpbaru : item.kplama };
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
function disableTypeahead() {
|
||||
if (typeof typeahead !== 'undefined') {
|
||||
typeahead.typeahead('destroy');
|
||||
}
|
||||
}
|
||||
|
||||
function enableTypeahead() {
|
||||
// Re-initialize Typeahead with the same configuration
|
||||
typeahead = $('.typeahead').typeahead({
|
||||
hint: false,
|
||||
highlight: true,
|
||||
minLength: 3
|
||||
},
|
||||
{
|
||||
name: 'suggestions',
|
||||
source: bloodhound,
|
||||
display: 'name',
|
||||
templates: {
|
||||
empty: function(data) {
|
||||
return `<div class="empty-message">Carian <b>${data.query}</b> tidak jumpa dalam pangkalan data</div>`;
|
||||
},
|
||||
suggestion: function(data) {
|
||||
return `<div style="cursor:pointer;" onclick="redirectName('${data.noic}')">` + data.name + '<br> ' + data.noic + '</div>';
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function triggerEnter(){
|
||||
console.log('test');
|
||||
}
|
||||
|
||||
|
||||
function redirectName(nokp){
|
||||
Swal.fire({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
didOpen: function () {
|
||||
Swal.showLoading()
|
||||
}
|
||||
});
|
||||
|
||||
if(roles == 'teller'){
|
||||
window.location.replace(`/customer/search?noic=${nokp}&&customerIDType='name'`);
|
||||
}else{
|
||||
window.location.replace(`/khazanah/searchpelanggan?noic=${nokp}&&customerIDType='name'`);
|
||||
}
|
||||
}
|
||||
|
||||
function resetInput() {
|
||||
$("#button-addon2").prop("disabled",false);
|
||||
$('#noic').val('');
|
||||
}
|
||||
|
||||
function resetName(){
|
||||
$("#button-addon2").prop("disabled",true);
|
||||
$('#noic').val('');
|
||||
}
|
||||
Vendored
+2451
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,7 @@
|
||||
</style>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="col-md-10">
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
@@ -19,6 +19,8 @@
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<input type="hidden" id="roles_avatar" value="{{ Auth::user()->roles }}"></input>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="text-center">
|
||||
@@ -27,11 +29,12 @@
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-9">
|
||||
<div class="input-group my-3">
|
||||
<input type="text" class="form-control" id="noic" name="noic" placeholder="No Kad Pengenalan Pelanggan" aria-label="No Kad Pengenalan Pelanggan" autocomplete="off" value="{{$search == false ? '' : $noic ?? ''}}" aria-describedby="button-addon2">
|
||||
<input type="text" class="typeahead form-control" id="noic" name="noic" placeholder="No Kad Pengenalan Pelanggan" aria-label="No Kad Pengenalan Pelanggan" autocomplete="off" value="{{$search == false ? '' : $noic ?? ''}}" aria-describedby="button-addon2">
|
||||
<div class="input-group-append">
|
||||
<select class="form-select" id="customerIDType" name="customerIDType" class="form-control">
|
||||
<option value="nokp" {{ $idtype == 'nokp' ? 'selected' : ''}}>Kad Pengenalan</option>
|
||||
<option value="passport" {{ $idtype == 'passport' ? 'selected' : ''}}>Passport</option>
|
||||
<option value="name">Nama</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-group-append">
|
||||
@@ -472,6 +475,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="{{ asset('js/searchName.js') }}"></script>
|
||||
<script>
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var search = "<?php echo $search ?>";
|
||||
|
||||
@@ -581,6 +581,15 @@
|
||||
var pinjaman = $(data).data("pinjaman");
|
||||
var hargajualan = $(data).data("hargajualan");
|
||||
|
||||
Swal.fire({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
didOpen: function () {
|
||||
Swal.showLoading()
|
||||
}
|
||||
});
|
||||
|
||||
if(hargajualan == pinjaman){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</style>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="col-md-10">
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
@@ -18,6 +18,8 @@
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<input type="hidden" id="roles_avatar" value="{{ Auth::user()->roles }}"></input>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="text-center">
|
||||
@@ -26,11 +28,12 @@
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-9">
|
||||
<div class="input-group my-3">
|
||||
<input type="text" class="form-control" id="noic" name="noic" placeholder="No Kad Pengenalan Pelanggan" aria-label="No Kad Pengenalan Pelanggan" autocomplete="off" value="{{$search == false ? '' : $noic ?? ''}}" aria-describedby="button-addon2">
|
||||
<input type="text" class="typeahead form-control" id="noic" name="noic" placeholder="No Kad Pengenalan Pelanggan" aria-label="No Kad Pengenalan Pelanggan" autocomplete="off" value="{{$search == false ? '' : $noic ?? ''}}" aria-describedby="button-addon2">
|
||||
<div class="input-group-append">
|
||||
<select class="form-select" id="customerIDType" name="customerIDType" class="form-control">
|
||||
<option value="nokp" {{ $idtype == 'nokp' ? 'selected' : ''}}>Kad Pengenalan</option>
|
||||
<option value="passport" {{ $idtype == 'passport' ? 'selected' : ''}}>Passport</option>
|
||||
<option value="name">Nama</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-group-append">
|
||||
@@ -305,6 +308,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="{{ asset('js/searchName.js') }}"></script>
|
||||
<script>
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var search = "<?php echo $search ?>";
|
||||
|
||||
@@ -338,8 +338,15 @@
|
||||
|
||||
function triggersubmit()
|
||||
{
|
||||
Swal.fire({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
didOpen: function () {
|
||||
Swal.showLoading();
|
||||
}
|
||||
});
|
||||
$("#terima_transaksi").prop('disabled', true);
|
||||
|
||||
$('#form-pendahuluan').trigger('submit');
|
||||
}
|
||||
|
||||
@@ -358,6 +365,16 @@
|
||||
'no' : nom,
|
||||
'kodlaluan' : teller
|
||||
},
|
||||
beforeSend: function(){
|
||||
Swal.fire({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
didOpen: function () {
|
||||
Swal.showLoading();
|
||||
}
|
||||
});
|
||||
},
|
||||
success:function(data){
|
||||
window.location.href = "{{ route('khazanah.serahan') }}";
|
||||
}
|
||||
|
||||
@@ -344,6 +344,14 @@
|
||||
|
||||
function triggersubmit()
|
||||
{
|
||||
Swal.fire({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
didOpen: function () {
|
||||
Swal.showLoading();
|
||||
}
|
||||
});
|
||||
$("#lulus_btn").prop('disabled', true);
|
||||
$('#form-pendahuluan').trigger('submit');
|
||||
}
|
||||
@@ -363,6 +371,16 @@
|
||||
'no' : nom,
|
||||
'kodlaluan' : teller
|
||||
},
|
||||
beforeSend: function(){
|
||||
Swal.fire({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
didOpen: function () {
|
||||
Swal.showLoading();
|
||||
}
|
||||
});
|
||||
},
|
||||
success:function(data){
|
||||
window.location.href = "{{ route('khazanah.pendahulu') }}";
|
||||
}
|
||||
|
||||
@@ -498,6 +498,30 @@
|
||||
minimumFractionDigits: 2
|
||||
});
|
||||
|
||||
async function checkPS(norujukan){
|
||||
let gadai_tawarruq = fetch(api_url + '/api/gadai/norujukan/' + norujukan );
|
||||
|
||||
return response = await gadai_tawarruq
|
||||
.then(response => response.json())
|
||||
.then(response => response[0][0])
|
||||
.then(gadaian => {
|
||||
return { historygadaian: gadaian.historygadaian, tag_tebus: gadaian.tag_tebus };
|
||||
})
|
||||
.then(data => {
|
||||
if(data.historygadaian == '0' || data.historygadaian === null || data.historygadaian.length === 0) {
|
||||
return false;
|
||||
}else{
|
||||
if(data.tag_tebus == 'AT'){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
})
|
||||
}
|
||||
|
||||
function checkserah(data){
|
||||
var urlpenebusan = $(data).data("url");
|
||||
var norujukan = $(data).data("norujukan");
|
||||
@@ -540,7 +564,7 @@ $.each(data,function(index,gadai_detail){
|
||||
},
|
||||
success:function(upahsemasa){
|
||||
if(jenistebus == "belum_tebus"){
|
||||
var urlroute = '{{ route("penebusan.khazanah", ":id") }}';
|
||||
var urlroute = '{{ route("penebusan", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', gadai_detail["norujukan"]);
|
||||
|
||||
if(gadai_detail['lelong_tawarruq'] == 0){
|
||||
@@ -580,11 +604,11 @@ $.each(data,function(index,gadai_detail){
|
||||
}
|
||||
|
||||
let table_norujukan = gadai_detail["norujukan"];
|
||||
let radio_action = "onclick=checkCanChangeGadaianDetail(" + "'" + table_norujukan + "'" + ")";
|
||||
// let radio_action = "onclick=checkCanChangeGadaianDetail(" + "'" + table_norujukan + "'" + ")";
|
||||
|
||||
if(gadai_detail["percentpinj"] != 0)
|
||||
xtawarruq.row.add([
|
||||
'<input type="radio" value='+ gadai_detail["norujukan"] + ' ' + radio_action +' name="belum"/>',
|
||||
'<input type="radio" value='+ gadai_detail["norujukan"] + ' name="belum"/>',
|
||||
'<a href="#" onclick="checkserah(this)" data-pinjaman='+ gadai_detail['pinjaman'] +' data-hargajualan='+ gadai_detail['hargajualan'] +' data-norujukan='+ gadai_detail['norujukan'] +' data-url=' + urlroute +'>' + gadai_detail['norujukan'] + '</a>',
|
||||
gadai_detail['t_gadai'],
|
||||
tarikh_matang,
|
||||
@@ -625,9 +649,9 @@ $.each(data,function(index,gadai_detail){
|
||||
}
|
||||
|
||||
let table_norujukan = gadai_detail["norujukan"];
|
||||
let radio_action = "onclick=checkCanChangeGadaianDetail(" + "'" + table_norujukan + "'" + ")";
|
||||
// let radio_action = "onclick=checkCanChangeGadaianDetail(" + "'" + table_norujukan + "'" + ")";
|
||||
tablegadai.row.add([
|
||||
'<input type="radio" value='+ gadai_detail["norujukan"] + ' ' + radio_action +' name="belum"/>',
|
||||
'<input type="radio" value='+ gadai_detail["norujukan"] + ' name="belum"/>',
|
||||
'<a href="#" onclick="checkserah(this)" data-pinjaman='+ gadai_detail['pinjaman'] +' data-hargajualan='+ gadai_detail['hargajualan'] +' data-norujukan='+ gadai_detail['norujukan'] +' data-url=' + urlroute +'>' + gadai_detail['norujukan'] + '</a>',
|
||||
gadai_detail['t_gadai'],
|
||||
tarikh_matang,
|
||||
@@ -775,7 +799,7 @@ $.each(data,function(index,gadai_detail){
|
||||
});
|
||||
});
|
||||
|
||||
function histfunc(){
|
||||
async function histfunc(){
|
||||
if($("input[name='options']:checked").val() == 'belum_tebus'){
|
||||
let histid = $('input[name="belum"]:checked').val();
|
||||
if(histid == null){
|
||||
@@ -785,14 +809,26 @@ $.each(data,function(index,gadai_detail){
|
||||
text: 'Sila pilih salah satu SAG'
|
||||
});
|
||||
}else{
|
||||
Swal.fire({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
didOpen: function () {
|
||||
Swal.showLoading()
|
||||
}
|
||||
});
|
||||
|
||||
let checkps = await checkPS(histid);
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url:'{{ route("gadai.history.khazanah") }}',
|
||||
data:{ "norujukan" : histid},
|
||||
success:function(data)
|
||||
{
|
||||
Swal.close();
|
||||
$('#historytebusModal').modal();
|
||||
historytebustable(data);
|
||||
historytebustable(data,checkps);
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
@@ -802,7 +838,7 @@ $.each(data,function(index,gadai_detail){
|
||||
method: 'get',
|
||||
url: api_url + '/api/transaction/' + histid,
|
||||
success: function(data){
|
||||
historybayarantable(data);
|
||||
historybayarantable(data,checkps);
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
@@ -816,6 +852,8 @@ $.each(data,function(index,gadai_detail){
|
||||
}else if($("input[name='options']:checked").val() == 'sudah_tebus'){
|
||||
let histid = $('input[name="sudahtebus"]:checked').val();
|
||||
|
||||
let checkps = await checkPS(histid);
|
||||
|
||||
if(histid == null){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
@@ -830,7 +868,7 @@ $.each(data,function(index,gadai_detail){
|
||||
data:{ "norujukan" : histid},
|
||||
success:function(data){
|
||||
$('#historytebusModal').modal();
|
||||
historytebustable(data);
|
||||
historytebustable(data,checkps);
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
@@ -921,7 +959,6 @@ $.each(data,function(index,gadai_detail){
|
||||
{
|
||||
|
||||
var count = Object.keys(data).length;
|
||||
console.log(histid);
|
||||
if(count > 0)
|
||||
{
|
||||
Swal.fire({
|
||||
@@ -1053,13 +1090,12 @@ $.each(data,function(index,gadai_detail){
|
||||
"ordering": false
|
||||
});
|
||||
|
||||
function historytebustable(data){
|
||||
function historytebustable(data,checkps = false){
|
||||
|
||||
var counter = 1;
|
||||
historytebusbayaran.clear().draw();
|
||||
|
||||
$.each(data,function(index,tebusaz){
|
||||
|
||||
switch(tebusaz['jenistebus']) {
|
||||
case 'P':
|
||||
var urlroute = '{{ route("resit.khazanah.tambahpinjam", ":id") }}';
|
||||
@@ -1074,11 +1110,19 @@ $.each(data,function(index,gadai_detail){
|
||||
|
||||
}else{
|
||||
|
||||
if(tebusaz['historygadaian'] != '' || tebusaz['historygadaian'] != 0 || tebusaz['historygadaian'] != null){
|
||||
// if(tebusaz['historygadaian'] != '' || tebusaz['historygadaian'] != 0 || tebusaz['historygadaian'] != null){
|
||||
// var urlroute = '{{ route("resit.autotawarruq", ":id") }}';
|
||||
// urlroute = urlroute.replace(':id', tebusaz['norujukan']);
|
||||
// }else{
|
||||
// var urlroute = '{{ route("resit.khazanah.tebus", ":id") }}';
|
||||
// urlroute = urlroute.replace(':id', tebusaz['norujukan']);
|
||||
// }
|
||||
|
||||
if(checkps){
|
||||
var urlroute = '{{ route("resit.autotawarruq", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
|
||||
}else{
|
||||
var urlroute = '{{ route("resit.khazanah.tebus", ":id") }}';
|
||||
var urlroute = '{{ route("resit.tebus", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
|
||||
}
|
||||
|
||||
@@ -1098,7 +1142,7 @@ $.each(data,function(index,gadai_detail){
|
||||
historytebusbayaran.row.add([
|
||||
counter,
|
||||
tebusaz['norujukan'],
|
||||
tebusaz['jenistebus'],
|
||||
(checkps && tebusaz['jenistebus'] == 'A') ? 'PS' : (tebusaz['jenistebus'] == 'A') ? 'PS' : tebusaz['jenistebus'],
|
||||
tebusaz['pinjaman'],
|
||||
tebusaz['jbg'],
|
||||
tebusaz['t_tebus'],
|
||||
@@ -1237,7 +1281,6 @@ $.each(data,function(index,gadai_detail){
|
||||
|
||||
$('#poskod').change(function(){
|
||||
var poskod = this.value;
|
||||
console.log(poskod);
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url:api_url+'/api/poskod/'+poskod,
|
||||
@@ -1248,7 +1291,6 @@ $.each(data,function(index,gadai_detail){
|
||||
url:api_url+'/api/negeri/'+kodnegeri,
|
||||
method:'GET',
|
||||
success:function(negeri){
|
||||
console.log(negeri);
|
||||
$('#kodnegeri').val(negeri['negeri']);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
<script src="{{ asset('js/popper.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/DataTables/datatables.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/datepicker/js/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script src="{{ asset('js/typehead.jquery.js') }}"></script>
|
||||
|
||||
|
||||
{{-- jquery validation --}}
|
||||
<script src="{{ asset('js/jquery.validate.min.js') }}"></script>
|
||||
|
||||
@@ -1032,47 +1032,6 @@
|
||||
|
||||
<div class="col-12 form-group row">
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- sag lama -->
|
||||
{{-- <div class="col-6" id="divpembiayaanasal">
|
||||
<div class="form-group row">
|
||||
<div class="col-4">
|
||||
PEMBIAYAAN ASAL (RM)
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" id="pinjamanasal" value="{{ number_format($gadai['pinjaman'],2) }}" class="form-control" readonly/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" id="divbayarantawarruq">
|
||||
<div class="col-4">
|
||||
BAYARAN PEMBIAYAAN (RM)
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" id="bayarantawarruq" onkeyup="bayartawarruq(this)" placeholder="0.00" class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" id="divbayaranminima">
|
||||
<div class="col-4">
|
||||
BAYARAN MINIMA
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" id="minimabayaran" value="" class="form-control" readonly/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" id="divperludibayartawarruq">
|
||||
<div class="col-4">
|
||||
<b>PERLU DIBAYAR (RM)</b>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" id="perludibayartawarruq" style="font-weight:bold;" class="form-control" readonly/>
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
|
||||
|
||||
<div class="col-12 d-flex justify-content-between">
|
||||
@if($gadai['tagbaru'] == 0)
|
||||
<div class="col-6" id="divjenisAT">
|
||||
@@ -1096,7 +1055,7 @@
|
||||
@endif
|
||||
<div class="justify-content-end">
|
||||
<input type="button" class="float-right btn btn-danger mr-2" value="BATAL" onclick="pembatalanbalik();">
|
||||
<input type="button" id="terima_transaksi" class="float-right btn btn-primary mr-2" value="TERIMA" onclick="bayaransemua()">
|
||||
@if(Auth::user()->roles == 'teller') <input type="button" id="terima_transaksi" class="float-right btn btn-primary mr-2" value="TERIMA" onclick="bayaransemua()"> @endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1781,6 +1740,15 @@
|
||||
function bayaransemua()
|
||||
{
|
||||
$("#terima_transaksi").prop('disabled', true);
|
||||
Swal.fire({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
didOpen: function () {
|
||||
Swal.showLoading();
|
||||
}
|
||||
});
|
||||
|
||||
var jumupah = parseFloat($('#jumlahupah').val().replace(/[^0-9.-]+/g,""));
|
||||
|
||||
if($('#sltjenistebus').find(":selected").val() == 'T'){
|
||||
@@ -1799,6 +1767,7 @@
|
||||
|
||||
if(count > 0)
|
||||
{
|
||||
Swal.close();
|
||||
Swal.fire('Amaran!','Tebus sudah dibuat sila tekan butang batal!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
adadah = true;
|
||||
@@ -1816,6 +1785,7 @@
|
||||
|
||||
if(success_data == true)
|
||||
{
|
||||
Swal.close();
|
||||
Swal.fire('Amaran!','Bayaran online dalam proses!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
adaonline = true;
|
||||
@@ -1867,6 +1837,7 @@
|
||||
|
||||
|
||||
if(Number(duitpelanggan) < Number(bakipinjaman)){
|
||||
Swal.close();
|
||||
Swal.fire('Amaran!','Duit Pelanggan haruslah diisi melebihi perlu dibayar!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
|
||||
@@ -1898,7 +1869,7 @@
|
||||
"jeniskeuntungan" : jeniskeuntungan,
|
||||
"teller" : teller,
|
||||
"duitpelanggan" : duitpelanggan,
|
||||
"bakipelanggan" : bakipelanggan
|
||||
"bakipelanggan" : bakipelanggan,
|
||||
},
|
||||
success:function(success_data){
|
||||
|
||||
@@ -1931,6 +1902,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
Swal.close();
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Berjaya!',
|
||||
@@ -1941,6 +1913,7 @@
|
||||
})
|
||||
}
|
||||
else{
|
||||
Swal.close();
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran!',
|
||||
@@ -1969,6 +1942,7 @@
|
||||
|
||||
if(count > 0)
|
||||
{
|
||||
Swal.close();
|
||||
Swal.fire('Amaran!','Tebus sudah dibuat sila tekan butang batal!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
|
||||
@@ -1997,6 +1971,7 @@
|
||||
if(isNaN(duitpelanggan)) duitpelanggan = 0;
|
||||
|
||||
if(Number(duitpelanggan) < Number(bayar)){
|
||||
Swal.close();
|
||||
Swal.fire('Amaran!','Duit Pelanggan haruslah diisi melebihi perlu dibayar!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
|
||||
@@ -2066,6 +2041,43 @@
|
||||
|
||||
let adadah = false;
|
||||
|
||||
let komuditiblock = false;
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api + '/api/komuditi/check',
|
||||
async:false,
|
||||
success:function(komoditi){
|
||||
var check_komuditi = Object.keys(komoditi).length;
|
||||
if(check_komuditi == 0){
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Unit Komuditi Berbaki Minumum',
|
||||
text: 'Sila Hubungi Operasi Untuk Membuat Pembelian Komuditi'
|
||||
});
|
||||
komuditiblock = true;
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if(Number(komoditi['unit_komuditi']) < pinjaman_baru){
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Baki Unit Komuditi Tidak Mencukupi',
|
||||
text: 'Sila Hubungi Operasi Untuk Membuat Pembelian Komuditi'
|
||||
});
|
||||
komuditiblock = true;
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
if(komuditiblock){
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
datatype: 'json',
|
||||
@@ -2411,6 +2423,42 @@
|
||||
}
|
||||
|
||||
let adadah = false;
|
||||
let komuditiblock = false;
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api + '/api/komuditi/check',
|
||||
async:false,
|
||||
success:function(komoditi){
|
||||
var check_komuditi = Object.keys(komoditi).length;
|
||||
if(check_komuditi == 0){
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Unit Komuditi Berbaki Minumum',
|
||||
text: 'Sila Hubungi Operasi Untuk Membuat Pembelian Komuditi'
|
||||
});
|
||||
komuditiblock = true;
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}else{
|
||||
if(Number(komoditi['unit_komuditi']) < pinjaman_baru){
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Baki Unit Komuditi Tidak Mencukupi',
|
||||
text: 'Sila Hubungi Operasi Untuk Membuat Pembelian Komuditi'
|
||||
});
|
||||
komuditiblock = true;
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
if(komuditiblock){
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
@@ -3385,7 +3433,10 @@
|
||||
"nowakil" : nowakil,
|
||||
"arrayrecno" : array_recno,
|
||||
"jenisbayarantebus" : jenisbayarantebus,
|
||||
"jeniskeuntungan" : 'onepercent',
|
||||
"teller" : teller,
|
||||
"bayaran" : duitpelanggan,
|
||||
"bakipelanggan" : bakipelanggan,
|
||||
|
||||
|
||||
//yang baru
|
||||
@@ -3501,7 +3552,10 @@
|
||||
"noic" : noic,
|
||||
"norujukan" : norujukan,
|
||||
"jenisbayarantebus" : jenisbayarantebus,
|
||||
"teller" : teller
|
||||
"jeniskeuntungan" : 'onepercent',
|
||||
"teller" : teller,
|
||||
"bayaran" : duitpelanggan,
|
||||
"bakipelanggan" : bakipelanggan,
|
||||
|
||||
},
|
||||
success:function(success_data){
|
||||
@@ -3877,7 +3931,7 @@ $.ajax({
|
||||
'tebus' : 0
|
||||
},
|
||||
success:function(data){
|
||||
window.location.replace("{{ route('customer_info') }}");
|
||||
window.location.replace("{{ (Auth::user()->roles == 'pc' || Auth::user()->roles == 'ppc') ? route('khazanah.customer_info') : route('customer_info') }}");
|
||||
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@@ -3886,7 +3940,7 @@ $.ajax({
|
||||
}
|
||||
});
|
||||
}else{
|
||||
window.location.replace("{{ route('customer_info') }}");
|
||||
window.location.replace("{{ (Auth::user()->roles == 'pc' || Auth::user()->roles == 'ppc') ? route('khazanah.customer_info') : route('customer_info') }}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,940 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
window.print();
|
||||
window.onfocus = function() {
|
||||
window.close();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<style>
|
||||
/* Red border */
|
||||
hr.new1 {
|
||||
border-top: 1px solid red;
|
||||
}
|
||||
|
||||
/* Dashed red border */
|
||||
hr.new2 {
|
||||
border-top: 1px dashed red;
|
||||
}
|
||||
|
||||
/* Dotted red border */
|
||||
hr.new3 {
|
||||
border-top: 1px dotted red;
|
||||
}
|
||||
|
||||
/* Thick red border */
|
||||
hr.new4 {
|
||||
border: 1px solid red;
|
||||
}
|
||||
|
||||
/* Large rounded green border */
|
||||
hr.new5 {
|
||||
border: 10px solid green;
|
||||
border-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#cust {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 20%;
|
||||
font-size: 12px;
|
||||
border: 1px solid black;
|
||||
|
||||
}
|
||||
|
||||
#cust td,
|
||||
#cust th {
|
||||
border: 0px solid;
|
||||
padding: 3px;
|
||||
font-size: 10px;
|
||||
text-align: right;
|
||||
|
||||
}
|
||||
|
||||
#cust tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#cust tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#cust th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: right;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#cust {
|
||||
margin-left: auto;
|
||||
margin-right: 0;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
hr.new1 {
|
||||
border-top: 1px dotted black;
|
||||
}
|
||||
|
||||
.khazanah {
|
||||
border: 1px solid black;
|
||||
margin-left: 20px;
|
||||
padding: 10px;
|
||||
width: 250px;
|
||||
transform: rotate(-90deg);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#inside {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
#inside td,
|
||||
#inside th {
|
||||
border: none;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#inside tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#inside tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#inside th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 10px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#semakan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#semakan td,
|
||||
#semakan th {
|
||||
border: none;
|
||||
padding: 2px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#semakan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#semakan tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#semakan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 10px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#salinan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#salinan td,
|
||||
#salinan th {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
|
||||
#salinan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#salinan tr:hover {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#salinan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 10px;
|
||||
text-align: right;
|
||||
background-color: #ffffff;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#perjanjian {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
#perjanjian td,
|
||||
#perjanjian th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 2px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#perjanjian tr:nth-child(even) {
|
||||
background-color: #ffffff
|
||||
}
|
||||
|
||||
#perjanjian tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#perjanjian th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
#keuntungan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
#keuntungan td,
|
||||
#keuntungan th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 2px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#keuntungan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#keuntungan tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#keuntungan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#payment {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 60%;
|
||||
font-size: 12px;
|
||||
border: 1px solid black;
|
||||
|
||||
}
|
||||
|
||||
#payment td,
|
||||
#payment th {
|
||||
border: 0px solid;
|
||||
padding: 3px;
|
||||
font-size: 15px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#payment tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#payment tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#payment th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#payment {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#akuan td,
|
||||
#akuan th {
|
||||
padding: 7px;
|
||||
font-size: 10px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
#akuan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#akuan tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#akuan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
|
||||
.formula {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#copy_cust {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 10%;
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#copy_cust tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#copy_cust tr:hover {
|
||||
background-color: #ffffff
|
||||
}
|
||||
|
||||
#copy_cust th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
|
||||
#copy_cust {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 50%;
|
||||
font-size: 12px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
#copy_cust td,
|
||||
#copy_cust th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 2px;
|
||||
font-size: 10px;
|
||||
text-align: right;
|
||||
width: 10%;
|
||||
|
||||
}
|
||||
|
||||
#copy_cust {
|
||||
margin-right: 0px;
|
||||
margin-left: auto
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#inside tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#inside tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#inside th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.header-style {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center
|
||||
}
|
||||
|
||||
.header-style span {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
text-align: right;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
font-size: 10px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.center-table-style-border {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
border: 1px solid black
|
||||
}
|
||||
|
||||
.center-table-style {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.receipt-type-style {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
width: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: end;
|
||||
font-size: 45px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.custom-table-right {
|
||||
border: none !important;
|
||||
border-left: 1px solid !important;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
.vertical-baseline {
|
||||
vertical-align: baseline !important;
|
||||
}
|
||||
</style>
|
||||
<div class="header-style">
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center">
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pelanggan</strong></span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<div style="position: relative">
|
||||
<div class="receipt-type-style">T</div>
|
||||
<table id="inside">
|
||||
|
||||
@if (sizeof($wakil) != 0)
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td class="vertical-baseline">{{ $wakil['nama'] }}</td>
|
||||
<td colspan="2"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> <b>No SAG</b></td>
|
||||
<td>: <b>{{ $gadai['norujukan'] }}</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ $wakil['nokp'] }}</td>
|
||||
<td colspan="2"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> Tarikh Bayar</td>
|
||||
<td>: @php
|
||||
$time = new DateTime($penebusan['t_tebus']);
|
||||
$date = $time->format('d/m/Y');
|
||||
echo $date;
|
||||
@endphp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No Telefon</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ $wakil['telefon'] }}</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran </td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@endphp
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="vertical-baseline">Alamat </td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td style="max-width: 180px">{{ $wakil['alamat1'] }}</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td class="vertical-baseline">Tempoh Simpan</td>
|
||||
<td class="vertical-baseline">: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ sizeof($surat_wakil) == 0 ? '-' : $surat_wakil['no_surat'] }}</td>
|
||||
<td colspan="7"> </td>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="3">Nama</td>
|
||||
<td>: {{ $customers_info['nama'] }} </td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td><strong>No SAG</strong></td>
|
||||
<td>: <strong>{{ $gadai['norujukan'] }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td>
|
||||
<td>: @php
|
||||
if ($customers_info['kpbaru'] == '') {
|
||||
echo $customers_info['kplama'];
|
||||
} else {
|
||||
echo $customers_info['kpbaru'];
|
||||
}
|
||||
@endphp</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> Tarikh Bayar</td>
|
||||
<td>: @php
|
||||
$time = new DateTime($penebusan['t_tebus']);
|
||||
$date = $time->format('d/m/Y');
|
||||
echo $date;
|
||||
@endphp</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran</td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@endphp
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Tempoh Simpan</td>
|
||||
<td>: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="{{ sizeof($wakil) != 0 ? 'center-table-style-border' : 'center-table-style' }}" style="margin-top: 10px">
|
||||
@if (sizeof($wakil) != 0)
|
||||
<table id="payment" style="border: none; height: fit-content">
|
||||
<tr>
|
||||
<td colspan="3">Maklumat Pelanggan</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:75px" class="vertical-baseline">Nama</td>
|
||||
<td style="width: 1px" class="text-center vertical-baseline">:</td>
|
||||
<td style="">{{ $customers_info['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:75px" class="vertical-baseline">No K/P</td>
|
||||
<td style="width: 1px" class="text-center vertical-baseline">:</td>
|
||||
<td>
|
||||
@php
|
||||
if ($customers_info['kpbaru'] == '') {
|
||||
echo $customers_info['kplama'];
|
||||
} else {
|
||||
echo $customers_info['kpbaru'];
|
||||
}
|
||||
@endphp
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
<table id="payment" class="{{ sizeof($wakil) != 0 ? 'custom-table-right' : '' }}">
|
||||
<tr>
|
||||
<td style="width:10px">Baki Pembiayaan</td>
|
||||
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['onepercent'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Untung</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['onepercent'], 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Ujrah</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Ujrah</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:17px"><strong>Jumlah Bayaran</strong></td>
|
||||
<td style="font-size: 17px"><strong>: RM
|
||||
{{-- {{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td> --}}
|
||||
{{ number_format($penebusan['bakipjm'], 2) }}</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<table id="payment" style="border: none; margin-top:10px; width: 60%">
|
||||
<tr>
|
||||
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="semakan">
|
||||
<tr>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Teller</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ sizeof($wakil) != 0 ? 'Wakil' : 'Pelanggan' }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">Khazanah</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">{{ Auth::user()->name }}</td>
|
||||
|
||||
<td></td>
|
||||
<td colspan="3">{{ sizeof($wakil) != 0 ? $wakil['nama'] : $customers_info['nama'] }}</td>
|
||||
<td></td>
|
||||
<td colspan="3"> {{ $khazanah_user->name }}</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<hr class="new2">
|
||||
|
||||
</table>
|
||||
|
||||
<div class="header-style">
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image"
|
||||
class="center">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center">
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pejabat</strong></span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div style="position: relative">
|
||||
<div class="receipt-type-style">P</div>
|
||||
<table id="inside">
|
||||
|
||||
@if (sizeof($wakil) != 0)
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td class="vertical-baseline">{{ $wakil['nama'] }}</td>
|
||||
<td colspan="2"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> <b>No SAG</b></td>
|
||||
<td>: <b>{{ $gadai['norujukan'] }}</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ $wakil['nokp'] }}</td>
|
||||
<td colspan="2"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> Tarikh Bayar</td>
|
||||
<td>: @php
|
||||
$time = new DateTime($penebusan['t_tebus']);
|
||||
$date = $time->format('d/m/Y');
|
||||
echo $date;
|
||||
@endphp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No Telefon</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ $wakil['telefon'] }}</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran </td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@endphp
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="vertical-baseline">Alamat </td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td style="max-width: 180px">{{ $wakil['alamat1'] }}</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td class="vertical-baseline">Tempoh Simpan</td>
|
||||
<td class="vertical-baseline">: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ sizeof($surat_wakil) == 0 ? '-' : $surat_wakil['no_surat'] }}</td>
|
||||
<td colspan="7"> </td>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="3">Nama</td>
|
||||
<td>: {{ $customers_info['nama'] }} </td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td><strong>No SAG</strong></td>
|
||||
<td>: <strong>{{ $gadai['norujukan'] }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td>
|
||||
<td>: @php
|
||||
if ($customers_info['kpbaru'] == '') {
|
||||
echo $customers_info['kplama'];
|
||||
} else {
|
||||
echo $customers_info['kpbaru'];
|
||||
}
|
||||
@endphp</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> Tarikh Bayar</td>
|
||||
<td>: @php
|
||||
$time = new DateTime($penebusan['t_tebus']);
|
||||
$date = $time->format('d/m/Y');
|
||||
echo $date;
|
||||
@endphp</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran</td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@endphp
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Tempoh Simpan</td>
|
||||
<td>: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="{{ sizeof($wakil) != 0 ? 'center-table-style-border' : 'center-table-style' }}" style="margin-top: 10px">
|
||||
@if (sizeof($wakil) != 0)
|
||||
<table id="payment" style="border: none; height: fit-content">
|
||||
<tr>
|
||||
<td colspan="3">Maklumat Pelanggan</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:75px" class="vertical-baseline">Nama</td>
|
||||
<td style="width: 1px" class="text-center vertical-baseline">:</td>
|
||||
<td style="">{{ $customers_info['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:75px" class="vertical-baseline">No K/P</td>
|
||||
<td style="width: 1px" class="text-center vertical-baseline">:</td>
|
||||
<td>
|
||||
@php
|
||||
if ($customers_info['kpbaru'] == '') {
|
||||
echo $customers_info['kplama'];
|
||||
} else {
|
||||
echo $customers_info['kpbaru'];
|
||||
}
|
||||
@endphp
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
<table id="payment" class="{{ sizeof($wakil) != 0 ? 'custom-table-right' : '' }}">
|
||||
<tr>
|
||||
<td style="width:10px">Baki Pembiayaan</td>
|
||||
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['onepercent'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Untung</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['onepercent'], 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Ujrah</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Ujrah</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:17px"><strong>Jumlah Bayaran</strong></td>
|
||||
<td style="font-size: 17px"><strong>: RM
|
||||
{{-- {{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td> --}}
|
||||
{{ number_format($penebusan['bakipjm'], 2) }}</strong></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<table id="payment" style="border: none; margin-top:10px; width: 60%">
|
||||
<tr>
|
||||
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="semakan">
|
||||
<tr>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Teller</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ sizeof($wakil) != 0 ? 'Wakil' : 'Pelanggan' }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">Khazanah</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> {{ Auth::user()->name }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ sizeof($wakil) != 0 ? $wakil['nama'] : $customers_info['nama'] }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ $khazanah_user->name }}</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<table id="inside" style="width: 45%; margin-top:20px">
|
||||
<tr>
|
||||
<td>Duit Pelanggan</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['duitpelanggan'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jumlah Perlu Dibayar</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['duit_masuk'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Baki</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['bakipelanggan'], 2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="semakan" style="margin-top: 0">
|
||||
<tr style="visibility: hidden">
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
@@ -0,0 +1,940 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// window.print();
|
||||
// window.onfocus = function() {
|
||||
// window.close();
|
||||
// }
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<style>
|
||||
/* Red border */
|
||||
hr.new1 {
|
||||
border-top: 1px solid red;
|
||||
}
|
||||
|
||||
/* Dashed red border */
|
||||
hr.new2 {
|
||||
border-top: 1px dashed red;
|
||||
}
|
||||
|
||||
/* Dotted red border */
|
||||
hr.new3 {
|
||||
border-top: 1px dotted red;
|
||||
}
|
||||
|
||||
/* Thick red border */
|
||||
hr.new4 {
|
||||
border: 1px solid red;
|
||||
}
|
||||
|
||||
/* Large rounded green border */
|
||||
hr.new5 {
|
||||
border: 10px solid green;
|
||||
border-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#cust {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 20%;
|
||||
font-size: 12px;
|
||||
border: 1px solid black;
|
||||
|
||||
}
|
||||
|
||||
#cust td,
|
||||
#cust th {
|
||||
border: 0px solid;
|
||||
padding: 3px;
|
||||
font-size: 10px;
|
||||
text-align: right;
|
||||
|
||||
}
|
||||
|
||||
#cust tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#cust tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#cust th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: right;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#cust {
|
||||
margin-left: auto;
|
||||
margin-right: 0;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
hr.new1 {
|
||||
border-top: 1px dotted black;
|
||||
}
|
||||
|
||||
.khazanah {
|
||||
border: 1px solid black;
|
||||
margin-left: 20px;
|
||||
padding: 10px;
|
||||
width: 250px;
|
||||
transform: rotate(-90deg);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#inside {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
#inside td,
|
||||
#inside th {
|
||||
border: none;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#inside tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#inside tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#inside th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 10px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#semakan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin-top: 40px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#semakan td,
|
||||
#semakan th {
|
||||
border: none;
|
||||
padding: 2px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#semakan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#semakan tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#semakan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 10px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#salinan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#salinan td,
|
||||
#salinan th {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
|
||||
#salinan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#salinan tr:hover {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#salinan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 10px;
|
||||
text-align: right;
|
||||
background-color: #ffffff;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#perjanjian {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
#perjanjian td,
|
||||
#perjanjian th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 2px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#perjanjian tr:nth-child(even) {
|
||||
background-color: #ffffff
|
||||
}
|
||||
|
||||
#perjanjian tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#perjanjian th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
#keuntungan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
#keuntungan td,
|
||||
#keuntungan th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 2px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#keuntungan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#keuntungan tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#keuntungan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#payment {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 60%;
|
||||
font-size: 12px;
|
||||
border: 1px solid black;
|
||||
|
||||
}
|
||||
|
||||
#payment td,
|
||||
#payment th {
|
||||
border: 0px solid;
|
||||
padding: 3px;
|
||||
font-size: 15px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#payment tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#payment tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#payment th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#payment {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#akuan td,
|
||||
#akuan th {
|
||||
padding: 7px;
|
||||
font-size: 10px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
#akuan tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#akuan tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#akuan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
|
||||
.formula {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#copy_cust {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 10%;
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#copy_cust tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#copy_cust tr:hover {
|
||||
background-color: #ffffff
|
||||
}
|
||||
|
||||
#copy_cust th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
|
||||
#copy_cust {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 50%;
|
||||
font-size: 12px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
#copy_cust td,
|
||||
#copy_cust th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 2px;
|
||||
font-size: 10px;
|
||||
text-align: right;
|
||||
width: 10%;
|
||||
|
||||
}
|
||||
|
||||
#copy_cust {
|
||||
margin-right: 0px;
|
||||
margin-left: auto
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#inside tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#inside tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#inside th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.header-style {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center
|
||||
}
|
||||
|
||||
.header-style span {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
text-align: right;
|
||||
background-color: #d9deda;
|
||||
color: black;
|
||||
padding: 2px;
|
||||
font-size: 10px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.center-table-style-border {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
border: 1px solid black
|
||||
}
|
||||
|
||||
.center-table-style {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.receipt-type-style {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
width: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: end;
|
||||
font-size: 45px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.custom-table-right {
|
||||
border: none !important;
|
||||
border-left: 1px solid !important;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
.vertical-baseline {
|
||||
vertical-align: baseline !important;
|
||||
}
|
||||
</style>
|
||||
<div class="header-style">
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image" class="center">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center">
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pelanggan</strong></span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<div style="position: relative">
|
||||
<div class="receipt-type-style">T</div>
|
||||
<table id="inside">
|
||||
|
||||
@if (sizeof($wakil) != 0)
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td class="vertical-baseline">{{ $wakil['nama'] }}</td>
|
||||
<td colspan="2"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> <b>No SAG</b></td>
|
||||
<td>: <b>{{ $gadai['norujukan'] }}</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ $wakil['nokp'] }}</td>
|
||||
<td colspan="2"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> Tarikh Bayar</td>
|
||||
<td>: @php
|
||||
$time = new DateTime($penebusan['t_tebus']);
|
||||
$date = $time->format('d/m/Y');
|
||||
echo $date;
|
||||
@endphp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No Telefon</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ $wakil['telefon'] }}</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran </td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@endphp
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="vertical-baseline">Alamat </td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td style="max-width: 180px">{{ $wakil['alamat1'] }}</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td class="vertical-baseline">Tempoh Simpan</td>
|
||||
<td class="vertical-baseline">: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ sizeof($surat_wakil) == 0 ? '-' : $surat_wakil['no_surat'] }}</td>
|
||||
<td colspan="7"> </td>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="3">Nama</td>
|
||||
<td>: {{ $customers_info['nama'] }} </td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td><strong>No SAG</strong></td>
|
||||
<td>: <strong>{{ $gadai['norujukan'] }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td>
|
||||
<td>: @php
|
||||
if ($customers_info['kpbaru'] == '') {
|
||||
echo $customers_info['kplama'];
|
||||
} else {
|
||||
echo $customers_info['kpbaru'];
|
||||
}
|
||||
@endphp</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> Tarikh Bayar</td>
|
||||
<td>: @php
|
||||
$time = new DateTime($penebusan['t_tebus']);
|
||||
$date = $time->format('d/m/Y');
|
||||
echo $date;
|
||||
@endphp</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran</td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@endphp
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Tempoh Simpan</td>
|
||||
<td>: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="{{ sizeof($wakil) != 0 ? 'center-table-style-border' : 'center-table-style' }}" style="margin-top: 10px">
|
||||
@if (sizeof($wakil) != 0)
|
||||
<table id="payment" style="border: none; height: fit-content">
|
||||
<tr>
|
||||
<td colspan="3">Maklumat Pelanggan</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:75px" class="vertical-baseline">Nama</td>
|
||||
<td style="width: 1px" class="text-center vertical-baseline">:</td>
|
||||
<td style="">{{ $customers_info['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:75px" class="vertical-baseline">No K/P</td>
|
||||
<td style="width: 1px" class="text-center vertical-baseline">:</td>
|
||||
<td>
|
||||
@php
|
||||
if ($customers_info['kpbaru'] == '') {
|
||||
echo $customers_info['kplama'];
|
||||
} else {
|
||||
echo $customers_info['kpbaru'];
|
||||
}
|
||||
@endphp
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
<table id="payment" class="{{ sizeof($wakil) != 0 ? 'custom-table-right' : '' }}">
|
||||
<tr>
|
||||
<td style="width:10px">Baki Pembiayaan</td>
|
||||
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['onepercent'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Untung</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['onepercent'], 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Ujrah</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Ujrah</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:17px"><strong>Jumlah Bayaran</strong></td>
|
||||
<td style="font-size: 17px"><strong>: RM
|
||||
{{-- {{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td> --}}
|
||||
{{ number_format($penebusan['bakipjm'], 2) }}</strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<table id="payment" style="border: none; margin-top:10px; width: 60%">
|
||||
<tr>
|
||||
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="semakan">
|
||||
<tr>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Teller</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ sizeof($wakil) != 0 ? 'Wakil' : 'Pelanggan' }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">Khazanah</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">{{ Auth::user()->name }}</td>
|
||||
|
||||
<td></td>
|
||||
<td colspan="3">{{ sizeof($wakil) != 0 ? $wakil['nama'] : $customers_info['nama'] }}</td>
|
||||
<td></td>
|
||||
<td colspan="3"> {{ $khazanah_user->name }}</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<hr class="new2">
|
||||
|
||||
</table>
|
||||
|
||||
<div class="header-style">
|
||||
<div style="display: flex; align-items:center">
|
||||
<img src="{{ asset('img/kopkb.png') }}" style="width:80px; margin-right: 10px" alt="User Image"
|
||||
class="center">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:50px" alt="User Image" class="center">
|
||||
</div>
|
||||
<div>
|
||||
<span><strong>Salinan Pejabat</strong></span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div style="position: relative">
|
||||
<div class="receipt-type-style">S</div>
|
||||
<table id="inside">
|
||||
|
||||
@if (sizeof($wakil) != 0)
|
||||
<tr>
|
||||
<td colspan="3">Nama Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td class="vertical-baseline">{{ $wakil['nama'] }}</td>
|
||||
<td colspan="2"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> <b>No SAG</b></td>
|
||||
<td>: <b>{{ $gadai['norujukan'] }}</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No K/P Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ $wakil['nokp'] }}</td>
|
||||
<td colspan="2"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> Tarikh Bayar</td>
|
||||
<td>: @php
|
||||
$time = new DateTime($penebusan['t_tebus']);
|
||||
$date = $time->format('d/m/Y');
|
||||
echo $date;
|
||||
@endphp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No Telefon</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ $wakil['telefon'] }}</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran </td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@endphp
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="vertical-baseline">Alamat </td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td style="max-width: 180px">{{ $wakil['alamat1'] }}</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td class="vertical-baseline">Tempoh Simpan</td>
|
||||
<td class="vertical-baseline">: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No Wakil</td>
|
||||
<td class="text-center vertical-baseline">:</td>
|
||||
<td>{{ sizeof($surat_wakil) == 0 ? '-' : $surat_wakil['no_surat'] }}</td>
|
||||
<td colspan="7"> </td>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="3">Nama</td>
|
||||
<td>: {{ $customers_info['nama'] }} </td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td><strong>No SAG</strong></td>
|
||||
<td>: <strong>{{ $gadai['norujukan'] }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">No K/P </td>
|
||||
<td>: @php
|
||||
if ($customers_info['kpbaru'] == '') {
|
||||
echo $customers_info['kplama'];
|
||||
} else {
|
||||
echo $customers_info['kpbaru'];
|
||||
}
|
||||
@endphp</td>
|
||||
<td colspan="3"> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> Tarikh Bayar</td>
|
||||
<td>: @php
|
||||
$time = new DateTime($penebusan['t_tebus']);
|
||||
$date = $time->format('d/m/Y');
|
||||
echo $date;
|
||||
@endphp</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Masa Bayaran</td>
|
||||
@php
|
||||
$masa_bayaran = strtotime($transaction_tebus['tarikh_bayaran']);
|
||||
$masa = date('H:i:s', $masa_bayaran);
|
||||
@endphp
|
||||
<td>: {{ $masa }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="7"></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Tempoh Simpan</td>
|
||||
<td>: {{ $gadai['tempoh'] }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="{{ sizeof($wakil) != 0 ? 'center-table-style-border' : 'center-table-style' }}" style="margin-top: 10px">
|
||||
@if (sizeof($wakil) != 0)
|
||||
<table id="payment" style="border: none; height: fit-content">
|
||||
<tr>
|
||||
<td colspan="3">Maklumat Pelanggan</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:75px" class="vertical-baseline">Nama</td>
|
||||
<td style="width: 1px" class="text-center vertical-baseline">:</td>
|
||||
<td style="">{{ $customers_info['nama'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:75px" class="vertical-baseline">No K/P</td>
|
||||
<td style="width: 1px" class="text-center vertical-baseline">:</td>
|
||||
<td>
|
||||
@php
|
||||
if ($customers_info['kpbaru'] == '') {
|
||||
echo $customers_info['kplama'];
|
||||
} else {
|
||||
echo $customers_info['kpbaru'];
|
||||
}
|
||||
@endphp
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
<table id="payment" class="{{ sizeof($wakil) != 0 ? 'custom-table-right' : '' }}">
|
||||
<tr>
|
||||
<td style="width:10px">Baki Pembiayaan</td>
|
||||
<td style="width:10px">: RM {{ number_format($gadai['bakipjm'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Keuntungan</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['onepercent'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Untung</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['onepercent'], 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">Ujrah</td>
|
||||
<td style="width:10px">: RM {{ number_format($penebusan['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px">(-) Rebat Ujrah</td>
|
||||
<td style="width:10px">: RM
|
||||
{{ number_format($totalrebate['ujrah'], 2) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:17px"><strong>Jumlah Bayaran</strong></td>
|
||||
<td style="font-size: 17px"><strong>: RM
|
||||
{{-- {{ number_format($transaction_tebus['duit_masuk'], 2) }}</strong></td> --}}
|
||||
{{ number_format($penebusan['bakipjm'], 2) }}</strong></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<table id="payment" style="border: none; margin-top:10px; width: 60%">
|
||||
<tr>
|
||||
<td>Marhun: {{ $gadai['marhun'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="semakan">
|
||||
<tr>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Teller</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ sizeof($wakil) != 0 ? 'Wakil' : 'Pelanggan' }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">Khazanah</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> {{ Auth::user()->name }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ sizeof($wakil) != 0 ? $wakil['nama'] : $customers_info['nama'] }}</td>
|
||||
<td></td>
|
||||
<td colspan="3">{{ $khazanah_user->name }}</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<table id="inside" style="width: 45%; margin-top:20px">
|
||||
<tr>
|
||||
<td>Duit Pelanggan</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['duitpelanggan'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jumlah Perlu Dibayar</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['duit_masuk'], 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Baki</td>
|
||||
<td>: RM {{ number_format($transaction_tebus['bakipelanggan'], 2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="semakan" style="margin-top: 0">
|
||||
<tr style="visibility: hidden">
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
<td></td>
|
||||
<td colspan="3">.................................................... </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
+11
-11
@@ -84,7 +84,7 @@ Route::get('/pelanggan','CustomersController@index')->middleware('auth','teller'
|
||||
Route::get('/customer_info',['as'=>'customer_info','uses'=>'CustomersController@info'])->middleware('auth','teller');
|
||||
Route::get('/gadaian',['as'=>'gadaian','uses'=>'GadaianController@index'])->middleware('auth','teller');
|
||||
Route::get('/daftar_marhun',['as'=>'daftar_marhun','uses'=>'MarhunController@index'])->middleware('auth','teller');
|
||||
Route::get('/penebusan/{norujukan}',['as'=>'penebusan','uses' => 'PenebusanController@index'])->middleware('auth','teller');
|
||||
Route::get('/penebusan/{norujukan}',['as'=>'penebusan','uses' => 'PenebusanController@index'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/lelongan/{norujukan}',['as'=>'lelongan','uses' => 'LelongController@index'])->middleware('auth','teller');
|
||||
Route::get('/aliran_tunai','AliranTunaiController@index')->middleware('auth','teller');
|
||||
Route::get('/aliran_tunai/laporanserahan',['as'=>'laporan.serahanteller','uses' => 'AliranTunaiController@LaporanSerahan'])->middleware('auth','teller');
|
||||
@@ -299,16 +299,16 @@ Route::get('/laporan/stokauditcombine',['as'=>'laporan.stokauditcombine','uses'=
|
||||
Route::get('laporan/stokauditcombine/cetak',['as'=>'stokauditcombine.laporancetak','uses'=>'KhazanahController@cetakLaporanStokAuditCombine'])->middleware('auth','khazanah');
|
||||
|
||||
//Resit Ansurans
|
||||
Route::get('/resit/{id}',['as'=>'resit.ansuran','uses'=>'GadaianController@resit'])->middleware('auth','teller');
|
||||
Route::get('/resitansurans/{id}',['as'=>'resit.ansurans','uses'=>'GadaianController@resitansurans'])->middleware('auth','teller');
|
||||
Route::get('/resitbelumansurans/{id}',['as'=>'resit.belumansurans','uses'=>'GadaianController@resitbelumansurans'])->middleware('auth','teller');
|
||||
Route::get('/resit/tebus/{id}',['as'=>'resit.tebus','uses'=>'GadaianController@resittebus'])->middleware('auth','teller');
|
||||
Route::get('/resit/advansur/{id}',['as'=>'resit.advansur','uses'=>'GadaianController@resitadvansur'])->middleware('auth','teller');
|
||||
Route::get('/resit/tebusseparuh/{id}',['as'=>'resit.tebusseparuh','uses'=>'GadaianController@resittebusseparuh'])->middleware('auth','teller');
|
||||
Route::get('/resit/belumtebus/{id}',['as'=>'resit.belumtebus','uses'=>'GadaianController@resitbelumtebus'])->middleware('auth','teller');
|
||||
Route::get('/resit/tambahpinjam/{id}',['as'=>'resit.tambahpinjam','uses'=>'GadaianController@resittambahpinjam'])->middleware('auth','teller');
|
||||
Route::get('/resit/tuntutbaki/{id}',['as'=>'resit.tuntutbaki','uses'=>'LelongController@resittuntutbaki'])->middleware('auth','teller');
|
||||
Route::get('/resit/tebusautotawarruq/{id}',['as'=>'resit.autotawarruq','uses'=>'GadaianController@resitautotawarruq'])->middleware('auth','teller');
|
||||
Route::get('/resit/{id}',['as'=>'resit.ansuran','uses'=>'GadaianController@resit'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/resitansurans/{id}',['as'=>'resit.ansurans','uses'=>'GadaianController@resitansurans'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/resitbelumansurans/{id}',['as'=>'resit.belumansurans','uses'=>'GadaianController@resitbelumansurans'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/resit/tebus/{id}',['as'=>'resit.tebus','uses'=>'GadaianController@resittebus'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/resit/advansur/{id}',['as'=>'resit.advansur','uses'=>'GadaianController@resitadvansur'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/resit/tebusseparuh/{id}',['as'=>'resit.tebusseparuh','uses'=>'GadaianController@resittebusseparuh'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/resit/belumtebus/{id}',['as'=>'resit.belumtebus','uses'=>'GadaianController@resitbelumtebus'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/resit/tambahpinjam/{id}',['as'=>'resit.tambahpinjam','uses'=>'GadaianController@resittambahpinjam'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/resit/tuntutbaki/{id}',['as'=>'resit.tuntutbaki','uses'=>'LelongController@resittuntutbaki'])->middleware(['auth','teller','khazanah']);
|
||||
Route::get('/resit/tebusautotawarruq/{id}',['as'=>'resit.autotawarruq','uses'=>'GadaianController@resitautotawarruq'])->middleware(['auth','teller','khazanah']);
|
||||
|
||||
Route::group(['middleware' => ['khazanah']], function() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user