Ejemplo n.º 1
0
Route::get('standard', function () {
    return View::make('standard');
});
Route::get('infinite', function () {
    return View::make('infinite');
});
Route::get('group', function () {
    return View::make('group');
});
// Route::get('advanced', function()
// {
// 	return View::make('advanced');
// });
// Route::get('multiple', function()
// {
// 	return View::make('multiple');
// });
// Route::get('adv', function()
// {
// 	return View::make('adv');
// });
Route::get('source', function () {
    $columns = array('id', 'country', 'subdivision', 'city', 'population', 'created_at');
    $settings = array('sort' => 'country', 'direction' => 'asc', 'max_results' => 20);
    // // Initiate by a database query
    // return DataGrid::make(DB::table('cities'), $columns, $settings);
    // // Or by an Eloquent model query
    // return DataGrid::make(with(new City)->newQuery(), $columns, $settings);
    // Or by an Eloquent model
    return DataGrid::make(new City(), $columns, $settings);
});
Ejemplo n.º 2
0
     //            $data = App\LotInfo::whereIn('lot_id', $lots)
     //                ->orderBy('created_at', 'desc')->first()
     //                ->groupBy('lot_num')
     //                ->distinct()
     //                ->with(
     //                    [
     //                    'statusdef',
     //                    'buildtype',
     //                    'user'
     //                    ]);
     // // Initiate by a database query
     //             return DataGrid::make(DB::table('cities'), $columns, $settings);
     // // Or by an Eloquent model query
     // return DataGrid::make(with(new City)->newQuery(), $columns, $settings);
     // Or by an Eloquent model
     return DataGrid::make($data, $columns, $settings);
 });
 Route::get('api/lotinfo/{lotid}', 'LotInfosController@getLotInfo');
 Route::put('api/lotinfo/{lotid}', 'LotInfosController@store');
 Route::post('api/lotinfo/{lotid}', 'LotInfosController@store');
 Route::get('api/lotinfo/buildtype/{buildtypeid}', 'LotInfosController@getStatusMenu');
 //    Route::get('/mapa', 'LotInfosController@alpha');
 //    Route::get('api/mapselection/getcommunities/{community_id}', 'MapSelectionController@');
 //    Route::get('api/mapselection/subdivision/{subdivision_id}', 'MapSelectionController@buildSubdivisions');
 Route::get('api/mapselection/getsubdivisions/{communityid}', 'MapSelectionController@buildSubdivisions');
 Route::get('api/mapselection/getmaps/{subdivisionid}', 'MapSelectionController@buildMaps');
 Route::post('api/mapselection/goto/{mapid}', 'MapSelectionController@gotoMap');
 Route::get('loadmap/{mapid}', 'LotInfosController@loadMapInfos');
 // Going to need to update this soon to not be static!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 Route::get('mapselection', function () {
     //        $communities = App\Community::where('id', 1)->get();