fix skit2
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||||
|
||||
class NotifikasiAGH implements ShouldBroadcast
|
||||
{
|
||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||
|
||||
public $kodcaw,$message,$typeerror,$pc;
|
||||
|
||||
public function __construct($kodcaw,$message,$typeerror,$pc)
|
||||
{
|
||||
$this->kodcaw = $kodcaw;
|
||||
$this->message = $message;
|
||||
$this->typeerror = $typeerror;
|
||||
$this->pc = $pc;
|
||||
}
|
||||
|
||||
public function broadcastOn()
|
||||
{
|
||||
return ['notice-agh'];
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
{
|
||||
return 'my-agh';
|
||||
}
|
||||
}
|
||||
@@ -430,6 +430,10 @@ class GadaianController extends Controller
|
||||
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
dd($cawangan_info);
|
||||
|
||||
$gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||
|
||||
$totaltransaction = 0;
|
||||
@@ -462,7 +466,7 @@ class GadaianController extends Controller
|
||||
if(sizeof($wakil) != 0)
|
||||
$wakil = $wakil[0];
|
||||
|
||||
return view('print.resittebus',compact('transaction','gadai','customers_info','penebusan','wakil','totaltransaction'));
|
||||
return view('print.resittebus',compact('transaction','gadai','cawangan_info','customers_info','penebusan','wakil','totaltransaction'));
|
||||
}
|
||||
|
||||
public function resitbelumtebus($id)
|
||||
|
||||
@@ -9,6 +9,7 @@ use App\Events\OperasiNotice;
|
||||
use App\Events\PendahuluanSerahan;
|
||||
use App\Events\NotifikasiKelulusan;
|
||||
use App\Events\NotifikasiUbahHapus;
|
||||
use App\Events\NotifikasiAGH;
|
||||
|
||||
use App\User;
|
||||
use App\Cawangan;
|
||||
@@ -1712,10 +1713,10 @@ class KhazanahController extends Controller
|
||||
$debit_panjar= $get_Panjar_AM[0]['debit'];
|
||||
$recno_panjar= $get_Panjar_AM[0]['recno'];
|
||||
$kredit_panjar= $get_Panjar_AM[0]['kredit'];
|
||||
$debit_panjar=$debit_panjar+$request->bayaran;
|
||||
$harini_panjar=$debit_panjar-$kredit_panjar;
|
||||
$kelmarin_panjar=$jumlah_panjar-$harini_panjar;
|
||||
$update_PanjarAM=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
|
||||
$debit_panjar=$debit_panjar+$request->bayaran;
|
||||
$harini_panjar=$debit_panjar-$kredit_panjar;
|
||||
$kelmarin_panjar=$jumlah_panjar-$harini_panjar;
|
||||
$update_PanjarAM=Http::put(config('api.url').'/api/kemasKiniGlejer/'.$auth_user['cawangan'],[
|
||||
'recno'=>$recno_panjar,
|
||||
'debit'=>$debit_panjar,
|
||||
'kredit'=>$kredit_panjar,
|
||||
@@ -1762,6 +1763,19 @@ class KhazanahController extends Controller
|
||||
|
||||
if($upVault == 200 && empty($panjar) == false && $upDeno == 200)
|
||||
{
|
||||
if($request->jenismodal === 'perubatan')
|
||||
{
|
||||
$listUser=User::where('name','=',$request->tuntutan)->get();
|
||||
|
||||
$totalsebenar = floatval($listUser[0]->perubatan) - floatval($request->bayaran);
|
||||
|
||||
$overrideuser = User::where('cawangan','=',$auth_user['cawangan'])
|
||||
->where('name','=',$request->tuntutan)
|
||||
->update(array(
|
||||
'perubatan' => $totalsebenar
|
||||
));
|
||||
}
|
||||
|
||||
return redirect('/panjar')->with('messageinformation','Panjar Berjaya Disimpan.');
|
||||
}else{
|
||||
return redirect('/panjar')->with('messageinformation','Panjar Mengalami Masalah Untuk Disimpan.');
|
||||
@@ -2963,7 +2977,7 @@ class KhazanahController extends Controller
|
||||
$split_date = explode('-',$request->datetimepicker1);
|
||||
$tebus_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
|
||||
}
|
||||
$marhun = Http::get(config('api.url'). '/api/gadai/laporan/ringkasan/'. $auth_user['cawangan'] .'/'. $tebus_date)->json();
|
||||
$marhun = Http::get(config('api.url'). '/api/gadai/laporan/ringkasan/'. $auth_user['cawangan'],['tarikh' => $tebus_date])->json();
|
||||
$marhun = $marhun[0];
|
||||
|
||||
$keseluruhanupahsimpan = $marhun['lelongupahsimpan'] + $marhun['tebus'][0]['upahsimpan'] + $marhun['advansur'][0]['upahsimpan'];
|
||||
@@ -3811,33 +3825,58 @@ class KhazanahController extends Controller
|
||||
|
||||
$kodnegeridandaerah = $request->negeriagh .'|' . $request->daerahagh;
|
||||
|
||||
$daftarpolis = Http::post(config('api.url').'/api/polis/create/',[
|
||||
$polis = Http::get(config('api.url').'/api/polis/get/',['norujukan' => $request->norujukanhidden,'kodcaw' => $auth_user['cawangan']])->json();
|
||||
|
||||
'kodcaw' =>$auth_user['cawangan'],
|
||||
'norujukan' => $request->norujukanhidden,
|
||||
'komen1' => $request->alasan,
|
||||
'komen2' => $kodnegeridandaerah,
|
||||
'tebus' => 0,
|
||||
'teller' => $auth_user['name'],
|
||||
'caj' => 0.00
|
||||
$daftar = 0;
|
||||
if(sizeof($polis) > 0)
|
||||
{
|
||||
event(new NotifikasiAGH($auth_user['cawangan'],'Tak boleh generate dah kerana sudah digenerate dah.','error',$auth_user['name']));
|
||||
$daftar = 400;
|
||||
}else{
|
||||
$daftarpolis = Http::post(config('api.url').'/api/polis/create/',[
|
||||
|
||||
]);
|
||||
|
||||
|
||||
$daftar = $daftarpolis->getStatusCode();
|
||||
'kodcaw' =>$auth_user['cawangan'],
|
||||
'norujukan' => $request->norujukanhidden,
|
||||
'komen1' => $request->alasan,
|
||||
'komen2' => $kodnegeridandaerah,
|
||||
'tebus' => 0,
|
||||
'teller' => $auth_user['name'],
|
||||
'caj' => 0.00
|
||||
|
||||
]);
|
||||
|
||||
$daftar = $daftarpolis->getStatusCode();
|
||||
}
|
||||
|
||||
if($daftar == 200)
|
||||
{
|
||||
$polis = Http::get(config('api.url').'/api/polis/get/',['norujukan' => $request->norujukanhidden,'kodcaw' => $auth_user['cawangan']])->json();
|
||||
|
||||
event(new NotifikasiAGH($auth_user['cawangan'],'Surat Akuan Gadaian Hilang berjaya dijana.','success',$auth_user['name']));
|
||||
// return redirect()->route('khazanah.customer_info')->with('aghinformation','Surat Akuan Gadaian Hilang berjaya dijana.|success');
|
||||
return view('print.suratgadaianhilang', compact('polis','gadai','customers','cawangan_detail','api_url'));
|
||||
|
||||
}else{
|
||||
return redirect()->route('khazanah.customer_info')->with('aghinformation','Mengalami Masalah dalam menjana.|error');
|
||||
|
||||
event(new NotifikasiAGH($auth_user['cawangan'],'Mengalami masalah dalam menjana.','error',$auth_user['name']));
|
||||
// return redirect()->route('khazanah.customer_info')->with('aghinformation','Mengalami masalah dalam menjana.|error');
|
||||
}
|
||||
|
||||
return response($daftarpolis);
|
||||
}
|
||||
|
||||
public function cetakSuratAkuanGadaianHilang(Request $request)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$cawangan = Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
|
||||
|
||||
|
||||
return view('print.suratgadaianhilang', compact('polis','gadai','customers','cawangan_detail','api_url'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -7,24 +7,6 @@
|
||||
@include('modal.agh')
|
||||
|
||||
|
||||
@if(Session::has('aghinformation'))
|
||||
@php list($message, $type) = explode('|', Session::get('aghinformation')); @endphp
|
||||
<script> Swal.fire({
|
||||
icon: '{{ $type }}',
|
||||
title: 'Status!',
|
||||
text: '{{ $message }}'
|
||||
}).then(function(){
|
||||
|
||||
var type = '{{ $type }}';
|
||||
urlroute = var urlroute = '{{ route("resit.ansurans", ":id") }}';
|
||||
|
||||
if(type === 'success')
|
||||
window.open(urlroute, '_blank');
|
||||
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12 col-lg-12">
|
||||
@@ -425,6 +407,35 @@
|
||||
<script>
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "{{ $cawangan_info['kodcaw'] }}";
|
||||
var ppc = "{{ Auth::user()->name }}";
|
||||
|
||||
//Pusher for AGH
|
||||
|
||||
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
|
||||
cluster: 'ap1',
|
||||
encrypted: true
|
||||
});
|
||||
|
||||
var channel = pusher.subscribe('notice-agh');
|
||||
channel.bind('my-agh', function(data) {
|
||||
|
||||
if(data.kodcaw.toUpperCase() === kodcaw.toUpperCase() && data.pc.toUpperCase() === ppc.toUpperCase())
|
||||
{
|
||||
Swal.fire({
|
||||
icon: data.typeerror,
|
||||
title: data.message
|
||||
}).then(function(){
|
||||
$('#AGHModal').hide();
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
//End Pusher for AGH
|
||||
|
||||
|
||||
|
||||
var tablegadai = $('#myTable').DataTable({
|
||||
"scrollX": true
|
||||
@@ -543,6 +554,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
function checkAGH()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function checktuntutbaki(e)
|
||||
{
|
||||
let tarikhtuntut = $(e).data('tarikhtuntut');
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
<button class="btn btn-primary btn-lg btn-block" data-toggle="modal" data-target="#PerubatanModal" data-backdrop="static" data-keyboard="false">Perubatan</button>
|
||||
<button class="btn btn-primary btn-lg btn-block" data-toggle="modal" data-target="#DapurModal" data-backdrop="static" data-keyboard="false">Dapur</button>
|
||||
<button class="btn btn-primary btn-lg btn-block" data-toggle="modal" data-target="#PosModal" data-backdrop="static" data-keyboard="false">Pos</button>
|
||||
|
||||
<button class="btn btn-primary btn-lg btn-block mt-5" data-toggle="modal" data-target="#BakiPerubatanModal" data-backdrop="static" data-keyboard="false">Baki Perubatan</button>
|
||||
</div>
|
||||
<div class="col-9">
|
||||
<table class='table table-striped table-hover' id='table-panjar' style="width:100%;">
|
||||
@@ -113,7 +115,11 @@
|
||||
|
||||
var tablepanjar = $('#table-panjar').DataTable({
|
||||
"scrollX": true
|
||||
});
|
||||
});
|
||||
|
||||
var tablebakiperubatan = $('#table-bakiperubatan').DataTable({
|
||||
// "scrollX": true
|
||||
});
|
||||
|
||||
$(document).ready( function () {
|
||||
|
||||
@@ -214,12 +220,12 @@
|
||||
let baucer = $(formdata).find("[name='baucer']").val();
|
||||
let tarikh = $(formdata).find("[name='tarikh']").val();
|
||||
// let tuntutan = $(formdata).find("[name='tuntutan']").val();
|
||||
let tarikhbil = $(formdata).find("[name='bil']").val();
|
||||
let tarikhbil = $(formdata).find("[name='tarikhbil']").val();
|
||||
let deskripsi = $(formdata).find("[name='deskripsi']").val();
|
||||
let bayaran = $(formdata).find("[name='bayaran']").val();
|
||||
|
||||
|
||||
let booltarikh = false;let booltuntutan = false; let booltarikhbil = false; let booldeskripsi = false; let boolbayaran = false;
|
||||
let booltarikh = true; let booltarikhbil = true; let booldeskripsi = true; let boolbayaran = true;
|
||||
|
||||
if(!tarikh)
|
||||
{
|
||||
@@ -228,6 +234,12 @@
|
||||
$(formdata).find("[name='tarikh']").addClass('is-invalid');
|
||||
$(formdata).find("[name='tarikh']").parent().removeClass("mb-4");
|
||||
|
||||
booltarikh = false;
|
||||
}else{
|
||||
$(formdata).find("[name='errortarikh']").hide();
|
||||
$(formdata).find("[name='tarikh']").removeClass('is-invalid');
|
||||
$(formdata).find("[name='tarikh']").parent().addClass("mb-4");
|
||||
|
||||
booltarikh = true;
|
||||
}
|
||||
|
||||
@@ -238,8 +250,14 @@
|
||||
$(formdata).find("[name='tarikhbil']").addClass('is-invalid');
|
||||
$(formdata).find("[name='tarikhbil']").parent().removeClass("mb-4");
|
||||
|
||||
booltarikhbil = true;
|
||||
booltarikhbil = false;
|
||||
|
||||
}else{
|
||||
$(formdata).find("[name='errorbil']").hide();
|
||||
$(formdata).find("[name='tarikhbil']").removeClass('is-invalid');
|
||||
$(formdata).find("[name='tarikhbil']").parent().addClass("mb-4");
|
||||
|
||||
booltarikhbil = true;
|
||||
}
|
||||
|
||||
if(!$.trim(deskripsi))
|
||||
@@ -249,6 +267,12 @@
|
||||
$(formdata).find("[name='deskripsi']").addClass('is-invalid');
|
||||
$(formdata).find("[name='deskripsi']").parent().removeClass("mb-4");
|
||||
|
||||
booldeskripsi = false;
|
||||
}else{
|
||||
$(formdata).find("[name='errordeskripsi']").hide();
|
||||
$(formdata).find("[name='deskripsi']").removeClass('is-invalid');
|
||||
$(formdata).find("[name='deskripsi']").parent().addClass("mb-4");
|
||||
|
||||
booldeskripsi = true;
|
||||
}
|
||||
|
||||
@@ -259,8 +283,13 @@
|
||||
$(formdata).find("[name='bayaran']").addClass('is-invalid');
|
||||
$(formdata).find("[name='bayaran']").parent().removeClass("mb-4");
|
||||
|
||||
boolbayaran = true;
|
||||
boolbayaran = false;
|
||||
}else{
|
||||
$(formdata).find("[name='errorbayaran']").hide();
|
||||
$(formdata).find("[name='bayaran']").removeClass('is-invalid');
|
||||
$(formdata).find("[name='bayaran']").parent().addClass("mb-4");
|
||||
|
||||
boolbayaran = true;
|
||||
}
|
||||
|
||||
let errorbaucer = $(formdata).find("[name='errorbaucer']").text();
|
||||
@@ -269,14 +298,14 @@
|
||||
let errortarikhbil = $(formdata).find("[name='errorbil']").text();
|
||||
let errordeskripsi = $(formdata).find("[name='errordeskripsi']").text();
|
||||
let errorbayaran = $(formdata).find("[name='errorbayaran']").text();
|
||||
|
||||
|
||||
|
||||
if(booltarikh === true && booltarikhbil === true && booldeskripsi === true && boolbayaran === true)
|
||||
{
|
||||
return true;
|
||||
}else{
|
||||
|
||||
event.preventDefault();
|
||||
return;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!-- Modal HistoryBayaran -->
|
||||
<div class="modal fade" id="AGHModal" tabindex="-1" role="dialog" aria-labelledby="ModalCenterTitle" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title text-center" id="ModalTitle">Surat Akuan Gadaian Hilang</h5>
|
||||
@@ -11,13 +11,14 @@
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="container">
|
||||
<form name="frmagh" target="_blank" action="{{ route('agh.create') }}" method="POST">
|
||||
<form name="frmagh" target="_blank" action="{{ route('agh.create') }}" onsubmit="return checkAGH();" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="norujukanhidden" id="norujukanhidden"/>
|
||||
<div class="col-12 row">
|
||||
<div class="col-3"><label class="mt-1">Jenis Alasan :</label></div>
|
||||
<div class="col-6">
|
||||
<div class="col-5"><label class="mt-1">Jenis Alasan :</label></div>
|
||||
<div class="col-7">
|
||||
<select name="alasan" id="alasan" class="form-control">
|
||||
<option value="Simpanan">Simpanan</option>
|
||||
<option value="Bencana alam">Bencana alam</option>
|
||||
<option value="Kecurian">Kecurian</option>
|
||||
<option value="Di Ragut">Di Ragut</option>
|
||||
@@ -28,8 +29,8 @@
|
||||
</div>
|
||||
|
||||
<div class="col-12 row mt-2">
|
||||
<div class="col-3"><label class="mt-1">Negeri :</label></div>
|
||||
<div class="col-6">
|
||||
<div class="col-5"><label class="mt-1">Negeri :</label></div>
|
||||
<div class="col-7">
|
||||
<select name="negeriagh" id="negeriagh" class="form-control">
|
||||
@foreach($negeri as $neg)
|
||||
<option value="{{ $neg['kodnegeri'] }}">{{ $neg['negeri'] }}</option>
|
||||
@@ -40,10 +41,10 @@
|
||||
|
||||
|
||||
<div class="col-12 row mt-2">
|
||||
<div class="col-3"><label class="mt-1">Daerah :</label></div>
|
||||
<div class="col-6">
|
||||
<div class="col-5"><label class="mt-1">Daerah :</label></div>
|
||||
<div class="col-7">
|
||||
<select name="daerahagh" id="daerahagh" class="form-control" disabled>
|
||||
<option value="No Data">No data</option>
|
||||
<option value="No Data">Sila Pilih Negeri *</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -53,8 +54,8 @@
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button>
|
||||
<button type="submit" class="btn btn-success btn-lg">Submit</button>
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
|
||||
<button type="submit" class="btn btn-success">Hantar</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -529,6 +529,47 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Modal Baki Perubatan -->
|
||||
<div class="modal fade" id="BakiPerubatanModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLongTitle">Perbelanjaan Pos</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body text-center">
|
||||
|
||||
<table class='table table-striped table-hover' id='table-bakiperubatan' style="width:100%;">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>bil</th>
|
||||
<th>Nama Staff</th>
|
||||
<th>Baki Perubatan(RM)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($usercawangan as $index1=>$usercaw)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $usercaw->name }}</td>
|
||||
<td>{{ number_format($usercaw->perubatan,2) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -896,6 +896,34 @@
|
||||
{
|
||||
$("#terima_transaksi").prop('disabled', true);
|
||||
if($('#sltjenistebus').find(":selected").val() == 'T'){
|
||||
|
||||
var adadah = false;
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
datatype: 'json',
|
||||
url: api + '/api/listpenebusanhistory/' + kodcaw,
|
||||
async:false,
|
||||
data: { 'norujukan' : norujukan },
|
||||
success:function(success_data){
|
||||
var count = Object.keys(success_data).length;
|
||||
|
||||
if(count > 0)
|
||||
{
|
||||
console.log(count);
|
||||
Swal.fire('Amaran!','Tebus sudah dibuat sila tekan butang batal!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
adadah = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(adadah === true)
|
||||
{
|
||||
return false;
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
let jenisbayarantebus = '';
|
||||
if(hargajualan == '')
|
||||
{
|
||||
|
||||
@@ -410,7 +410,7 @@ hr.new5 {
|
||||
<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>
|
||||
<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>
|
||||
@@ -432,7 +432,7 @@ hr.new5 {
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -379,12 +379,9 @@ hr.new5 {
|
||||
|
||||
<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 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">
|
||||
@@ -405,7 +402,7 @@ hr.new5 {
|
||||
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> No SAG</td><td>: {{ $transaction['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($transaction['created_at']); $date = $time->format('d/m/y'); echo $date; @endphp</td>
|
||||
<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>
|
||||
@@ -427,7 +424,7 @@ hr.new5 {
|
||||
<table id="payment">
|
||||
|
||||
<tr>
|
||||
<td style="width:10px"> Tarikh Bayaran</td><td style="width:5px"> </td><td style="width:10px">: @php $time = new DateTime($transaction['created_at']); $date = $time->format('d/m/y'); echo $date; @endphp</td>
|
||||
<td style="width:10px"> Tarikh Bayaran</td><td style="width:5px"> </td><td style="width:10px">: @php $time = new DateTime($transaction['created_at']); $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(($transaction['bakiharga'] + $transaction['duit_masuk']),2) }} </td>
|
||||
|
||||
@@ -405,7 +405,7 @@ hr.new5 {
|
||||
<td colspan="3">Marhun</td> <td>: {{ $gadai['marhun'] }} </td> <td colspan="3"> </td> <td> </td><td> </td><td> No SAG</td><td>: {{ $penebusan['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>
|
||||
<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>
|
||||
@@ -427,7 +427,7 @@ hr.new5 {
|
||||
<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>
|
||||
<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['pinjaman'],2) }} </td>
|
||||
|
||||
@@ -405,7 +405,7 @@ hr.new5 {
|
||||
<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>
|
||||
<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>
|
||||
@@ -427,7 +427,7 @@ hr.new5 {
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -381,6 +381,7 @@ hr.new5 {
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
@@ -406,7 +407,7 @@ hr.new5 {
|
||||
<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>
|
||||
<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>
|
||||
@@ -428,7 +429,7 @@ hr.new5 {
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -398,7 +398,7 @@ hr.new5 {
|
||||
<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>
|
||||
<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>
|
||||
@@ -421,7 +421,7 @@ hr.new5 {
|
||||
<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>
|
||||
<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['pinjaman']),2) }} </td>
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Surat Akuan Gadaian</title>
|
||||
<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>
|
||||
table #details,
|
||||
th,
|
||||
@@ -17,8 +24,8 @@
|
||||
</head>
|
||||
<body>
|
||||
<br>
|
||||
<p style="text-align: center;margin: 0;"><strong>SURAT AKUAN BERKANUN</strong></p>
|
||||
<br><br>
|
||||
<p style="text-align: center;margin: 0;"><strong><u>AKUAN BERKANUN</u></strong></p>
|
||||
<br>
|
||||
|
||||
@php
|
||||
$poskod = Http::get($api_url . '/api/poskod/' . $customers[0]['poskod'])->json();
|
||||
@@ -26,30 +33,37 @@
|
||||
$daerah = Http::get($api_url . '/api/daerah/' . $poskod['koddaerah'])->json();
|
||||
|
||||
@endphp
|
||||
<p style=" text-align: justify;text-justify: inter-word;line-height: 1.6;">Saya {{ $customers[0]['nama'] }}, No. K/P : {{ $gadai[0][0]['nokp'] }} yang beralamat di {{ $customers[0]['alamat1'] . ', ' . $customers[0]['poskod'] . ', ' . $daerah['namadaerah'] . ', ' . $negeri['negeri'] }} dengan sesungguhnya dan sebenarnya mengaku bahawa: -</p>
|
||||
<p style=" text-align: justify;text-justify: inter-word;line-height: 1.6;">Saya, <b style="color:#bdc3c7;">{{ $customers[0]['nama'] }}</b>, No. K/P : <b style="color:#bdc3c7;">@php $satu = substr($gadai[0][0]['nokp'],0,6); $dua = substr($gadai[0][0]['nokp'],6,2);$ketiga = substr($gadai[0][0]['nokp'],8); echo $satu . '-' . $dua . '-' . $ketiga; @endphp</b> yang beralamat di <b style="color:#bdc3c7;">{{ strtoupper($customers[0]['alamat1']) . ', ' . $customers[0]['poskod'] . ', ' . strtoupper($daerah['namadaerah']) . ', ' . strtoupper($negeri['negeri']) }}</b> dengan sesungguhnya dan sebenarnya mengaku bahawa: -</p>
|
||||
|
||||
<ol>
|
||||
<li style=" text-align: justify;text-justify: inter-word;line-height: 1.6;">Surat Gadaian {{$cawangan_detail['namacaw']}} kepunyaan saya telah hilang dalam simpanan kerana <b>{{ $polis[0]['komen1'] }}</b>. Saya telah sedaya upaya berusaha mencari surat tersebut tetapi gagal menemuinya. Saya juga mengaku bahawa tidak pernah menjual atau menggadai surat tersebut kepada mana-mana institusi kewangan.</li>
|
||||
<li style=" text-align: justify;text-justify: inter-word;line-height: 1.6;"><b>Surat Gadaian Ar-Rahn Cawangan <span style="color:#bdc3c7;">@php $namacawangan = substr($cawangan_detail['namacaw'],7); $rendoh = strtolower($namacawangan);echo ucwords($rendoh); @endphp</span></b> kepunyaan saya telah hilang dalam simpanan @php (strtoupper($polis[0]['komen']) == 'SIMPANAN') ? echo '.'; : echo 'kerana <b style="color:#bdc3c7;">' . $polis[0]['komen1'] . '</b>.'; @endphp Saya telah sedaya upaya berusaha mencari surat tersebut tetapi gagal menemuinya. Saya juga mengaku bahawa tidak pernah menjual atau menggadai surat tersebut kepada mana-mana institusi kewangan.</li>
|
||||
</ol>
|
||||
<ol start="2">
|
||||
<li>Butir-butir mengenai kehilangan tersebut adalah seperti berikut: -</li>
|
||||
<li>Butir-butir mengenai kehilangan surat gadaian tersebut adalah seperti berikut: -</li>
|
||||
</ol>
|
||||
<p> </p>
|
||||
<table style="margin-left: auto;margin-right: auto;" width="70%">
|
||||
<table style="margin-left: auto;margin-right: auto;" width="60%">
|
||||
<tr>
|
||||
<td style="text-align: center;">Tarikh Aduan</td>
|
||||
<td style="text-align: center;">Tarikh SAG</td>
|
||||
<td style="text-align: center;">No.Rujukan</td>
|
||||
<td style="text-align: left;" width="40%;">No. Rujukan</td>
|
||||
<td style="text-align: center;" width="20%;">:</td>
|
||||
<td style="text-align: left;color:#bdc3c7;font-weight:bold;" width="50%;">{{ $polis[0]['norujukan'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;">{{ $polis[0]['tarikh'] }}</td>
|
||||
<td style="text-align: center;">{{$gadai[0][0]['t_gadai']}}</td>
|
||||
<td style="text-align: center;">{{ $polis[0]['norujukan'] }}</td>
|
||||
<td style="text-align: left;">Berat</td>
|
||||
<td style="text-align: center;" width="20%;">:</td>
|
||||
<td style="text-align: left;color:#bdc3c7;font-weight:bold;" width="50%;">{{ $gadai[0][0]['berat'] }} gm</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">Pembiayaan</td>
|
||||
<td style="text-align: center;" width="20%;">:</td>
|
||||
<td style="text-align: left;color:#bdc3c7;font-weight:bold;" width="50%;">RM {{ $gadai[0][0]['pinjaman'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">Tarikh Gadaian</td>
|
||||
<td style="text-align: center;" width="20%;">:</td>
|
||||
<td style="text-align: left;color:#bdc3c7;font-weight:bold;" width="50%;">@php $time = new DateTime($gadai[0][0]['t_gadai']); $date = $time->format('d/m/Y'); echo $date; @endphp</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p style=" text-align: justify;text-justify: inter-word;">Dan saya membuat akuan ini dengan kepercayaan bahwa akuan ini adalah benar, serta menurut peruntukan Akta Akuan Berkanun 1960.</p>
|
||||
<p style=" text-align: justify;text-justify: inter-word;">dan saya membuat akuan ini dengan kepercayaan bahwa akuan ini adalah benar, dan menurut kuasa peruntukan Akta Akuan Berkanun 1960.</p>
|
||||
<p> </p>
|
||||
<table>
|
||||
<tr>
|
||||
@@ -58,12 +72,12 @@
|
||||
<td width="40%;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Oleh yang tersebut namanya di atas iaitu-</td>
|
||||
<td>oleh yang tersebut namanya di atas-</td>
|
||||
<td class="tableright">)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $customers[0]['nama'] }}</td>
|
||||
<td style="font-weight: bold;color:#bdc3c7;">{{ $customers[0]['nama'] }}</td>
|
||||
<td class="tableright">)</td>
|
||||
<td style="text-align: right;">........................................................</td>
|
||||
</tr>
|
||||
@@ -74,26 +88,28 @@
|
||||
|
||||
@endphp
|
||||
<tr>
|
||||
<td>DI {{ $daerah['namadaerah'] }}- </td>
|
||||
<td>di <b style="color:#bdc3c7;">{{ strtoupper($daerah['namadaerah']) }} </b> </td>
|
||||
<td class="tableright">)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Negeri {{ $negeri['negeri'] }}</td>
|
||||
<td>di dalam Negeri <b style="color:#bdc3c7;">{{ $negeri['negeri'] }}</b></td>
|
||||
<td class="tableright">)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Pada........................................................</td>
|
||||
<td>pada</td>
|
||||
<td class="tableright">)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br><br><br><br>
|
||||
<br><br><br>
|
||||
<p style="text-align: center;margin: 0;">Di Hadapan Saya,</p>
|
||||
<br><br><br><br>
|
||||
<p style="text-align: center;margin: 0;">..................................................................................</p>
|
||||
<p style="text-align: center;margin: 0;">( Tandatangan Hakim Mahkamah Seksyen,</p>
|
||||
<p style="text-align: center;margin: 0;">Majistret atau Pesuruhjaya Sumpah )</p>
|
||||
<br><br><br>
|
||||
<p style="text-align: center;margin: 0;">..................................................</p>
|
||||
<p style="text-align: center;margin: 0;">( Tandatangan Hakim</p>
|
||||
<p style="text-align: center;margin: 0;"> Mahkamah Seksyen, Majistret,</p>
|
||||
<p style="text-align: center;margin: 0;">Pesuruhjaya Sumpah</p>
|
||||
<p style="text-align: center;margin: 0;">atau Notari Awam )</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user