public function edit($id) { $paciente = Paciente::find($id); $paciente->colonia; $tipos = Tipo::all()->lists('tipo', 'id')->toArray(); return view('admin.pacientes.createorupdate')->with('paciente', $paciente)->with('tipos', $tipos); }
public function EditPaciente($slug, $date, $id) { $paciente = Paciente::find($id); $paciente->colonia; $tipos = Tipo::all()->lists('tipo', 'id')->toArray(); asort($tipos); return view('admin.pacientes.form_edit')->with('paciente', $paciente)->with('tipos', $tipos)->with('slug', $slug)->with('date', $date)->with('rfc', $paciente->rfc); }
public function getGestionarPlatos() { $notif = Session::get('notif'); $platos = Plato::all(); $tipos = Tipo::all(); return view('admin.gestionar-platos')->with(compact(['platos', 'tipos', 'notif'])); }
public function index() { $tipos = Tipo::all()->lists('tipo', 'id')->toArray(); asort($tipos); return view('bitacora.index')->with('tipos', $tipos); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $tipo = Tipo::all(); return view('tipo.index', compact('tipo')); }