public function getContactRegistrationForm() { $registrants = RegistrationPage::paginate(25); $allRegistrants = RegistrationPage::all(); return View::make('admin.contact-teams', array('registrants' => $registrants, 'allRegistrants' => $allRegistrants)); }
Route::get('/dashboard/press/{id?}', array('as' => 'dashboard.press.get', 'uses' => 'DashboardController@getPressPage')); Route::post('/dashboard/press/{id?}', array('as' => 'dashboard.press.post', 'uses' => 'DashboardController@postPressPage')); Route::get('/dashboard/terrace/{id?}', array('as' => 'dashboard.terrace.get', 'uses' => 'DashboardController@getTerracePage')); Route::post('/dashboard/terrace/{id?}', array('as' => 'dashboard.terrace.post', 'uses' => 'DashboardController@postTerracePage')); Route::get('/dashboard/contact-registration', array('as' => 'dashboard.contact.registration.form.get', 'uses' => 'DashboardController@getContactRegistrationForm')); Route::post('/dashboard/delete-residences-image/{id}', array('as' => 'dashboard.residences.delete.image.post', 'uses' => 'DashboardController@deleteResidencesImage')); Route::post('/dashboard/delete-amenities-image/{id}', array('as' => 'dashboard.amenities.delete.image.post', 'uses' => 'DashboardController@deleteAmenitiesImage')); Route::post('/dashboard/delete-availability-image/{id}', array('as' => 'dashboard.availability.delete.image.post', 'uses' => 'DashboardController@deleteAvailabilityImage')); Route::post('/dashboard/delete-availability-default-image/{id}', array('as' => 'dashboard.availability.default.delete.image.post', 'uses' => 'DashboardController@deleteAvailabilityPageImage')); Route::post('/dashboard/delete-dutch-kills-image/{id}', array('as' => 'dashboard.dutch.kills.delete.image.post', 'uses' => 'DashboardController@deleteDutchKillsImage')); Route::post('/dashboard/change-availability-object-state/{id}', array('as' => 'dashboard.availability.change.state.post', 'uses' => 'DashboardController@changeAvailabilityObjectState')); Route::post('/dashboard/upload-image', array('as' => 'dashboard.upload.image.post', 'uses' => 'DashboardController@uploadImage')); Route::post('/dashboard/reorder/{type}', array('as' => 'dashboard.reorder.post', 'uses' => 'DashboardController@updateSortableElements')); Route::get('/logout', array('as' => 'logout.get', 'uses' => 'AuthController@getLogout')); Route::get('/xls', array('as' => 'xls', 'uses' => function () { Excel::create('Excel_export', function ($excel) { $excel->sheet('Registrants', function ($sheet) { $registrants = RegistrationPage::all(); $sheet->loadView('admin.xls', ['registrants' => $registrants->toArray()]); }); })->export('xls'); })); Route::get('/csv', array('as' => 'csv', 'uses' => function () { Excel::create('Csv_export', function ($excel) { $excel->sheet('Registrants', function ($sheet) { $registrants = RegistrationPage::all(); $sheet->loadView('admin.xls', ['registrants' => $registrants->toArray()]); }); })->export('csv'); })); });