laporan gadaian penebusan

This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-12-15 04:32:40 +08:00
parent e57101fa4a
commit c5e25d9256
3 changed files with 24 additions and 0 deletions
+11
View File
@@ -240,4 +240,15 @@ class TebusController extends Controller
return response()->json($update_gadai, 200);
}
public function getLaporanTebus($kodcaw,$tarikh){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$tebus = Tebus::on($cawangan['mysql'])
->where('t_tebus','=',$tarikh)
->orderBy('teller')
->get();
return response()->json($tebus);
}
}