kelulusan

This commit is contained in:
hafifierahman
2021-02-22 15:01:19 +08:00
parent f9df54be86
commit 4a9b6bdb08
5 changed files with 84 additions and 8 deletions
+18
View File
@@ -26,6 +26,7 @@ class TunaiController extends Controller
return response()->json($tunai);
}
public function countgadaidantebus($kodcaw)
{
@@ -144,6 +145,23 @@ class TunaiController extends Controller
}
public function getTunaiPast($kodcaw,Request $request)
{
$current = Carbon::now();
$current = new Carbon();
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$tunai=Tunai::on($cawangan['mysql'])
->where([['kodcaw','=',$kodcaw],['tarikh','<',$current->toDateString()],['kodlaluan','=',$request->kodlaluan]])
->orderBy('tarikh','desc')
->get();
return response()->json($tunai);
}
public function getLatestTunai($kodcaw,Request $request)
{