Merge branch 'pipiv2' into 'new-master'

laporan fix and sistem baki tuntut

See merge request online-sistem1/kaunter!130
This commit is contained in:
hafifie rahman
2021-05-23 02:22:36 +00:00
19 changed files with 1340 additions and 28 deletions
@@ -108,7 +108,7 @@ class AliranTunaiController extends Controller
$tuntutbaki = Http::get(config('api.url').'/api/TuntutBaki/'.$auth_user['cawangan'])->json();
$requestkodlaluan = Http::get(config('api.url').'/api/get/pengguna/'.$auth_user['cawangan'],["namateller" => Auth::user()->name ])->json();
$advansur = Http::get(config('api.url').'/api/AnsuranByTarikh/'.$auth_user['cawangan'],['kodlaluan' => $requestkodlaluan[0]['kodlaluan']])->json();
$advansur = Http::get(config('api.url').'/api/AnsuranByTarikh/'.$auth_user['cawangan'],['kodlaluan' => Auth::user()->name ])->json();
// dd($advansur);
//******************* INITIALIZE LEJER AM START HERE****************************//
@@ -1517,8 +1517,8 @@ class AliranTunaiController extends Controller
}
$penebusan = floatval($totaltebus) + floatval($totalansuran) + floatval($totalupahlama);
$penebusanbarcodescanned = floatval($totaltebusbarcodescanned) + floatval($totalansuran) + floatval($totalupahlama) + $rugilelong;
$gadaian = floatval($totalgadai) + $bakilelong;
$penebusanbarcodescanned = floatval($totaltebusbarcodescanned) + floatval($totalansuran) + floatval($totalupahlama);
$gadaian = floatval($totalgadai);
$bakisemasa = floatval($bakiawal) + floatval($totalpendahuluan) + floatval($penebusan) - (floatval($gadaian) + floatval($totalserahan)) - floatval($totaltuntutbaki);
+87 -3
View File
@@ -84,10 +84,12 @@ class KhazanahController extends Controller
$bakilelong = Http::get(config('api.url') . '/api/bakilelong/cawangan/' . $auth_user['cawangan'] . '/' . Session::get('noic') . '/baki')->json();
$rugilelong = Http::get(config('api.url') . '/api/bakilelong/cawangan/' . $auth_user['cawangan'] . '/' . Session::get('noic') . '/rugi')->json();
$negeri = Http::get(config('api.url') . '/api/negeri/')->json();
$request->session()->forget('page_reload');
$request->session()->forget('norujukan');
return view('khazanah.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong'));
return view('khazanah.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','negeri'));
}
public function menu()
@@ -2942,7 +2944,7 @@ class KhazanahController extends Controller
$totalpinjhapuskirasehari = $kawalanstok[3]['hapuskiraini1'][0]['pinj'] + $kawalanstok[3]['hapuskiraini2'][0]['pinj'] + $kawalanstok[3]['hapuskiraini3'][0]['pinj'];
$totalpinjhapuskira = $totalpinjhapuskirakeseluruhan + $totalpinjhapuskirasehari;
$totalbilkawalanstok = $totalbilgadai-$totalbiltebus-$totalbilans-$totalbillelong-$totalbilhapuskira;
$totalbilkawalanstok = $totalbilgadai-$totalbiltebus/*-$totalbilans*/-$totalbillelong-$totalbilhapuskira;
$totalpinjkawalanstok = $totalpinjgadai-$totalpinjtebus-$totalpinjans-$totalpinjlelong-$totalpinjhapuskira;
return view('print.laporan_ringkasanharian', compact('cawangan_detail','tarikh_cetak','ringkasan_date','api_url','laporan','totalbilkawalanstok','totalpinjkawalanstok'));
@@ -3393,6 +3395,7 @@ class KhazanahController extends Controller
$cajlelong = Http::get(config('api.url').'/api/cajlelong/' . $auth_user['cawangan'],['tarikh' => $tarikh_imbangan2])->json();
$keuntungansebenar = Http::get(config('api.url').'/api/KeuntunganSebenar/' . $auth_user['cawangan'],['tarikh' => $tarikh_imbangan2])->json();
$cajperkhidmatan = Http::get(config('api.url').'/api/cajperkhidmatanterkumpul/' . $auth_user['cawangan'],['tarikh' => $tarikh_imbangan2])->json();
$hapuskira = Http::get(config('api.url').'/api/CalculationHapusKira/' . $auth_user['cawangan'],['tarikh' => $tarikh_imbangan2])->json();
//TunaiDitangan Sementara Upah
if($tarikh_imbangan2 > '2021-04-22' && $tarikh_imbangan2 < '2021-05-05' && $cawangan_detail['kodcaw'] == 'KB2')
@@ -3466,6 +3469,7 @@ class KhazanahController extends Controller
if($rugilelongxtra > 0) array_push($tanggungansemasa,['glcode' => '7000/191','descpt' => 'Rugi Lelong Xtra','amaun' => -$rugilelongxtra]);
if($utgterkumpulxtra > 0) array_push($tanggungansemasa,['glcode' => '7000/201','descpt' => 'Untung/Rugi Terkumpul Xtra','amaun' => $utgterkumpulxtra]);
if($jualan1stop > 0) array_push($tanggungansemasa,['glcode' => '9000/501','descpt' => 'Jualan 1 Stop','amaun' => $jualan1stop]);
if($hapuskira > 0) array_push($tanggungansemasa,['glcode' => '3000/011','descpt' => 'Hapus Kira','amaun' => -$hapuskira]);
$totaltanggungansemasa = 0;
@@ -3682,6 +3686,40 @@ class KhazanahController extends Controller
}
public function laporan_tuntutbaki(Request $request)
{
$auth_user = Auth::user();
$api_url = config('api.url');
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
return view('khazanah.laporan.tuntutbaki', compact('cawangan_info','api_url'));
}
public function cetaklaporan_tuntutbaki(Request $request){
$api_url = config('api.url');
$auth_user = Auth::user();
$current = Carbon::now();
$current = new Carbon();
$tarikh_cetak = $current->toDateString();
if($request->datetimepicker1 == null){
$gadai_date = $current->toDateString();
}else{
$split_date = explode('-',$request->datetimepicker1);
$gadai_date = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
}
$tuntutbaki = Http::get(config('api.url'). '/api/TuntutBaki/'. $auth_user['cawangan'] ,['tarikh' => $gadai_date])->json();
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
$cawangan_detail=$cawangan[0];
return view('print.laporan_tuntutbaki', compact('tuntutbaki','cawangan_detail','tarikh_cetak','gadai_date','api_url'));
}
public function laporan_Perbelanjaan(Request $request)
{
@@ -3739,6 +3777,8 @@ class KhazanahController extends Controller
return view('print.laporan_perbelanjaan_baucer', compact('perbelanjaan','cawangan_detail','tarikh_cetak','api_url'));
}
public function RequestPembatalan(Request $request)
{
@@ -3746,7 +3786,7 @@ class KhazanahController extends Controller
$nombor = $request->no;
$kodlaluan = $request->kodlaluan;
$updatebatal=Http::put(config('api.url').'/api/requestTeller/batal/'.$kodcaw,[
$updatebatal = Http::put(config('api.url').'/api/requestTeller/batal/'.$kodcaw,[
'no'=>$nombor,
'kodlaluan'=>$kodlaluan
]);
@@ -3756,4 +3796,48 @@ class KhazanahController extends Controller
return response('Berjaya');
}
public function SuratAkuanGadaian(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];
$gadai = Http::get(config('api.url').'/api/gadai/norujukan/'.$request->norujukanhidden)->json();
foreach($gadai as $index1=>$gad)
$customers = Http::get(config('api.url').'/api/customers/'.$gad[0]['nokp'])->json();
$kodnegeridandaerah = $request->negeriagh .'|' . $request->daerahagh;
$daftarpolis = Http::post(config('api.url').'/api/polis/create/',[
'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();
// 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');
}
return response($daftarpolis);
}
}
@@ -93,12 +93,10 @@ class LelongController extends Controller
if($request->jenis == 'T'){
$bakiakhir -= $request->jumlah;
$keluar += $request->jumlah;
}
else
{
$bakiakhir += -($request->jumlah);
$masuk += -($request->jumlah);
}
//masuk dalam tunai aliran
+10 -1
View File
@@ -197,7 +197,7 @@
</div>
<div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab">
<table class="table table-striped table-hover text-center" id="tabletuntutbaki">
<table class="table table-striped table-hover text-center" id="tabletuntutbaki">
<thead class="thead-dark">
<tr>
<th>Bil</th>
@@ -209,7 +209,9 @@
</thead>
<tbody>
@if(is_object($tuntutbaki) || is_array($tuntutbaki))
@php $totaltuntutbaki = 0; $totalcajlelong = 0; @endphp
@foreach($tuntutbaki as $tb)
@php $totaltuntutbaki += $tb['jumlah'];$totalcajlelong += $tb['cajlelong']; @endphp
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $tb['tarikh'] }} </td>
@@ -224,6 +226,13 @@
</tr>
@endforeach
@endif
<tfoot class="table-dark">
<td colspan='2' class=" font-weight-bold">JUMLAH</td>
<td>{{ number_format($totalcajlelong,2)}}</td>
<td>{{ number_format($totaltuntutbaki,2)}}</td>
<td></td>
</tfoot>
</tbody>
</table>
+175 -9
View File
@@ -477,26 +477,192 @@
function checkserah(data){
var urlpenebusan = $(data).data("url");
var norujukan = $(data).data("norujukan");
$.ajax({
method:'get',
url: api_url + '/api/check/serah/gadai',
url: api_url + '/api/polis/get/',
datatype:'json',
data:{
'kodcaw': "{{ $cawangan_info['kodcaw'] }}",
'norujukan': norujukan
},
success:function(data){
if(data == 'true'){
window.location = urlpenebusan;
}else if(data == 'false'){
Swal.fire({
icon: 'error',
title: 'Amaran',
text: 'Gadaian Belum Scan Barcode'
});
var count = Object.keys(data).length;
if(count > 0)
{
if(data[0].tebus === 0)
{
const swalWithBootstrapButtons = Swal.mixin({
customClass: {
confirmButton: 'btn btn-success',
cancelButton: 'btn btn-danger mr-1'
},
buttonsStyling: false
});
swalWithBootstrapButtons.fire({
title: 'Dapatkan Pengesahan Khazanah',
text: "Surat Akuan Gadaian Hilang!",
icon: 'info',
showCancelButton: true,
confirmButtonText: 'Hantar',
cancelButtonText: 'Batal',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
let komen = "Surat Akuan Gadaian Hilang|" + '-' + "|" + '-' + "|" + '-' + "| Tambah Pinjaman";
let teller = "{{ Auth::user()->name }}";
Swal.fire({
title: 'Tunggu Pengesahan Daripada Khazanah.',
icon: 'info',
width: 600,
padding: '3em',
background: '#fffff',
showCancelButton: false,
showConfirmButton: false,
allowOutsideClick: false,
allowEscapeKey: false,
allowEnterKey: false
})
let siricreated = 0;
$.ajax({
method:'post',
url: "{{ route('khazanah.createkelulusan') }}",
data: {
"_token": "{{ csrf_token() }}",
"norujukan" : norujukan,
"komen" : komen,
"jumpinjam" : '0.00',
"teller" : teller
},
success:function(data){
siricreated = data;
},
error: function(xhr, status, error) {
var err = eval("(" + xhr.responseText + ")");
alert(xhr.responseText);
}
});
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
cluster: 'ap1',
encrypted: true
});
var channel = pusher.subscribe('notice-kelulusan');
channel.bind('my-kelulusan', function(data) {
if(data.norujukan == norujukan && data.siri == siricreated)
{
if(data.kelulusan == 'lulus')
{
Swal.fire({
icon: 'success',
title: 'Telah Disahkan'
}).then(function(){
$.ajax({
method:'put',
url: api_url + '/api/polis/put/',
data: {
'kodcaw': "{{ $cawangan_info['kodcaw'] }}",
'norujukan': norujukan,
'tebus' : 1
},
success:function(data){
location.reload();
},
error: function(xhr, status, error) {
var err = eval("(" + xhr.responseText + ")");
alert(xhr.responseText);
}
});
});
}
else if(data.kelulusan == 'batal')
{
Swal.fire({
icon: 'warning',
title: 'Telah Dibatalkan',
text: `Komen : ${data.komen}`
}).then(function(){
return false;
});
}
}
});
}
else if (result.dismiss === Swal.DismissReason.cancel) {
swalWithBootstrapButtons.fire(
'Gagal',
'Gagal mendapatkan kelulusan khazanah',
'error'
)
}
});
}
else
{
$.ajax({
method:'get',
url: api_url + '/api/check/serah/gadai',
datatype:'json',
data:{
'kodcaw': "{{ $cawangan_info['kodcaw'] }}",
'norujukan': norujukan
},
success:function(data){
if(data == 'true'){
window.location = urlpenebusan;
}else if(data == 'false'){
Swal.fire({
icon: 'error',
title: 'Amaran',
text: 'Gadaian Belum Scan Barcode'
});
}
}
});
}
}else{
$.ajax({
method:'get',
url: api_url + '/api/check/serah/gadai',
datatype:'json',
data:{
'kodcaw': "{{ $cawangan_info['kodcaw'] }}",
'norujukan': norujukan
},
success:function(data){
if(data == 'true'){
window.location = urlpenebusan;
}else if(data == 'false'){
Swal.fire({
icon: 'error',
title: 'Amaran',
text: 'Gadaian Belum Scan Barcode'
});
}
}
});
}
}
});
}
function gadaiTable(data,jenistebus){
+132
View File
@@ -4,6 +4,27 @@
@section('content')
@include('modal.historytebus')
@include('modal.wakil')
@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">
@@ -206,6 +227,7 @@
<div class="text-center">
<button class="btn btn-primary" onclick="histfunc()">Rekod Gadaian</button>
<button class="btn btn-primary" onclick="saghilangfunc()">Surat Akuan Hilang</button>
</div>
</div>
@@ -649,6 +671,116 @@
}
}
function saghilangfunc()
{
if($("input[name='options']:checked").val() == 'belum_tebus'){
let histid = $('input[name="belum"]:checked').val();
if(histid == null){
Swal.fire({
icon: 'error',
title: 'Amaran',
text: 'Sila pilih salah satu SAG'
});
}else{
$.ajax({
method:'get',
url: api_url + '/api/polis/get/',
data:{ "norujukan" : histid,"kodcaw" : kodcaw},
success:function(data)
{
var count = Object.keys(data).length;
if(count > 0)
{
Swal.fire({
allowOutsideClick: false,
allowEscapeKey: false,
allowEnterKey: false,
confirmButtonText: '<i class="fa fa-check-circle"></i> Baiklah',
icon: 'error',
title: 'Surat Akuan Gadaian Hilang telah dikeluarkan!'
});
}else{
$('#AGHModal').modal('show');
$('#norujukanhidden').val(histid);
}
},error: function(xhr, status, error) {
var err = eval("(" + xhr.responseText + ")");
alert(xhr.responseText);
}
});
}
}else if($("input[name='options']:checked").val() == 'sudah_tebus'){
let histid = $('input[name="sudahtebus"]:checked').val();
if(histid == null){
Swal.fire({
icon: 'error',
title: 'Amaran',
text: 'Sila pilih salah satu SAG'
});
}else{
$.ajax({
method:'get',
url: api_url + '/api/polis/get/',
data:{ "norujukan" : histid,"kodcaw" : kodcaw},
success:function(data){
var count = Object.keys(data).length;
if(count > 0)
{
Swal.fire({
allowOutsideClick: false,
allowEscapeKey: false,
allowEnterKey: false,
confirmButtonText: '<i class="fa fa-check-circle"></i> Baik Boss!',
icon: 'success',
title: 'Surat Akuan Gadaian Hilang telah dijana sebelum ini!'
});
}else{
$('#AGHModal').modal('show');
$('#norujukanhidden').val(histid);
}
},error: function(xhr, status, error) {
var err = eval("(" + xhr.responseText + ")");
alert(xhr.responseText);
}
});
}
}
}
$('#negeriagh').change(function(){
var daerahselect = document.getElementById("daerahagh");
$('#daerahagh').attr('disabled', false);
$(daerahagh).empty();
$.ajax({
method:'get',
url: api_url + '/api/daerahkodnegeri/' + this.value,
success:function(data){
$.each(data, function( index, daerah ){
addOption(daerah.koddaerah,daerah.namadaerah);
});
}
});
});
function addOption(textopt,valueopt) {
optionText = textopt;
optionValue = valueopt;
$('#daerahagh').append(`<option value='${optionText}'>${optionValue}</option>`);
}
function rekodasal(gadaian){
$('#hargajualanmodal').text('RM ' + formatter.format(gadaian[0][0]['hargajualan']));
$('#pembiayaanmodal').text('RM ' + formatter.format(gadaian[0][0]['pinjaman']));
@@ -63,6 +63,10 @@
<div class="row">
<a href="{{route('laporan.datalejer_am')}}" class="btn btn-danger btn-lg btn-block mb-3">Lejer Am</a>
</div>
<div class="row">
<a href="{{route('laporan.tuntutbaki')}}" class="btn btn-dark btn-lg btn-block mb-3">Tuntut Baki</a>
</div>
</div>
<div class="col-3 mx-1">
<div class="row">
@@ -0,0 +1,156 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="card">
<nav aria-label="breadcrumb">
<ol class="breadcrumb pb-3">
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
<li class="breadcrumb-item active" aria-current="page">Tuntut Baki</li>
</ol>
</nav>
<div class="card-body text-center">
<div class="row form-group">
<div class="col-md-2">
</div>
<div class="col-md-10">
</div>
</div>
<div class="row">
<div class="col-md-5">
<form action="{{ route('tuntutbaki.cetaklaporan') }}" target="_blank" method="post">
@csrf
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Tarikh</span>
</div>
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datetimepicker1" name="datetimepicker1" aria-describedby="basic-addon1">
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
</div>
</form>
</div>
</div>
<div class="row">
<div class="col-md-12">
<table class="table table-striped table-hover" id="myTable">
<thead class="thead-dark">
<tr>
<th>Bil</th>
<th>Nama</th>
<th>No K/P</th>
<th>No Rujukan</th>
<th>Nama Teller</th>
<th>Caj Lelong (RM)</th>
<th>Jumlah Baki (RM)</th>
</tr>
</thead>
<tfoot class="thead-dark">
<th colspan="3">TOTAL</th>
<th id="pinjamantotal"></th>
<th id="upah12total"></th>
<th id="nmtotal"></th>
<th id="berattotal"></th>
</tfoot>
</table>
</div>
</div>
{{-- <div class="row">
<div class="col-md-12 text-right">
Bilangan Surat : <span id="bilangan_surat">3</span>
Jumlah Pinjaman : <span id="jumlah_pinjaman">RM 3,000.00</span>
</div>
</div> --}}
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var api_url = "<?php echo $api_url ?>";
var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";
var tabletuntutbaki = $('#myTable').DataTable({
"ordering": false
});
$(document).ready( function () {
$('#datetimepicker1').datepicker({
format: 'dd-mm-yyyy'
});
var current = new Date();
var current_date = current.getDate();
var current_month = current.getMonth()+1;
var current_year = current.getFullYear();
var today_date = current_year + '-' +current_month+'-'+current_date;
$.ajax({
method:'get',
url: api_url + '/api/TuntutBaki/'+kodcaw,
data:{'tarikh' : today_date },
success: function(tuntutbaki){
console.log(tuntutbaki);
gadaitable(tuntutbaki);
}
});
});
$('#datetimepicker1').change(function(){
var input_date = this.value;
var split_date = input_date.split('-');
var today_date = split_date[2] + '-' +split_date[1]+'-'+split_date[0];
$.ajax({
method:'get',
url: api_url + '/api/TuntutBaki/'+kodcaw,
data:{'tarikh' : today_date },
success: function(tuntutbaki){
gadaitable(tuntutbaki);
}
});
});
const formatter = new Intl.NumberFormat('en-US', {
minimumFractionDigits: 2
});
function gadaitable(data){
var counter = 1;
var total_pinjaman = 0;
var total_upah12 = 0;
var total_nm = 0;
var total_berat = 0;
tabletuntutbaki.clear().draw();
$.each(data,function(index,tb){
$.ajax({
method:'get',
url: api_url + '/api/gadai/norujukan/' + tb['norujukan'],
success: function(gadai){
$.ajax({
method:'get',
url:api_url + '/api/customers/' + gadai[0][0]['nokp'],
success:function(customer){
tabletuntutbaki.row.add([
counter,
customer[0]['nama'],
gadai[0][0]['nokp'],
tb['norujukan'],
tb['teller'],
tb['cajlelong'],
tb['jumlah']
]).draw();
}
});
}
});
});
}
</script>
@endsection
+2 -2
View File
@@ -106,9 +106,9 @@
<a href="#" data-toggle="modal" data-marhun="{{ json_encode($marhun) }}" data-norujukan="{{$ls['norujukan']}}" data-kodcaw="{{ $ls['kodcaw'] }}"
data-target="#marhunModal"> {{$ls['norujukan']}} </a></td>
<td></td>
<td>{{ $ls['penilai'] }}</td>
<td>{{ $ls['jenistebus'] }}</td>
<td>{{ $ls['nilaimarhun'] }}</td>
<td>{{ $ls['nilaimarhun'] }}</td>
</tr>
@endforeach
</tbody>
@@ -135,7 +135,6 @@
{
location.reload();
}else{
console.log('luar kelulusan');
audio.play();
audio.muted = false;
var countlagu = 1;
+3 -1
View File
@@ -232,7 +232,7 @@
allowEnterKey: false
})
let mohon = "Tuntut Baki Lelongan";
let norujukan = $('#norujukan').val();
@@ -243,8 +243,10 @@
if($("input[name='radlelong']:checked").val() == 'baki')
{
jenis = 'T';
let mohon = "Tuntut Baki Lelongan";
}else{
jenis = 'B';
let mohon = "Bayar Baki Lelongan";
}
+65
View File
@@ -0,0 +1,65 @@
<!-- 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-content">
<div class="modal-header">
<h5 class="modal-title text-center" id="ModalTitle">Surat Akuan Gadaian Hilang</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<form name="frmagh" target="_blank" action="{{ route('agh.create') }}" 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">
<select name="alasan" id="alasan" class="form-control">
<option value="Bencana alam">Bencana alam</option>
<option value="Kecurian">Kecurian</option>
<option value="Di Ragut">Di Ragut</option>
<option value="Kes Polis">Kes Polis</option>
<option value="Hilang">Hilang</option>
</select>
</div>
</div>
<div class="col-12 row mt-2">
<div class="col-3"><label class="mt-1">Negeri :</label></div>
<div class="col-6">
<select name="negeriagh" id="negeriagh" class="form-control">
@foreach($negeri as $neg)
<option value="{{ $neg['kodnegeri'] }}">{{ $neg['negeri'] }}</option>
@endforeach
</select>
</div>
</div>
<div class="col-12 row mt-2">
<div class="col-3"><label class="mt-1">Daerah :</label></div>
<div class="col-6">
<select name="daerahagh" id="daerahagh" class="form-control" disabled>
<option value="No Data">No data</option>
</select>
</div>
</div>
</div>
</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>
</div>
</form>
</div>
</div>
</div>
+42 -1
View File
@@ -312,7 +312,7 @@
<div class="col-12">
<input type="button" class="float-right btn btn-danger mr-2" value="BATAL" onclick="window.location.replace('{{ route('customer_info') }}')">
<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()">
</div>
</div>
@@ -2185,6 +2185,47 @@ function ubahwakil(e)
$(e).attr( "onclick", "wakilfunction(this)");
}
function pembatalanbalik()
{
$.ajax({
method:'get',
url: api + '/api/polis/get/',
datatype:'json',
data:{
'kodcaw': "{{ $cawangan_info['kodcaw'] }}",
'norujukan': norujukan
},
success:function(data){
var count = Object.keys(data).length;
if(count > 0 && data[0].tebus === 1)
{
$.ajax({
method:'put',
url: api + '/api/polis/put/',
data: {
'kodcaw': "{{ $cawangan_info['kodcaw'] }}",
'norujukan': norujukan,
'tebus' : 0
},
success:function(data){
window.location.replace("{{ route('customer_info') }}");
},
error: function(xhr, status, error) {
var err = eval("(" + xhr.responseText + ")");
alert(xhr.responseText);
}
});
}else{
window.location.replace("{{ route('customer_info') }}");
}
}
});
}
// Restricts input for the set of matched elements to the given inputFilter function.
(function($) {
@@ -494,7 +494,7 @@
</td>
<td>
@php $totalbil = $totalbilgadai-$totalbiltebus-$totalbilans-$totalbillelong-$totalbilhapuskira; echo number_format($totalbil);@endphp
@php $totalbil = $totalbilgadai-$totalbiltebus/*-$totalbilans*/-$totalbillelong-$totalbilhapuskira; echo number_format($totalbil);@endphp
</td>
<td>
@@ -0,0 +1,258 @@
<style>
#header {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#header td, #customers th {
padding:4px;
font-size:10px;
}
#header tr:nth-child(even){background-color: #ffffff;}
#header tr:hover {background-color: #ddd;}
#header th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#scan {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#scan td, #scan th {
padding: 8px;
font-size:11px;
}
#scan tr:nth-child(even){background-color: #ffffff;}
#scan tr:hover {background-color: #ddd;}
#scan th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#scan {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#scan td, #scan th {
border-collapse: collapse;
padding: 8px;
font-size:11px;
}
#scan tr:nth-child(even){background-color: #ffffff;}
#scan tr:hover {background-color: #ddd;}
#scan th {
border-collapse: collapse;
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#details {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#details td, #details th {
padding: 8px;
font-size:11px;
}
#details tr:nth-child(even){background-color: #ffffff;}
#details tr:hover {background-color: #ddd;}
#details th {
padding-top: 12px;
font-style:bold;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#sign {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#sign td, #sign th {
padding: 8px;
font-size:11px;
text-align: center;
}
#sign tr:nth-child(even){background-color: #ffffff;}
#sign tr:hover {background-color: #ddd;}
#sign th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<table id="header">
<tr>
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
</tr>
<tr>
<td>{{ $cawangan_detail['namacaw'] }}</td>
<td></td>
</tr>
<tr>
<td>{{ $cawangan_detail['alamat1'] }}</td>
<td></td>
</tr>
<tr>
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
<td></td>
</tr>
</table>
<br>
<table id="scan">
<tr>
<th colspan ="5"><b>Laporan Stok Audit</b></th>
<th> </th>
<th> </th>
<th><b> Tarikh Cetak:</b>
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate)
@endphp
</th>
<th></th>
</tr>
<tr>
<td style="width:10px"> <b>TARIKH</b></td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate)
@endphp</td>
<td style="width:50px">
</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<br>
<table id="details">
<thead>
<th>Bil</th>
<th>Norujukan</th>
<th>JBG</th>
<th>No. KP</th>
<th>Berat</th>
<th>Nilai Marhun (RM)</th>
<th>Pembiayaan</th>
<th>Lanjutan</th>
</thead>
@php $counter = 1;$totalpinjaman = 0; @endphp
@foreach($stokaudit['rekod'] as $index=>$item)
@php if($item['hargajualan'] == null) $totalpinjaman += $item['pinjaman']; else $totalpinjaman += $item['bakipjm']; @endphp
<tr>
<td>{{ $counter }}</td>
<td>{{$item['norujukan']}}</td>
<td>{{ $item['jbg'] }}</td>
<td>{{$item['nokp']}}</td>
<td>{{ number_format($item['berat'],2) }}</td>
<td>{{ number_format($item['nilaimarhun'],2) }}</td>
<td>@php if($item['hargajualan'] == null) echo number_format($item['pinjaman'],2); else echo number_format($item['bakipjm'],2); @endphp</td>
<td>{{$item['lelong_tawarruq']}}</td>
</tr>
@php $counter++; @endphp
@endforeach
<tfoot>
<th colspan='4'>Jumlah</th>
<th>{{ number_format($stokaudit['totalberat'],2) }}</th>
<th>{{ number_format($stokaudit['totalnilaimarhun'],2) }}</th>
<th>{{ number_format($stokaudit['total'],2) }}</th>
<th></th>
</tfoot>
</table>
<br>
<br>
<table id="sign">
<tr>
<td></td>
<td colspan="2"> .................................................................. </td>
<td> </td>
<td colspan="2">.................................................................. </td>
<td> </td>
</tr>
<tr>
<td></td>
<td colspan="2"><B> DI SEMAK</B> </td>
<td> </td>
<td colspan="2"><B>DI SAHKAN </B></td>
<td> </td>
</tr>
</table>
@@ -219,6 +219,7 @@
<td>{{ number_format($item['berat'],2) }}</td>
<td>{{ number_format($item['nilaimarhun'],2) }}</td>
<td>@php if($item['hargajualan'] == null) echo number_format($item['pinjaman'],2); else echo number_format($item['bakipjm'],2); @endphp</td>
{{-- <td>{{ number_format($item['pinjaman'],2) }}</td> --}}
<td>{{$item['lelong_tawarruq']}}</td>
</tr>
@php $counter++; @endphp
@@ -227,6 +228,7 @@
<th colspan='4'>Jumlah</th>
<th>{{ number_format($stokaudit['totalberat'],2) }}</th>
<th>{{ number_format($stokaudit['totalnilaimarhun'],2) }}</th>
{{-- <th>{{ number_format($stokaudit['total'],2) }}</th> --}}
<th>{{ number_format($totalpinjaman,2) }}</th>
<th></th>
</tfoot>
@@ -0,0 +1,292 @@
<style>
#header {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#header td, #customers th {
padding:4px;
font-size:10px;
}
#header tr:nth-child(even){background-color: #ffffff;}
#header tr:hover {background-color: #ddd;}
#header th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#scan {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#scan td, #scan th {
padding: 8px;
font-size:11px;
}
#scan tr:nth-child(even){background-color: #ffffff;}
#scan tr:hover {background-color: #ddd;}
#scan th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#scan {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#scan td, #scan th {
border-collapse: collapse;
padding: 8px;
font-size:11px;
}
#scan tr:nth-child(even){background-color: #ffffff;}
#scan tr:hover {background-color: #ddd;}
#scan th {
border-collapse: collapse;
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#details {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#details td, #details th {
padding: 8px;
font-size:8px;
}
#details tr:nth-child(even){background-color: #ffffff;}
#details tr:hover {background-color: #ddd;}
#details th {
padding-top: 12px;
font-style:bold;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#sign {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#sign td, #sign th {
padding: 8px;
font-size:11px;
text-align: center;
}
#sign tr:nth-child(even){background-color: #ffffff;}
#sign tr:hover {background-color: #ddd;}
#sign th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<table id="header">
<tr>
{{-- <th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th> --}}
{{-- <th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th> --}}
</tr>
<tr>
<td style="font-size:20px;font-weight:bold;">{{ $cawangan_detail['namacaw'] }}</td>
<td></td>
</tr>
{{-- <tr>
<td>{{ $cawangan_detail['alamat1'] }}</td>
<td></td>
</tr>
<tr>
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
<td></td>
</tr> --}}
</table>
<br>
<table id="scan">
<tr>
<th colspan ="5"><b>LAPORAN TUNTUT BAKI</b></th>
<th> </th>
<th> </th>
<th>
</th>
<th></th>
</tr>
<tr>
<td><b> Tarikh:</b></td>
<td style="text-align:left;"> @php
$myDateTime = DateTime::createFromFormat('Y-m-d', $gadai_date);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate)
@endphp</td>
</tr>
<tr>
<td style="width:10px"> <b>Tarikh Cetak</b></td>
<td style="text-align:left;">@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate)
@endphp</td>
<td style="width:50px">
</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<br>
<table id="details">
<tr>
<th>Bil</th>
<th>Nama</th>
<th>No K/P</th>
<th>No Rujukan</th>
<th>Caj Lelong (RM)</th>
<th>Jumlah Baki (RM)</th>
</tr>
@php $counter = 1; $totaljumlah = 0; @endphp
@foreach($tuntutbaki as $index=>$item)
@php $totaljumlah += $item['jumlah'] @endphp
@if($index > 0)
@if($item['teller'] != $tuntutbaki[$index - 1]['teller'])
<tr>
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
</tr>
@php $totalpinjamanteller = 0;$totalcajlelong = 0; @endphp
@endif
@else
<tr>
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
</tr>
@php $totalpinjamanteller = 0;$totalcajlelong = 0; @endphp
@endif
<tr>
<td>{{ $counter }}</td>
<td>
@php
$gadaidetail = Http::get($api_url . '/api/gadai/norujukan/' . $item['norujukan'])->json();
$customer_detail = Http::get($api_url . '/api/customers/' . $gadaidetail[0][0]['nokp'])->json();
echo $customer_detail[0]['nama'];
@endphp
</td>
<td style="width:100px">{{$gadaidetail[0][0]['nokp']}}</td>
<td style="width:100px">{{$item['norujukan']}}</td>
<td>{{ $item['cajlelong'] }}</td>
<td>{{ $item['jumlah'] }}</td>
</tr>
@php $counter++; @endphp
@php $totalpinjamanteller += $item['jumlah'];$totalcajlelong += $item['cajlelong']; @endphp
@if($index+1 < sizeof($tuntutbaki))
@if($item['teller'] != $tuntutbaki[$index + 1]['teller'])
<tr>
<td colspan="4"><b>{{ $counter-1 }}</b> Jumlah surat bagi teller : <b>{{ $item['teller'] }}</b></td>
<td><b>{{ number_format($totalcajlelong,2) }} </b></td>
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
</tr>
@php $counter = 1;$totalpinjamanteller = 0;$totalcajlelong = 0; @endphp
@endif
@else
<tr>
<td colspan="4"><b>{{ $counter-1 }}</b> Jumlah surat bagi teller : <b>{{ $item['teller'] }}</b></td>
<td><b>{{ number_format($totalcajlelong,2) }} </b></td>
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
</tr>
@endif
@endforeach
</table>
<h5 style="float:right;">JUMLAH KESELURUHAN : RM {{ number_format($totaljumlah,2) }}</h5>
<br>
<br>
<table id="sign">
<tr>
<td></td>
<td colspan="2"> .................................................................. </td>
<td> </td>
<td colspan="2">.................................................................. </td>
<td> </td>
</tr>
<tr>
<td></td>
<td colspan="2"><B> DI SEMAK</B> </td>
<td> </td>
<td colspan="2"><B>DI SAHKAN </B></td>
<td> </td>
</tr>
</table>
@@ -0,0 +1,99 @@
<html>
<head>
<title>Surat Akuan Gadaian</title>
<style>
table #details,
th,
td {
padding: 2px 10px 2px 10px;
/* border: 1px solid black; */
border-collapse: collapse;
}
.tableright{
text-align:right;
}
</style>
</head>
<body>
<br>
<p style="text-align: center;margin: 0;"><strong>SURAT AKUAN BERKANUN</strong></p>
<br><br>
@php
$poskod = Http::get($api_url . '/api/poskod/' . $customers[0]['poskod'])->json();
$negeri = Http::get($api_url . '/api/negeri/' . $poskod['kodnegeri'])->json();
$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>
<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>
</ol>
<ol start="2">
<li>Butir-butir mengenai kehilangan tersebut adalah seperti berikut: -</li>
</ol>
<p>&nbsp;</p>
<table style="margin-left: auto;margin-right: auto;" width="70%">
<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>
</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>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</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>&nbsp;</p>
<table>
<tr>
<td width="50%;">Diperbuat dan dengan sesungguhnya diakui</td>
<td class="tableright" width="10%;">)</td>
<td width="40%;"></td>
</tr>
<tr>
<td>Oleh yang tersebut namanya di atas iaitu-</td>
<td class="tableright">)</td>
<td></td>
</tr>
<tr>
<td>{{ $customers[0]['nama'] }}</td>
<td class="tableright">)</td>
<td style="text-align: right;">........................................................</td>
</tr>
@php
list($negeriagh, $daerahagh) = explode('|', $polis[0]['komen2']);
$negeri = Http::get($api_url . '/api/negeri/' . $negeriagh)->json();
$daerah = Http::get($api_url . '/api/daerah/' . $daerahagh)->json();
@endphp
<tr>
<td>DI {{ $daerah['namadaerah'] }}- </td>
<td class="tableright">)</td>
<td></td>
</tr>
<tr>
<td>Negeri {{ $negeri['negeri'] }}</td>
<td class="tableright">)</td>
<td></td>
</tr>
<tr>
<td>Pada........................................................</td>
<td class="tableright">)</td>
<td></td>
</tr>
</table>
<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>
</body>
</html>
+9 -4
View File
@@ -45,7 +45,12 @@ Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');
Route::get('/welcome',function(){
return view('print.resittebus');
$auth_user = Auth::user();
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
$cawangan_detail=$cawangan[0];
return view('print.suratgadaihilang', compact('cawangan_detail'));
});
@@ -198,6 +203,8 @@ Route::post('/laporan/agingbulanan/cetak', ['as'=>'agingbulan.cetaklaporan', 'us
Route::get('/laporan/perbelanjaan', [ 'as'=>'laporan.perbelanjaan', 'uses'=>'KhazanahController@laporan_Perbelanjaan'])->middleware('auth','khazanah');
Route::post('/laporan/perbelanjaan/cetak', ['as'=>'perbelanjaan.cetaklaporan', 'uses'=>'KhazanahController@cetaklaporan_Perbelanjaan'])->middleware('auth','khazanah');
Route::get('/laporan/perbelanjaan/cetak/{baucer}', ['as'=>'perbelanjaan.cetaklaporanbaucer', 'uses'=>'KhazanahController@cetaklaporan_Perbelanjaan_Baucer'])->middleware('auth','khazanah');
Route::get('/laporan/tuntutbaki', [ 'as'=>'laporan.tuntutbaki', 'uses'=>'KhazanahController@laporan_tuntutbaki'])->middleware('auth','khazanah');
Route::post('/laporan/tuntutbaki/cetak', ['as'=>'tuntutbaki.cetaklaporan', 'uses'=>'KhazanahController@cetaklaporan_tuntutbaki'])->middleware('auth','khazanah');
// Route::get('/laporan/agingbulanan', [ 'as'=>'laporan.agingbulanan', 'uses'=>'KhazanahController@laporanAging_Bulanan'])->middleware('auth','khazanah');
// Route::post('/laporan/agingbulanan/cetak', ['as'=>'agingbulan.cetaklaporan', 'uses'=>'KhazanahController@cetaklaporang_Aging'])->middleware('auth','khazanah');
@@ -234,9 +241,7 @@ Route::get('/komoditi',['as'=>'komuditi','uses'=>'KomuditiController@index']);
Route::get('/komoditi/rekod',['as'=>'rekod.komoditi','uses'=>'KomuditiController@rekodKomoditi']);
Route::get('/komoditi/rekod/print',['as'=>'komoditi.rekod.print','uses'=>'KomuditiController@printRekodTransaksi']);
Route::post('/khazanah/suratakuangadaian',['as'=>'agh.create','uses'=>'KhazanahController@SuratAkuanGadaian'])->middleware('auth','khazanah');
Route::get('/laporan/stokauditbersih', ['as'=>'laporan.stokauditbersih', 'uses'=>'KhazanahController@stokAuditBersih'])->middleware('auth','khazanah');
Route::post('/laporan/stokauditbersih_cetak',['as' =>'stokauditbersih.cetakstokauditbersih', 'uses'=>'KhazanahController@cetakStok_AuditBersih'])->middleware('auth','khazanah');