diff --git a/app/Http/Controllers/AkaunController.php b/app/Http/Controllers/AkaunController.php
index 0a0a1ed..3d39b9e 100644
--- a/app/Http/Controllers/AkaunController.php
+++ b/app/Http/Controllers/AkaunController.php
@@ -755,7 +755,7 @@ class AkaunController extends Controller
$current = Carbon::now();
$current = new Carbon();
$tarikh_cetak = $current->toDateString();
-
+ $kodcaw = $request->kodcaw;
$split_date = explode('-',$request->datestokauditbackdate);
$bulan = $split_date[1];
$tahun = $split_date[0];
@@ -788,11 +788,11 @@ class AkaunController extends Controller
$tebus_date = $namabulan . ' ' . $tahun;
- $cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
+ $cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$kodcaw)->json();
$cawangan_detail=$cawangan[0];
- $stokaudit = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/stokaudit/backdate',['kodcaw' => $auth_user['cawangan'],'tahun'=>$tahun,'bulan'=>$bulan])->json();
-
+ $stokaudit = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/stokaudit/backdate',['kodcaw' => $kodcaw,'tahun'=>$tahun,'bulan'=>$bulan])->json();
+
return view('akaun.laporan_stokauditbackdate', compact('stokaudit','cawangan_detail','tarikh_cetak','tebus_date','api_url'));
}
diff --git a/resources/js/WTD/SenaraiBakiLelong.vue b/resources/js/WTD/SenaraiBakiLelong.vue
new file mode 100644
index 0000000..80b60c4
--- /dev/null
+++ b/resources/js/WTD/SenaraiBakiLelong.vue
@@ -0,0 +1,179 @@
+
+JUMLAH = RM {{ this.totalbaki }}
+
+
+
+
+
+
+
+
+
+
+ Norujukan
+
+
+ Tarikh Lelong
+
+
+ Pembiayaan
+
+
+ Baki
+
+
+
+
+
+
+
+ {{ bl.norujukan }}
+
+
+ {{ bl.t_lelong }}
+
+
+ {{ bl.pinjaman }}
+
+
+ {{ bl.baki }}
+
+