public function getAjaxListSubJenis($value = '')
 {
     $sub_jenis = Sub_jenis_dokumen::all();
     return Datatables::of($sub_jenis)->addColumn('jenis_dokumen', function ($sub_jenis) {
         return $sub_jenis->jenis_dokumen->nama_jenis;
     })->addColumn('level_dokumen', function ($sub_jenis) {
         foreach ($sub_jenis->level_dokumen as $key => $value) {
             return $value->nama_level;
         }
     })->make(true);
 }
 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'));
 }