/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $empresa = EmpresaRenta::find($id); $municipios = Estado::with('municipios')->find($empresa->estados_id); $estados = Estado::with('municipios')->get(); $pagos = PagoEmpresaRenta::all(); $estatus = EstatuEmpresaRenta::all(); return View::make('administrador.empresasrenta.editar')->with(compact('estados', 'empresa', 'municipios', 'pagos', 'estatus')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $pagos = PagoEmpresaRenta::all(); return View::make('administrador.pagosrenta.inicio')->with(compact('pagos')); }