stok audit bersih & details

This commit is contained in:
fariz
2021-04-22 12:52:25 +08:00
parent 3ce47018e3
commit d85b27699a
7 changed files with 1075 additions and 6 deletions
+126 -1
View File
@@ -295,7 +295,7 @@ class KhazanahController extends Controller
if($jenis_tebus=='T')
{
$kredit_Pinjaman=$kredit_Pinjaman+$pinjaman;
}
else
{
@@ -2069,6 +2069,131 @@ class KhazanahController extends Controller
return view('print.laporan_pelangganbaru', compact('senaraipelanggan','cawangan_detail','tarikh_cetak','tebus_date','api_url'));
}
public function cetakStok_AuditBersih(Request $request)
{
$auth_user = Auth::user();
$api_url = config('api.url');
$tarikh_aging=$request;
// dd($tarikh_aging);
$num=$request->num;
$current = Carbon::now();
$current = new Carbon();
$tarikh_cetak=$current->toDateString();
if($request->datetimepicker1 == null){
$tebus_date = $current->toDateString();
}else
{
$split_date = explode('-',$request->datetimepicker1);
$tarikh_stok = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
}
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
$cawangan_detail=$cawangan[0];
// $data_3=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num3)->json();
$data=Http::get(config('api.url').'/api/gadai/stokauditbersih/'.$auth_user['cawangan'].'/'.$tarikh_stok)->json();
//dd($data);
return view('print.laporan_stok_audit_bersih', compact('cawangan','cawangan_detail','api_url','data','tarikh_cetak','tarikh_stok'));
}
public function stokAuditBersih()
{
$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.stokauditbersih',compact('cawangan_info','api_url'));
}
public function stokAuditDetails()
{
$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.stokauditdetails',compact('cawangan_info','api_url'));
}
public function cetak_stokAuditDetails(Request $request)
{
$auth_user = Auth::user();
$api_url = config('api.url');
$tarikh_aging=$request;
// dd($tarikh_aging);
$num=$request->num;
$current = Carbon::now();
$current = new Carbon();
$tarikh_cetak=$current->toDateString();
if($request->datetimepicker1 == null){
$tebus_date = $current->toDateString();
}else
{
$split_date = explode('-',$request->datetimepicker1);
$tarikh_stok = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
}
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
$cawangan_detail=$cawangan[0];
// $data_3=Http::get(config('api.url').'/api/gadai/aging/test/'.$auth_user['cawangan'].'/'.$tarikh_aging.'/'.$num3)->json();
$data=Http::get(config('api.url').'/api/gadai/stokauditbersih/'.$auth_user['cawangan'].'/'.$tarikh_stok)->json();
// dd($data);
return view('print.laporan_stok_audit_details', compact('cawangan','cawangan_detail','api_url','data','tarikh_cetak','tarikh_stok'));
}
public function laporanStokAudit(){
$auth_user = Auth::user();
$api_url = config('api.url');
@@ -34,12 +34,12 @@
<div class="row">
<a href="" class="btn btn-danger btn-lg btn-block mb-3">Aging Pemodal</a>
</div>
{{-- <div class="row">
<a href="{{route('laporan.stokauditbersih')}}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit Bersih</a>
</div> --}}
{{-- <div class="row">
<div class="row">
<a href="{{route('laporan.stokauditbersih')}}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit Bersih </a>
</div>
<div class="row">
<a href="{{ route('laporan.stokauditdetails')}}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit Details</a>
</div> --}}
</div>
</div>
<div class="col-3 mx-1">
<div class="row">
@@ -0,0 +1,145 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">{{ __('Laporan Stok Audit Bersih') }}</div>
<div class="card-body text-center">
<div class="row form-group">
<div class="col-md-2">
<a href="{{ route('laporan') }}" class="ion-backspace" style="font-size:50px;color:blue;"></a>
</div>
<div class="col-md-10">
<h3>Laporan Stok Audit Bersih </h3>
</div>
</div>
<div class="row">
<div class="col-md-5">
<form action="{{route('stokauditbersih.cetakstokauditbersih') }}" 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" autocomplete="off" aria-describedby="basic-addon1">
<input type="hidden" id="num1" name="num1" value=1>
<input type="hidden" id="num2" name="num2" value=2>
<input type="hidden" id="num3" name="num3" value=3>
<input type="hidden" id="num4" name="num4" value=4>
<input type="hidden" id="num5" name="num5" value=5>
<input type="hidden" id="num6" name="num6" value=6>
<input type="hidden" id="num7" name="num7" value=7>
<input type="hidden" id="num8" name="num8" value=8>
<input type="hidden" id="num9" name="num9" value=9>
<input type="hidden" id="num10" name="num10" value=10>
<input type="hidden" id="num11" name="num11" value=11>
<input type="hidden" id="num12" name="num12" value=12>
<input type="hidden" id="num13" name="num13" value=12>
<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="" id="myTable">
<thead>
<tr>
<th>Bil</th>
<th>Bil Gadaian</th>
<th>Jumlah Pinjaman (RM)</th>
<th>Peratusan %</th>
</tr>
</thead>
</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 tablecustomers = $('#myTable').DataTable({
"ordering": false
});
$(document).ready( function () {
console.log('dsasa');
$('#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/marhun/laporan/'+kodcaw+'/' + today_date,
success: function(customers){
customertable(customers);
},error: function(XMLHttpRequest, textStatus, errorThrown) {
console.log(textStatus);
}
});
});
$('#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/marhun/laporan/'+kodcaw+'/' + today_date,
success: function(customers){
customertable(customers);
}
});
});
function customertable(data){
var counter = 1;
tablecustomers.clear().draw();
$.each(data,function(index,customers){
tablecustomers.row.add([
counter,
customers['norujukan'],
customers['nokp'],
customers['nama'],
customers['marhun'],
customers['nota'],
customers['berat'],
customers['karat'],
customers['harga'],
customers['n_marhun'],
]).draw();
});
}
</script>
@endsection
@@ -0,0 +1,144 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">{{ __('Laporan Stok Audit Details') }}</div>
<div class="card-body text-center">
<div class="row form-group">
<div class="col-md-2">
<a href="{{ route('laporan') }}" class="ion-backspace" style="font-size:50px;color:blue;"></a>
</div>
<div class="col-md-10">
<h3>Laporan Stok Audit Bersih </h3>
</div>
</div>
<div class="row">
<div class="col-md-5">
<form action="{{route('stokauditdetails.stokauditdetails_cetak') }}" 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" autocomplete="off" aria-describedby="basic-addon1">
<input type="hidden" id="num1" name="num1" value=1>
<input type="hidden" id="num2" name="num2" value=2>
<input type="hidden" id="num3" name="num3" value=3>
<input type="hidden" id="num4" name="num4" value=4>
<input type="hidden" id="num5" name="num5" value=5>
<input type="hidden" id="num6" name="num6" value=6>
<input type="hidden" id="num7" name="num7" value=7>
<input type="hidden" id="num8" name="num8" value=8>
<input type="hidden" id="num9" name="num9" value=9>
<input type="hidden" id="num10" name="num10" value=10>
<input type="hidden" id="num11" name="num11" value=11>
<input type="hidden" id="num12" name="num12" value=12>
<input type="hidden" id="num13" name="num13" value=12>
<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="" id="myTable">
<thead>
<tr>
<th>Bil</th>
<th>Bil Gadaian</th>
<th>Jumlah Pinjaman (RM)</th>
<th>Peratusan %</th>
</tr>
</thead>
</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 tablecustomers = $('#myTable').DataTable({
"ordering": false
});
$(document).ready( function () {
console.log('dsasa');
$('#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/marhun/laporan/'+kodcaw+'/' + today_date,
success: function(customers){
customertable(customers);
},error: function(XMLHttpRequest, textStatus, errorThrown) {
console.log(textStatus);
}
});
});
$('#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/marhun/laporan/'+kodcaw+'/' + today_date,
success: function(customers){
customertable(customers);
}
});
});
function customertable(data){
var counter = 1;
tablecustomers.clear().draw();
$.each(data,function(index,customers){
tablecustomers.row.add([
counter,
customers['norujukan'],
customers['nokp'],
customers['nama'],
customers['marhun'],
customers['nota'],
customers['berat'],
customers['karat'],
customers['harga'],
customers['n_marhun'],
]).draw();
});
}
</script>
@endsection
@@ -0,0 +1,319 @@
<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;
width: 100%;
border: 1px solid #ddd;
}
#scan td, #scan th {
padding: 8px;
font-size:12px;
}
#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;
width: 100%;
}
#scan td, #scan th {
padding: 8px;
font-size:12px;
}
#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: 50%;
}
#details td, #details th {
padding: 8px;
font-size:11px;
}
#details tr:nth-child(even){background-color: #ffffff;}
#details tr:hover {background-color: #ffffff;}
#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>
<style>
#title {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 50%;
}
#title td, #title th {
padding:4px;
font-size:12px;
border: 0px solid #fff;
}
#title tr:nth-child(even){background-color: #ffffff;}
#title tr:hover {background-color: #ddd;}
#title th {
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:80%;
}
#details td, #details th {
padding:4px;
font-size:12px;
border: 1px solid #ddd;
}
#details tr:nth-child(even){background-color: #ffffff;}
#details tr:hover {background-color: #ddd;}
#details th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#tarikh_cetak {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width:40%;
}
#tarikh_cetak td, #tarikh_cetak th {
padding:4px;
font-size:12px;
}
#tarikh_cetak tr:nth-child(even){background-color: #ffffff;}
#tarikh_cetak tr:hover {background-color: #ddd;}
#tarikh_cetak th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#data {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 80%;
}
#data td, #data th {
padding:4px;
font-size:12px;
font-size:12px;
}
#data tr:nth-child(even){background-color: #ffffff;}
#data tr:hover {background-color: #ddd;}
#data th {
padding-top: 11px;
padding-bottom: 11px;
text-align: left;
padding:4px;
color:black;
font-size:14px;
}
</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="tarikh_cetak">
<tr><td style="width:20px" ><b>Tarikh Laporan</b></td ><td style="width:40px"> {{$tarikh_stok}} </td> </tr>
<tr><td style="width:20px" ><b>Tarikh Cetak</b></td><td style="width:40px" >{{$tarikh_cetak}} </td></tr>
</table>
<br>
<table id="tarikh_cetak">
<tr>
<td cospan="2" > <B><U>LAPORAN STOK BERSIH</U></B></td>
</tr>
</table>
<br>
<table id="data">
<tr>
<th>Bil</th> <th>Norujukan</th><th>No KP</th> <th>Pembiayaan</th> <th> Margin Pembiayaan % </th> <th>JBG</th> <th>Tag Lel </th><th> Bil Bayar </th> <th>T_Update</th> <th>JT</th>
</tr>
@foreach($data as $index=>$var)
<tr>
<td> {{ $loop->iteration }} </td><td>{{$var['norujukan']}}</td><td>{{$var['nokp']}}</td><td>{{$var['pinjaman']}}</td> <td>{{$var['percentpinj']}} </td><td>{{$var['jbg']}}</td><td></td><td></td><td>{{$var['t_update']}}</td><td>{{$var['jenistebus']}}</td>
</tr>
@endforeach
</table>
@@ -0,0 +1,318 @@
<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;
width: 100%;
border: 1px solid #ddd;
}
#scan td, #scan th {
padding: 8px;
font-size:12px;
}
#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;
width: 100%;
}
#scan td, #scan th {
padding: 8px;
font-size:12px;
}
#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: 50%;
}
#details td, #details th {
padding: 8px;
font-size:11px;
}
#details tr:nth-child(even){background-color: #ffffff;}
#details tr:hover {background-color: #ffffff;}
#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>
<style>
#title {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 50%;
}
#title td, #title th {
padding:4px;
font-size:12px;
border: 0px solid #fff;
}
#title tr:nth-child(even){background-color: #ffffff;}
#title tr:hover {background-color: #ddd;}
#title th {
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:80%;
}
#details td, #details th {
padding:4px;
font-size:12px;
border: 1px solid #ddd;
}
#details tr:nth-child(even){background-color: #ffffff;}
#details tr:hover {background-color: #ddd;}
#details th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#tarikh_cetak {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width:50%;
}
#tarikh_cetak td, #tarikh_cetak th {
padding:4px;
font-size:12px;
}
#tarikh_cetak tr:nth-child(even){background-color: #ffffff;}
#tarikh_cetak tr:hover {background-color: #ddd;}
#tarikh_cetak th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#data {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 80%;
}
#data td, #data th {
padding:4px;
font-size:12px;
font-size:12px;
}
#data tr:nth-child(even){background-color: #ffffff;}
#data tr:hover {background-color: #ddd;}
#data th {
padding-top: 11px;
padding-bottom: 11px;
text-align: left;
padding:4px;
color:black;
font-size:14px;
}
</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="tarikh_cetak">
<tr><td style="width:20px" ><b>Tarikh Laporan</b></td ><td style="width:40px"> {{$tarikh_stok}} </td> </tr>
<tr><td style="width:20px" ><b>Tarikh Cetak</b></td><td style="width:40px" > {{$tarikh_cetak}} </td></tr>
</table>
<br>
<table id="tarikh_cetak">
<tr>
<td cospan="2" > <B><U>LAPORAN STOK AUDIT DETAILS</U></B></td>
</tr>
</table>
<br>
<table id="data">
<tr>
<th>Bil</th> <th>Norujukan</th><th>No KP</th> <th>Pembiayaan</th> <th>JBG</th> <th>Marhun </th><th> Berat(g) </th> <th>Nilai Marhun (RM)</th>
</tr>
@foreach($data as $index=>$var)
<tr>
<td>{{$loop->iteration }}</td><td>{{$var['norujukan']}}</td><td>{{$var['nokp']}}</td><td>{{$var['pinjaman']}}</td><td>{{$var['jbg']}}</td><td>{{$var['marhun']}}</td><td>{{$var['berat']}}</td><td>{{$var['nilaimarhun']}}</td>
</tr>
@endforeach
</table>
+18
View File
@@ -222,6 +222,24 @@ 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::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');
Route::get('/laporan/stokauditdetails', ['as'=>'laporan.stokauditdetails','uses'=>'KhazanahController@stokAuditDetails'])->middleware('auth','khazanah');
Route::post('laporan/stokauditdetails_cetak',['as'=>'stokauditdetails.stokauditdetails_cetak', 'uses'=>'KhazanahController@cetak_stokAuditDetails'])->middleware('auth', 'khazanah');
Route::get('/laporan/datalejeram',['as' =>'laporan.datalejer_am', 'uses'=>'KhazanahController@data_lejer_am'])->middleware('auth', 'khazanah');
route::post('/cetaklejer_am',['as'=>'cetak.lejer_am', 'uses'=>'KhazanahController@cetak_lejer_am'])->middleware('auth', 'khazanah');