/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function getEdit($id) { $this->data["module"] = "Datos del Cliente"; $data["phones"] = TipoTelefono::all(); $data["plans"] = PlanPago::all(); $data["civil_status"] = EstadoCivil::all(); $persona = Persona::with('cliente', 'cliente.colonia')->find($id); $data['persona'] = $persona; $data["cliente"] = $persona->cliente; $data["edit"] = true; return View::make($this->department . ".main", $this->data)->nest('child', 'formularios.cliente', $data); }
/** * Display a listing of the resource. * GET /estadocivils * * @return Response */ public function index() { return EstadoCivil::all(); }