public function updateView($id) { $rec = Form::find($id); $anak = $rec->anak->first(); $pelapor = $anak->pelapor->first(); $data = ['page_title' => 'Kasus Anak 1 (KA1)', 'panel_title' => 'Form Edit', 'form_url' => '/dash/formka1/update', 'form_status' => 'edit', 'location_pelapor' => LocationHelper::location($pelapor->desa->id), 'location_anak' => LocationHelper::location($anak->desa->id), 'agama_lists' => Agama::lists('nama', 'nama'), 'record' => Form::find($id)]; return View::make('formka1.form', $data); }
public function updateView($id) { $anak = Anak::find($id); $data = ['page_title' => 'Anak', 'panel_title' => 'Form Edit', 'form_url' => '/dash/anak/update', 'form_status' => 'edit', 'location_anak' => LocationHelper::location($anak->desa->id), 'agama_lists' => Agama::lists('nama', 'nama'), 'record' => Form::find($id)]; return View::make('anak.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 addView() { $data = ['page_title' => 'Staff', 'panel_title' => 'Form Add', 'form_url' => '/dash/setting/staff/add', 'form_status' => 'add', 'location_pelapor' => LocationHelper::location(), 'location_anak' => LocationHelper::location()]; return View::make('staff.form', $data); }
public function updateView($id) { $form = Form::find($id); $anak = $form->anak->first(); $sumber = $anak->sumber_informasi->first(); $data = ['page_title' => 'Kasus Anak 2 (KA2)', 'panel_title' => 'Form Edit', 'form_url' => '/dash/formka2/update', 'form_status' => 'edit', 'location_anak' => LocationHelper::location($anak->desa->id), 'agama_lists' => Agama::lists('nama', 'nama'), 'record' => Form::find($id)]; return View::make('formka2.form', $data); }