update jbg
This commit is contained in:
@@ -3246,8 +3246,12 @@ class GadaiController extends Controller
|
||||
return $upah_semasa;
|
||||
}
|
||||
|
||||
public function updateJBGsemasa(){
|
||||
$cawangan = Cawangan::on('mysql7')->get();
|
||||
public function updateJBGsemasa(Request $request){
|
||||
if($request->zone == 'all'){
|
||||
$cawangan = Cawangan::on('mysql7')->get();
|
||||
}else{
|
||||
$cawangan = Cawangan::on('mysql7')->where('zone',$request->zone)->get();
|
||||
}
|
||||
$current = Carbon::now();
|
||||
|
||||
foreach($cawangan as $cawangan_mysql){
|
||||
|
||||
Reference in New Issue
Block a user