paparan sag mobile

This commit is contained in:
Afiq
2021-01-05 17:50:06 +08:00
parent a071836fb9
commit f5f873b3a8
3 changed files with 54 additions and 10 deletions
+12 -10
View File
@@ -542,8 +542,8 @@ class GadaiController extends Controller
return response()->json($gadai);
}
public function getLaporanKawalanStok($kodcaw,$tarikh)
{
public function getLaporanKawalanStok($kodcaw,$tarikh){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$array_kawalanstok = [];
@@ -795,8 +795,8 @@ class GadaiController extends Controller
}
public function showAllGadaiToday()
{
public function showAllGadaiToday(){
$cawangan_all = Cawangan::on('mysql7')->get();
$current = Carbon::now();
$current = new Carbon();
@@ -814,8 +814,9 @@ class GadaiController extends Controller
return response()->json($gadaiToday);
}
public function showAllTebusToday()
{
public function showAllTebusToday(){
$cawangan_all = Cawangan::on('mysql7')->get();
$current = Carbon::now();
$current = new Carbon();
@@ -831,8 +832,9 @@ class GadaiController extends Controller
}
return response()->json($tebusToday);
}
public function showAllVariasiToday()
{
public function showAllVariasiToday(){
$cawangan_all = Cawangan::on('mysql7')->get();
$current = Carbon::now();
$current = new Carbon();
@@ -860,8 +862,8 @@ class GadaiController extends Controller
$variasiToday = $gadaiToday - $tebusToday;
return response()->json($variasiToday);
}
public function showAllUpahToday()
{
public function showAllUpahToday(){
$cawangan_all = Cawangan::on('mysql7')->get();
$current = Carbon::now();
$current = new Carbon();