add generate va

parent 7529f6e9
......@@ -73,6 +73,14 @@ public function store(Request $request) {
$id_registrasi = Registrasi::query()->create($registrasi)->id;
$multipartData = [
'noid' => $id_registrasi,
'nama' => $request->nama,
'tagihan' => $tagihan
];
$generatedVa = $this->generateVa($multipartData);
foreach($request->konferensi as $kon){
$i = 0;
$daftarKonferensi[] = $kon;
......@@ -92,20 +100,15 @@ public function store(Request $request) {
'harga' => $kegiatan[$i]['harga']
];
$multipartData = [
'noid' => $id_registrasi,
'nama' => $request->nama,
'tagihan' => $kegiatan[$i]['harga']
];
$this->generateVa($multipartData);
$i++;
}
foreach($kegiatanpeserta as $keg){
KegiatanPeserta::query()->create($keg);
}
Log::debug($generatedVa);
DB::commit();
// return redirect()->back()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment