2020-06-08 08:04:45 +00:00
|
|
|
<?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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2020-06-08 13:08:46 +00:00
|
|
|
Route::get("/", "RootController@index")->name("root.index");
|
2020-06-30 09:38:28 +00:00
|
|
|
Route::get("/home", "RootController@index")->name("root.index");
|
2020-06-10 10:30:44 +00:00
|
|
|
|
2020-06-19 06:15:24 +00:00
|
|
|
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");
|
2020-06-30 08:19:01 +00:00
|
|
|
Route::get("/forgot", "UserController@showForgot")->name("users.show-forgot");
|
|
|
|
Route::post("/forgot", "UserController@forgot")->name("users.forgot");
|
2020-06-30 12:04:34 +00:00
|
|
|
Route::get("/account", "UserController@account")->name("users.account");
|
|
|
|
Route::get("/account/edit", "UserController@accountedit")->name("users.accountedit");
|
2020-07-01 08:13:49 +00:00
|
|
|
Route::get("/account/editpass", "UserController@accounteditpass")->name("users.accounteditpass");
|
2020-08-03 07:39:32 +00:00
|
|
|
Route::put("/account/update", "UserController@accountupdate")->name("users.accountupdate");
|
2020-08-12 08:46:36 +00:00
|
|
|
Route::get("/account/editpic", "UserController@accounteditpic")->name("users.accounteditpic");
|
2020-07-28 12:54:19 +00:00
|
|
|
Route::get("/events/signups", "EventController@signups")->name("events.signups");
|
2020-08-07 12:11:13 +00:00
|
|
|
Route::get("/events/accountsignups", "EventController@accountsignups")->name("events.accountsignups");
|
2020-06-29 07:21:17 +00:00
|
|
|
Route::get("phones", "PhoneController@index")->name("phones.index");
|
2020-08-03 07:39:32 +00:00
|
|
|
Route::get("/washing-reservationsapi", "WashingReservationController@api")->name("washing-reservations.api");
|
2020-08-18 20:47:39 +00:00
|
|
|
Route::get("/washing-reservationsgetMachines", "WashingReservationController@getMachines")->name("washing-reservations.getMachines");
|
|
|
|
Route::get("/washing-reservationsgetTimes", "WashingReservationController@getTimes")->name("washing-reservations.getTimes");
|
2020-08-03 10:57:14 +00:00
|
|
|
Route::get("/app/washing-reservations", "WashingReservationController@appindex")->name("washing-reservations.appindex");
|
2020-08-11 10:37:31 +00:00
|
|
|
Route::get("/settings", "SettingsController@index")->name("settings.index");
|
2020-08-11 13:08:09 +00:00
|
|
|
Route::post("/events/signup", "UserEventController@createajax")->name("userevents.createajax");
|
2020-08-14 08:17:52 +00:00
|
|
|
Route::post("/account/mailwants", "UserController@createajax")->name("users.createajax");
|
2020-08-12 11:08:47 +00:00
|
|
|
Route::get("/about", "AboutController@index")->name("about.index");
|
2020-08-12 13:17:48 +00:00
|
|
|
Route::post("/events/cancelsignup", "UserEventController@createajaxcancel")->name("userevents.createajaxcancel");
|
2020-08-14 08:17:52 +00:00
|
|
|
Route::post("/account/cancelmailwants", "UserController@createajaxcancel")->name("users.createajaxcancel");
|
2020-08-14 05:36:42 +00:00
|
|
|
Route::delete("/notifications/delete", "EventController@deleteNotifications")->name("notifications.delete");
|
2020-08-12 08:46:36 +00:00
|
|
|
|
2020-08-03 08:09:54 +00:00
|
|
|
//Search/Filter
|
2020-07-27 11:07:19 +00:00
|
|
|
Route::get("/contactsapi", "ContactController@search")->name("contacts.search");
|
2020-07-27 14:03:49 +00:00
|
|
|
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");
|
2020-07-29 13:27:07 +00:00
|
|
|
Route::get("/vaskeapi", "WashingReservationController@search")->name("washing-reservations.search");
|
2020-08-03 08:08:03 +00:00
|
|
|
Route::get("/risrosapi", "FeedbackController@search")->name("feedbacks.search");
|
2020-08-20 12:59:22 +00:00
|
|
|
Route::get("/locationapi", "LocationController@search")->name("locations.search");
|
2020-07-27 14:03:49 +00:00
|
|
|
|
2020-08-10 12:49:00 +00:00
|
|
|
//Cookies
|
2020-08-06 13:31:38 +00:00
|
|
|
Route::get("/languages", "UserController@setLanguages")->name("users.setLanguages");
|
2020-08-10 12:49:00 +00:00
|
|
|
Route::get("/darkmode", "UserController@setDarkMode")->name("users.setDarkMode");
|
2020-07-27 14:03:49 +00:00
|
|
|
|
2020-08-12 13:25:29 +00:00
|
|
|
//Convert to PDF
|
|
|
|
Route::get("/pdf/{menuPlan}", "MenuPlanController@genPDF")->name("pdf.genPDF")->hasParameter("Id");
|
|
|
|
|
2020-08-17 08:21:02 +00:00
|
|
|
//Check name adminpanel
|
2020-08-17 13:10:44 +00:00
|
|
|
Route::get("/usersCheck", "UserController@nameCheck")->name("users.nameCheck");
|
2020-08-14 09:22:51 +00:00
|
|
|
Route::get("/eventCheck", "EventController@nameCheck")->name("events.nameCheck");
|
|
|
|
Route::get("/roleCheck", "RolesController@nameCheck")->name("roles.nameCheck");
|
2020-08-17 06:23:48 +00:00
|
|
|
Route::get("/guidesCheck", "GuideController@nameCheck")->name("guides.nameCheck");
|
2020-08-17 07:21:47 +00:00
|
|
|
Route::get("/newsCheck", "NewsController@nameCheck")->name("news.nameCheck");
|
|
|
|
Route::get("/menuplanCheck", "MenuPlanController@nameCheck")->name("menuplans.nameCheck");
|
2020-08-17 08:31:33 +00:00
|
|
|
Route::get("/locationsCheck", "LocationController@nameCheck")->name("locations.nameCheck");
|
|
|
|
Route::get("/washingCheck", "WashingMachineController@nameCheck")->name("washing-machines.nameCheck");
|
|
|
|
|
2020-08-17 06:23:48 +00:00
|
|
|
|
2020-08-17 08:21:02 +00:00
|
|
|
//Check name update adminpanel
|
2020-08-18 06:16:25 +00:00
|
|
|
Route::get("/usersCheckUpdate", "UserController@nameCheckUpdate")->name("users.nameCheckUpdate");
|
2020-08-17 08:21:02 +00:00
|
|
|
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");
|
2020-08-17 08:43:52 +00:00
|
|
|
Route::get("/locationsCheckUpdate", "LocationController@nameCheckUpdate")->name("locations.nameCheckUpdate");
|
2020-08-17 09:07:26 +00:00
|
|
|
Route::get("/washingCheckUpdate", "WashingMachineController@nameCheckUpdate")->name("washing-machines.nameCheckUpdate");
|
2020-08-17 08:21:02 +00:00
|
|
|
|
2020-08-13 12:41:10 +00:00
|
|
|
|
2020-06-26 06:20:43 +00:00
|
|
|
|
2020-06-29 08:07:42 +00:00
|
|
|
Route::resource("contacts", "ContactController");
|
2020-06-25 08:34:10 +00:00
|
|
|
Route::resource("menu-plans", "MenuPlanController");
|
2020-06-15 06:59:15 +00:00
|
|
|
Route::resource("users", "UserController");
|
2020-06-19 06:15:24 +00:00
|
|
|
Route::resource("events", "EventController");
|
2020-07-28 06:44:25 +00:00
|
|
|
Route::resource("userevents", "UserEventController");
|
2020-06-19 06:15:24 +00:00
|
|
|
Route::resource("washing-machines", "WashingMachineController");
|
|
|
|
Route::resource("washing-reservations", "WashingReservationController");
|
2020-06-24 06:53:07 +00:00
|
|
|
Route::resource("feedbacks", "FeedbackController");
|
2020-06-25 08:34:10 +00:00
|
|
|
Route::resource("external-links", "ExternalLinkController");
|
2020-06-30 09:27:39 +00:00
|
|
|
Route::resource("resource-extensions", "ResourceExtensionController");
|
2020-07-01 07:15:11 +00:00
|
|
|
Route::resource("resource-categories", "ResourceCategoryController");
|
2020-06-30 09:49:17 +00:00
|
|
|
Route::resource("roles", "RolesController");
|
2020-08-04 11:21:23 +00:00
|
|
|
Route::resource("guides", "GuideController");
|
2020-08-06 06:37:16 +00:00
|
|
|
Route::resource("locations", "LocationController");
|
2020-08-06 10:21:19 +00:00
|
|
|
Route::resource("news", "NewsController");
|
2020-08-12 13:17:48 +00:00
|
|
|
Route::resource("newstype", "NewsTypeController");
|