public function delete(Request $request, $id)
 {
     $registry = RegistroOaca::find($id);
     $registry->delete();
     $request->session()->flash('flash_message', 'Registro Eliminado');
     return redirect('admin/oaca/registry/registrys');
 }
 function getEditIntroduction($id)
 {
     $collectChild = ElementsOaca::arrayContentChild(ElementsOaca::INTRODUCTION, $id);
     $registrys = RegistroOaca::contentRegistry(Auth::user()->id)->get();
     $content_Introduction = ElementsOaca::contentOaca(ElementsOaca::INTRODUCTION, $id);
     return view('admin.oaca.objetos.introduction.edit', ["register_id" => $id, "moment" => ElementsOaca::INTRODUCTION, "contentIntroduction" => $content_Introduction, "collectChild" => $collectChild, "task_moment" => 'edit']);
 }
Beispiel #3
0
 function viewOaca($id = 0)
 {
     $oaca = RegistroOaca::find($id);
     $content_introduction = ElementsOaca::contentOaca(ElementsOaca::INTRODUCTION, $id);
     $collectChild_introduction = ElementsOaca::arrayContentChild(ElementsOaca::INTRODUCTION, $id);
     $content_develop = ElementsOaca::searchElementsDevelop($id);
     $content_close = ElementsOaca::searchElementsClose($id);
     //dd( $collectChild_introduction);
     return view('oaca.pages.oaca', ['oaca' => $oaca, 'collectChild_introduction' => $collectChild_introduction, "pattern_array" => ElementsOaca::DEVELOP_ARRAY, "content_develop" => $content_develop[2], "pattern_array" => ElementsOaca::CLOSE_ARRAY, "content_close" => $content_close[2]]);
 }