public function render_view_oferta_expediente($idoferta_expediente = null)
 {
     if (Auth::check()) {
         $data["inside_url"] = Config::get('app.inside_url');
         $data["user"] = Session::get('user');
         // Verifico si el usuario es un Webmaster
         if (($data["user"]->idrol == 1 || $data["user"]->idrol == 2 || $data["user"]->idrol == 3 || $data["user"]->idrol == 4 || $data["user"]->idrol == 5 || $data["user"]->idrol == 6 || $data["user"]->idrol == 7 || $data["user"]->idrol == 8 || $data["user"]->idrol == 9 || $data["user"]->idrol == 10 || $data["user"]->idrol == 11 || $data["user"]->idrol == 12) && $idoferta_expediente) {
             $data["oferta_expediente_data"] = OfertaExpediente::withTrashed()->find($idoferta_expediente);
             $data["expediente_tecnico_data"] = ExpedienteTecnico::withTrashed()->find($data["oferta_expediente_data"]->idexpediente_tecnico);
             $data["proveedores"] = Proveedor::orderBy('razon_social', 'asc')->lists('razon_social', 'idproveedor');
             return View::make('oferta_expediente/viewOfertaExpediente', $data);
         } else {
             return View::make('error/error', $data);
         }
     } else {
         return View::make('error/error', $data);
     }
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $reportes = Reporte::find($id);
     if (is_null($reportes)) {
         return Redirect::route('reportes.index')->with('global', '<i class="fa fa-exclamation fa-fw x3"></i> Pagina no encontrada');
     }
     $agente = Agente::find(1);
     $proveedores = Proveedor::orderBy('nombre', 'ASC')->lists('nombre', 'id');
     return View::make('reportes.edit', array('agente' => $agente))->with('proveedores', $proveedores)->with('reportes', $reportes);
 }