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
@@ -315,4 +315,15 @@ class GadaiController extends Controller
return response()->json($gadai);
}
public function getLaporanGadai($kodcaw,$tarikh){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$gadai = Gadai::on($cawangan['mysql'])
->where('t_gadai','=',$tarikh)
->orderBy('teller')
->get();
return response()->json($gadai);
}
}