} ?> <?php echo View::make('header')->render(); ?> <div id="service"> <div class="container"> <div class="row"> <?php echo '<a href="' . $row['url'] . '"><h1>'; echo $row['title']; echo '</a></h1>'; echo '<p>'; echo $row['shorttext']; echo '</p>'; ?> <?php echo ajax_comments($page, $pageTitle); ?> </div> </div> </div> <?php echo View::make('footer')->render();
| */ //***************************************************** //PAYMENT********************************************* //***************************************************** Route::group(["prefix" => "premium", "namespace" => "Frontend", "middleware" => ["secure.connection", "auth.frontend"]], function () { $class = "PaymentController@"; Route::get("/", $class . "getIndex"); Route::post("payment/post", $class . "postPayment"); Route::get("payment/status", $class . "getStatus"); }); //***************************************************** //AJAX********************************************* //***************************************************** Route::group(["prefix" => "ajax", "middleware" => ["secure.connection", "auth.frontend"]], function () { ajax_comments(); ajax_user(); ajax_productions(); }); function ajax_comments() { Route::post("comment/create", "Frontend\\ProductionController@ajax_postComment"); Route::post("comment/get", "Frontend\\ProductionController@ajax_getComments"); Route::post("production/rating/post", "Frontend\\ProductionController@ajax_postRating"); } function ajax_user() { Route::post("user/favorites/add/production", "Frontend\\UserController@ajax_addProductionToFavorites"); Route::post("user/favorites/delete/production", "Frontend\\UserController@ajax_deleteProductionToFavorites"); Route::post("user/favorites/get/productions", "User\\UserController@ajax_getProductionsFromFavorites"); Route::post("user/production/track", "Frontend\\UserController@ajax_trackProduction");