public function updateView($id) { // $rec = Form::find($id); $data = ['page_title' => 'Kasus Anak 3 (KA3)', 'panel_title' => 'Form Edit', 'form_url' => '/dash/formka3/update', 'form_status' => 'edit', 'record' => Form::find($id), 'jenis_kasus' => JenisKasus::all(), 'tindak_lanjut' => TindakLanjut::all(), 'user' => UserDAO::jsonAllOperator()]; return View::make('formka3.form', $data); }
public function updateView($id) { $rec = Form::find($id); $anak = $rec->anak->first(); $data = ['page_title' => 'Kasus Anak 7 (KA7)', 'panel_title' => 'Form Edit', 'form_url' => '/dash/formka7/update', 'form_status' => 'edit', 'record' => Form::find($id), 'anak' => $anak, 'jenis_kasus' => JenisKasus::all(), 'tindak_lanjut' => TindakLanjut::all()]; return View::make('formka7.form', $data); }
public function updateView($id) { $rec = Form::find($id); $anak = $rec->anak->first(); $data = ['panel_title' => 'Form Edit', 'form_url' => '/dash/formka4/update', 'form_status' => 'edit', 'record' => Form::find($id), 'jenis_kasus' => JenisKasus::all(), 'tindak_lanjut' => TindakLanjut::all(), 'agama_lists' => Agama::lists('nama', 'nama'), 'anak' => $anak, 'location_anak' => LocationHelper::location($anak->desa->id), 'location_ayah' => LocationHelper::location(), 'location_ibu' => LocationHelper::location()]; $data = array_merge($data, $this->basic); return View::make('formka4.form', $data); }
public function updateView($id) { $rec = Form::find($id); $anak = $rec->anak->first(); $data = ['page_title' => 'Kasus Anak 6 (KA6)', 'panel_title' => 'Form Edit', 'form_url' => '/dash/formka6/update', 'form_status' => 'edit', 'record' => Form::find($id), 'jenis_kasus' => JenisKasus::all(), 'intervensi' => Intervensi::all()]; return View::make('formka6.form', $data); }
public static function getJenisKasusDefault() { $jenis = JenisKasus::all(); $out = []; foreach ($jenis as $val) { if ($val->other == "F") { $a = [$val->jenis => ["P" => 0, "W" => 0]]; $out = array_merge($out, $a); } } $out["Other"] = ["P" => 0, "W" => 0]; return $out; }