96 lines
5.6 KiB
PHP
96 lines
5.6 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get("/", "RootController@index")->name("root.index");
|
|
Route::get("/home", "RootController@index")->name("root.index");
|
|
|
|
Route::get("/login", "UserController@showLogin")->name("users.show-login");
|
|
Route::post("/login", "UserController@login")->name("users.login");
|
|
Route::get("/logout", "UserController@logout")->name("users.logout");
|
|
Route::get("/forgot", "UserController@showForgot")->name("users.show-forgot");
|
|
Route::post("/forgot", "UserController@forgot")->name("users.forgot");
|
|
Route::get("/account", "UserController@account")->name("users.account");
|
|
Route::get("/account/edit", "UserController@accountedit")->name("users.accountedit");
|
|
Route::get("/account/editpass", "UserController@accounteditpass")->name("users.accounteditpass");
|
|
Route::put("/account/update", "UserController@accountupdate")->name("users.accountupdate");
|
|
Route::get("/account/editpic", "UserController@accounteditpic")->name("users.accounteditpic");
|
|
Route::get("/events/signups", "EventController@signups")->name("events.signups");
|
|
Route::get("/events/accountsignups", "EventController@accountsignups")->name("events.accountsignups");
|
|
Route::get("phones", "PhoneController@index")->name("phones.index");
|
|
Route::get("/washing-reservationsapi", "WashingReservationController@api")->name("washing-reservations.api");
|
|
Route::get("/app/washing-reservations", "WashingReservationController@appindex")->name("washing-reservations.appindex");
|
|
Route::get("/settings", "SettingsController@index")->name("settings.index");
|
|
Route::post("/events/signup", "UserEventController@createajax")->name("userevents.createajax");
|
|
Route::post("/account/mailwants", "UserController@createajax")->name("users.createajax");
|
|
Route::get("/about", "AboutController@index")->name("about.index");
|
|
Route::post("/events/cancelsignup", "UserEventController@createajaxcancel")->name("userevents.createajaxcancel");
|
|
Route::post("/account/cancelmailwants", "UserController@createajaxcancel")->name("users.createajaxcancel");
|
|
Route::delete("/notifications/delete", "EventController@deleteNotifications")->name("notifications.delete");
|
|
|
|
//Search/Filter
|
|
Route::get("/contactsapi", "ContactController@search")->name("contacts.search");
|
|
Route::get("/eventsapi", "EventController@search")->name("events.search");
|
|
Route::get("/menuplansapi", "MenuPlanController@search")->name("menu-plans.search");
|
|
Route::get("/rolesapi", "RolesController@search")->name("roles.search");
|
|
Route::get("/userapi", "UserController@search")->name("users.search");
|
|
Route::get("/vaskeapi", "WashingReservationController@search")->name("washing-reservations.search");
|
|
Route::get("/risrosapi", "FeedbackController@search")->name("feedbacks.search");
|
|
|
|
//Cookies
|
|
Route::get("/languages", "UserController@setLanguages")->name("users.setLanguages");
|
|
Route::get("/darkmode", "UserController@setDarkMode")->name("users.setDarkMode");
|
|
|
|
//Convert to PDF
|
|
Route::get("/pdf/{menuPlan}", "MenuPlanController@genPDF")->name("pdf.genPDF")->hasParameter("Id");
|
|
|
|
//Check name adminpanel
|
|
Route::get("/usersCheck", "UserController@nameCheck")->name("users.nameCheck");
|
|
Route::get("/eventCheck", "EventController@nameCheck")->name("events.nameCheck");
|
|
Route::get("/roleCheck", "RolesController@nameCheck")->name("roles.nameCheck");
|
|
Route::get("/guidesCheck", "GuideController@nameCheck")->name("guides.nameCheck");
|
|
Route::get("/newsCheck", "NewsController@nameCheck")->name("news.nameCheck");
|
|
Route::get("/menuplanCheck", "MenuPlanController@nameCheck")->name("menuplans.nameCheck");
|
|
Route::get("/locationsCheck", "LocationController@nameCheck")->name("locations.nameCheck");
|
|
Route::get("/washingCheck", "WashingMachineController@nameCheck")->name("washing-machines.nameCheck");
|
|
|
|
|
|
//Check name update adminpanel
|
|
Route::get("/eventCheckUpdate", "EventController@nameCheckUpdate")->name("events.nameCheckUpdate");
|
|
Route::get("/roleCheckUpdate", "RolesController@nameCheckUpdate")->name("roles.nameCheckUpdate");
|
|
Route::get("/guidesCheckUpdate", "GuideController@nameCheckUpdate")->name("guides.nameCheckUpdate");
|
|
Route::get("/newsCheckUpdate", "NewsController@nameCheckUpdate")->name("news.nameCheckUpdate");
|
|
Route::get("/menuplanCheckUpdate", "MenuPlanController@nameCheckUpdate")->name("menuplans.nameCheckUpdate");
|
|
Route::get("/locationsCheckUpdate", "LocationController@nameCheckUpdate")->name("locations.nameCheckUpdate");
|
|
Route::get("/washingCheckUpdate", "WashingMachineController@nameCheckUpdate")->name("washing-machines.nameCheckUpdate");
|
|
|
|
|
|
|
|
Route::resource("contacts", "ContactController");
|
|
Route::resource("menu-plans", "MenuPlanController");
|
|
Route::resource("users", "UserController");
|
|
Route::resource("events", "EventController");
|
|
Route::resource("userevents", "UserEventController");
|
|
Route::resource("washing-machines", "WashingMachineController");
|
|
Route::resource("washing-reservations", "WashingReservationController");
|
|
Route::resource("feedbacks", "FeedbackController");
|
|
Route::resource("external-links", "ExternalLinkController");
|
|
Route::resource("resource-extensions", "ResourceExtensionController");
|
|
Route::resource("resource-categories", "ResourceCategoryController");
|
|
Route::resource("roles", "RolesController");
|
|
Route::resource("guides", "GuideController");
|
|
Route::resource("locations", "LocationController");
|
|
Route::resource("news", "NewsController");
|
|
Route::resource("newstype", "NewsTypeController");
|