public function postTambahActifity(Request $request)
 {
     $data = $request->all();
     $sub_jenis = Actifity::create($data);
     return redirect($data['prev_url']);
     // return redirect('data/list-actifity');
 }
 public function getModalUpload(Request $request)
 {
     $jenis_id = $request->input('jenis');
     $checklist_id = $request->input('checklist');
     $unit_id = $request->input('unit');
     $actifity_id = $request->input('actifity');
     $actifity = Actifity::where('id', $actifity_id)->firstOrFail();
     $unit = unit::where('id', $unit_id)->firstOrFail();
     $jenis = Sub_jenis_dokumen::where('id', $jenis_id)->firstOrFail();
     $unit_tujuan = unit::all();
     $visibility = Visibility::all();
     // dd($unit);
     return view('checklist._upload-dokumen-modal', compact('jenis_id', 'jenis', 'checklist_id', 'actifity', 'unit', 'unit_tujuan', 'visibility'));
 }