public function GeneraReporte()
 {
     ini_set('max_execution_time', 900000);
     $c = new Client("http://162.243.142.165:8080/jasperserver", "jasperadmin", "jasperadmin");
     $c->setRequestTimeout(900000);
     $controls = array('stateId' => $_POST['estados']);
     $reporte = $c->reportService()->runReport('/reports/Blank_A4', 'html', null, null, $controls);
     $estados = State::orderBy('name', 'ASC')->lists('name', 'id');
     $user_id = Auth::user()->id;
     $breadcrumbs = Neighbors::select('neighbors.name as name_ne', 'neighbors.last_name', 'urbanisms.name as name_ur ')->join('neighbors_properties', 'neighbors.id', '=', 'neighbors_properties.neighbors_id')->join('urbanisms', 'neighbors_properties.urbanism_id', '=', 'urbanisms.id')->where('neighbors.user_id', '=', $user_id)->first();
     $breadcrumbs_data = $breadcrumbs->name_ne . " " . $breadcrumbs->last_name . " [" . $breadcrumbs->name_ur . "]";
     return View::make("dashboard.reports.report", ['reporte' => $reporte, 'breadcrumbs_data' => $breadcrumbs_data]);
 }
 public function get_wizard()
 {
     $user_id = Auth::user()->id;
     $user = Auth::user()->email;
     $user_admin = Neighbors::where('user_id', '=', $user_id)->first();
     $code = Auth::user()->confirmation_code;
     $urbanism_types = UrbanismType::orderBy('id', 'ASC')->lists('type', 'id');
     $countries = Country::orderBy('id', 'ASC')->lists('name', 'id');
     $states = State::orderBy('id', 'ASC')->lists('name', 'id');
     $country_default = 'México';
     $selected_country = Country::where('name', '=', $country_default)->first();
     return View::make('dashboard.colonies.admin.create_colony', ['urbanism_types' => $urbanism_types, 'user' => $user, 'user_admin' => $user_admin, 'countries' => $countries, 'states' => $states, 'code' => $code, 'selected_country' => [$selected_country->id], 'select' => ['' => 'Seleccione tipo de desarrollo'], 'select_1' => ['' => 'Seleccione País'], 'select_2' => ['' => 'Seleccione Estado'], 'select_3' => ['' => 'Seleccione Ciudad']]);
 }