'prevent-back-history'],function(){ Route::get('resetPassword/{token}', 'ForgotPasswordController@resetPassword'); Route::post('updatePass', 'ForgotPasswordController@forgotstore')->name('updatePass'); Route::post('/sendPassword', 'ForgotPasswordController@store')->name('sendPassword'); Route::group(['namespace' => 'Client', 'namespace' => 'Client'], function() { Route::resource('products', 'ProductController'); Route::get('searchdata', 'ProductController@searchdata'); Route::get('products/{id}/{slug}', 'ProductController@product_details'); Route::resource('services', 'ServiceController'); Route::get('services/{id}/{slug}', 'ServiceController@edit'); Route::get('projects', 'ServiceController@projects'); Route::get('about-us', 'AboutController@index'); Route::get('clients', 'AboutController@cliets'); Route::get('/terms', 'AboutController@termsCondition')->name('terms'); Route::get('/privacy', 'AboutController@privacyPolicy')->name('privacy'); }); Auth::routes(); Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => 'auth', 'admin'], function() { Route::get('/', 'DashboardController@index')->name('home'); Route::resource('dashboard', 'DashboardController'); Route::resource('userProfile', 'ProfileController'); Route::get('resetpassword', 'ProfileController@show'); Route::post('/changePassword/{id}','ProfileController@changePassword')->name('changePassword'); // Category Management Route::resource('clients', 'ClientController'); Route::get('clientsStatus/{id}', 'ClientController@client_Status'); Route::resource('category', 'CategoryController'); Route::get('categoryStatus/{id}', 'CategoryController@category_Status'); Route::resource('product', 'ProductController'); Route::get('productStatus/{id}', 'ProductController@product_Status'); Route::resource('project', 'ProjectController'); Route::get('projectStatus/{id}', 'ProjectController@project_Status'); Route::resource('service', 'ServiceController'); Route::get('serviceStatus/{id}', 'ServiceController@service_Status'); // pages Management Route::resource('pages', 'PagesController'); Route::resource('pageImage', 'PageImageController'); Route::resource('contact', 'ContactController'); Route::resource('websetting', 'WebSettingsController'); Route::resource('testimonial', 'TestimonialController'); }); }); Route::get('exportCategory', 'Admin\CategoryController@export_Category'); Route::get('exportProduct', 'Admin\ProductController@export_Product'); Route::get('exportProject', 'Admin\ProjectController@export_Project');