2018-04-15 21:05:42 -04:00
|
|
|
<?php
|
|
|
|
|
2021-08-02 16:35:14 -04:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
use App\Dashboard;
|
2018-04-15 21:05:42 -04:00
|
|
|
use App\Utilities\Language;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Authentication Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2021-08-02 16:35:14 -04:00
|
|
|
Route::auth([ 'register' => Dashboard::canRegister() ]);
|
2018-04-15 21:05:42 -04:00
|
|
|
Route::get('/logout', 'Auth\LoginController@logout');
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Dashboard Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::group([ 'prefix' => 'dashboard' ], function() {
|
2018-04-25 23:27:45 -04:00
|
|
|
// Dashboard CMS
|
2018-04-18 23:32:22 -04:00
|
|
|
Route::get('/', 'DashboardController@getIndex');
|
2018-04-18 00:40:24 -04:00
|
|
|
Route::get('/view/{model}', 'DashboardController@getView');
|
|
|
|
Route::get('/edit/{model}', 'DashboardController@getEditList');
|
2018-04-18 23:32:22 -04:00
|
|
|
Route::get('/edit/{model}/{id}', 'DashboardController@getEditItem');
|
2018-04-15 21:05:42 -04:00
|
|
|
Route::get('/export/{model}', 'DashboardController@getExport');
|
2018-04-25 23:27:45 -04:00
|
|
|
Route::post('/reorder', 'DashboardController@postReorder');
|
|
|
|
Route::post('/update', 'DashboardController@postUpdate');
|
2018-04-15 21:05:42 -04:00
|
|
|
Route::post('/image-upload', 'DashboardController@postImageUpload');
|
|
|
|
Route::post('/file-upload', 'DashboardController@postFileUpload');
|
|
|
|
Route::delete('/delete', 'DashboardController@deleteDelete');
|
|
|
|
Route::delete('/image-delete', 'DashboardController@deleteImageDelete');
|
|
|
|
Route::delete('/file-delete', 'DashboardController@deleteFileDelete');
|
2018-04-25 23:27:45 -04:00
|
|
|
|
|
|
|
// Dashboard Settings
|
|
|
|
Route::get('/settings', 'DashboardController@getSettings');
|
|
|
|
Route::post('/user/password-update', 'DashboardController@postUserPasswordUpdate');
|
|
|
|
Route::post('/user/profile-update', 'DashboardController@postUserProfileUpdate');
|
|
|
|
Route::post('/user/profile-image-upload', 'DashboardController@postUserProfileImageUpload');
|
|
|
|
Route::delete('/user/profile-image-delete', 'DashboardController@deleteUserProfileImageDelete');
|
|
|
|
|
|
|
|
// Credits Page
|
|
|
|
Route::get('/credits', 'DashboardController@getCredits');
|
2018-04-15 21:05:42 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Public Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/language/{lang}', function($lang) {
|
|
|
|
Language::setSessionLanguage($lang);
|
|
|
|
return redirect()->back();
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::get('/', function() {
|
2019-03-19 17:56:10 -04:00
|
|
|
return view('pages.home');
|
2018-04-15 21:05:42 -04:00
|
|
|
});
|
|
|
|
|
2018-04-26 20:26:18 -04:00
|
|
|
Route::get('/blog', function() {
|
|
|
|
return view('pages.blog');
|
|
|
|
});
|
|
|
|
|
2018-04-15 21:05:42 -04:00
|
|
|
Route::get('/contact', function() {
|
|
|
|
return view('pages.contact');
|
|
|
|
});
|