Example #1
0
 public function postPrintLaporan()
 {
     $pdf = new HTML2PDF();
     $data = ['num' => 1, 'diklat' => Diklat::find(request()->get('diklat')), 'periode' => Periode::find(request()->get('periode')), 'gelombang' => Gelombang::find(request()->get('gelombang'))];
     // Data Peserta
     $html = view('backend.pages.reports.periode', $data)->render();
     $pdf->writeHTML($html);
     // Data PrePost
     $html = view('backend.pages.reports.prepost', $data)->render();
     $pdf->writeHTML($html);
     // Data Kuesioner
     $html = view('backend.pages.reports.kuesioner', $data)->render();
     $pdf->writeHTML($html);
     $pdf->Output();
 }
Example #2
0
 public function getDelete($id)
 {
     $data = ['status' => Diklat::remove($id)];
     return response()->json($data);
 }