Current File : //proc/thread-self/root/proc/self/root/home/tradevaly/www/routes/admin.php |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Admin\OrderController;
use App\Http\Controllers\Admin\ProductInvoiceController;
use App\Http\Controllers\Admin\WatchHistoryController;
Route::group(['prefix' => 'b2b/' ,'as'=>'admin.','namespace' => 'Admin'] , function () {
// Admin common route
Route::group(['middleware' => "admin:admin,common"], function () {
Route::get('product-invoice/{id}','ProductInvoiceController@productInvoice')->name('product_invoice');
Route::get('product-money-receipt/{id}','ProductInvoiceController@productMoneyReceipt')->name('product_money_receipt');
// Profile Route
Route::group(['prefix' => '/profile','as'=>'profile.'], function () {
Route::get('/','ProfileController@index')->name('index');
Route::put('/update','ProfileController@update')->name('update');
});
Route::group(['prefix' => '/product','as'=>'product.'], function () {
Route::get('/all/watch-history', 'WatchHistoryController@viewHistory')->name('viewHistory');
Route::get('/analytics/{id}', 'WatchHistoryController@analytics')->name('analytics');
Route::get('/inquery/{id}/{product}', 'WatchHistoryController@singleInquery')->name('singleInquery');
});
Route::get('/site-setting','SiteSettingController@index')->name('site.setting');
Route::post('/site-setting','SiteSettingController@update')->name('setting-update');
Route::get('/google/analytics','SiteSettingController@analytics')->name('site.analytics');
Route::post('/google/analytics','SiteSettingController@analytics_update')->name('site.analytic.update');
Route::get('/notifications','NotificationController@index')->name('notifications');
Route::get('/notification/{id}', 'NotificationController@delete')->name('notification.del');
Route::get('/orders', 'OrderController@index')->name('order.index');
Route::Post('/order/payment-status/{id}', 'OrderController@paymentStatus')->name('order.payment.status');
Route::get('/order/{id}', 'OrderController@view')->name('order.view');
// Profile Route
Route::group(['prefix' => '/password','as'=>'password.'], function () {
Route::get('/reset','ProfileController@reset')->name('reset');
Route::put('/update','ProfileController@password_update')->name('update');
});
Route::get('/email','EmailController@index')->name('email');
Route::post('/email-sent','EmailController@sent')->name('email.sent');
});
// Subscribe Route
Route::group(['prefix' => '/subscriber','as'=>'subscriber.'], function () {
Route::get('index','SubscriberController@index')->name('index');
Route::get('delete/{id}','SubscriberController@delete')->name('delete');
Route::get('paid','SubscriberController@paid')->name('paid');
Route::get('pending','SubscriberController@pending')->name('pending');
Route::get('invoice-details/{id}','SubscriberController@invoiceDetails')->name('invoice_details');
Route::get('money-receipt/{id}','SubscriberController@moneyReceipt')->name('money_receipt');
});
Route::group(['prefix' => 'advertisement/' ,'as'=>'advertisment.'] , function () {
Route::get('/', 'AdvertismentController@index')->name('index');
Route::get('update/{status}/status/{id}', 'AdvertismentController@status')->name('status');
Route::get('/pending', 'AdvertismentController@pending')->name('pending');
Route::get('/active', 'AdvertismentController@active')->name('active');
Route::get('/expired', 'AdvertismentController@expired')->name('expired');
Route::get('/details/{id}', 'AdvertismentController@details')->name('details');
Route::get('/in-active/{id}', 'AdvertismentController@inActive')->name('in_active');
Route::get('/admin-active/{id}', 'AdvertismentController@adminActive')->name('admin_active');
});
Route::group(['prefix' => 'advertiser/' ,'as'=>'advertiser.','middleware' => "admin:admin,admin_advertiser"] , function () {
Route::get('index','AdvertiserController@index')->name('index');
Route::get('pending','AdvertiserController@pending_advertiser')->name('pending');
Route::get('others','AdvertiserController@others_advertiser')->name('others');
Route::post('status/{id}','AdvertiserController@status')->name('status');
Route::get('unactive/status/{id}','AdvertiserController@unactive_status')->name('unactive_status');
Route::get('destroy/{id}','AdvertiserController@destroy_advertiser')->name('destroy');
Route::get('show/{id}','AdvertiserController@show_advertiser')->name('show');
Route::get('invoice-details/{id}', 'AdvertiserController@advertiserInvoiceDetails')->name('invoice_details');
Route::get('money-receipt/{id}', 'AdvertiserController@advertiserMoneyReceipt')->name('money_receipt');
});
Route::group(['prefix' => 'users/' ,'as'=>'users.','middleware' => "admin:admin,admin_users"] , function () {
Route::get ('index','UserController@index')->name('index');
Route::get('view/{id}','UserController@view')->name('view');
Route::get('delete/{id}','UserController@delete')->name('delete');
Route::get('verified/{id}','UserController@verified')->name('verified');
Route::get('approved/{id}','UserController@approved')->name('approved');
Route::get('thread/{id}','UserController@inbox')->name('inbox');
Route::get('user/{id}','UserController@user_type')->name('user_type');
Route::get('user_delete/{id}','UserController@user_delete')->name('user_delete');
Route::post('update-profile/{id}','UserController@updateProfile')->name('updateProfile');
});
Route::group(['prefix' => '/transaction','as'=>'transaction.'], function () {
Route::get('/','TransactionController@index')->name('index');
Route::get('/details/{id}','TransactionController@details')->name('details');
Route::get('/invoice/{id}','TransactionController@invoice')->name('invoice');
});
Route::group(['prefix' => 'setting', 'as' => 'setting.'], function(){
Route::group(['prefix'=> 'video_banner','as' => 'video_banner.'],function(){
Route::get('/', 'VideoBannerController@index')->name('index');
Route::put('/update' , 'VideoBannerController@update')->name('update');
Route::post('/sort-vedio-upload/{type}','VideoBannerController@sortVedio')->name('sortVedio');
});
Route::group(['prefix'=> 'cwp','as' => 'cwp.'],function(){
Route::get('/' , 'CwpController@index')->name('index');
Route::post('/store', 'CwpController@store')->name('store');
Route::get('/edit/{id}' , 'CwpController@edit')->name('edit');
Route::put('/update/{id}' , 'CwpController@update')->name('update');
Route::get('/destroy/{id}', 'CwpController@destroy')->name('destroy');
Route::group(['prefix' =>'/product', 'as' => 'product.'],function(){
Route::get('/{id}','CwpController@product_index')->name('index');
Route::post('/update','CwpController@product_store')->name('store');
Route::get('/destroy/{id}','CwpController@product_destory')->name('destroy');
});
});
});
});