update untuk kemaskini data arcc

This commit is contained in:
Nur Izzati Zulkifli
2024-01-09 16:10:33 +08:00
parent 8760e28900
commit 72ce630664
2 changed files with 24 additions and 1 deletions
@@ -969,4 +969,21 @@ class CallCenterController extends Controller
}
}
public function getcawnotiskemaskini($notisid)
{
$current = Carbon::now();
$current = new Carbon();
$arraybatch = [];
$batchnotis = Notis::on('mysql7')->where('id',$notisid)->get();
$cawangan_all = Cawangan::on('mysql7')->get();
$cawnotis_all = [];
foreach ($batchnotis as $index => $cawangan){
$notis = CawanganNotis::on('mysql7')
->join('arrahn_master_db', 'arrahn_master_db.kodcaw', '=', 'cawangan_notis.kodcaw')
->where('notis_id',$notisid)->get();
}
return response()->json($notis);
}
}