add generate va

parent 7529f6e9
...@@ -73,6 +73,14 @@ public function store(Request $request) { ...@@ -73,6 +73,14 @@ public function store(Request $request) {
$id_registrasi = Registrasi::query()->create($registrasi)->id; $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){ foreach($request->konferensi as $kon){
$i = 0; $i = 0;
$daftarKonferensi[] = $kon; $daftarKonferensi[] = $kon;
...@@ -92,20 +100,15 @@ public function store(Request $request) { ...@@ -92,20 +100,15 @@ public function store(Request $request) {
'harga' => $kegiatan[$i]['harga'] 'harga' => $kegiatan[$i]['harga']
]; ];
$multipartData = [
'noid' => $id_registrasi,
'nama' => $request->nama,
'tagihan' => $kegiatan[$i]['harga']
];
$this->generateVa($multipartData);
$i++; $i++;
} }
foreach($kegiatanpeserta as $keg){ foreach($kegiatanpeserta as $keg){
KegiatanPeserta::query()->create($keg); KegiatanPeserta::query()->create($keg);
} }
Log::debug($generatedVa);
DB::commit(); DB::commit();
// return redirect()->back() // 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