Current File : //home/tradevaly/public_html/routes/user.php
<?php

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\user\MessagesController;
use App\Http\Controllers\user\CheckOutController;
use App\Http\Controllers\user\InvoiceController;
use App\Http\Controllers\user\Progress;


Route::group(['prefix' => 'user/' ,'as'=>'user.','middleware' => ['auth','auth_verify']] ,  function () {
    Route::get('/dashboard', 'UserController@dashboard')->name('dashboard');
    Route::get('/profile/view', 'UserController@profile_view')->name('profile.view');
    Route::get('/recommand/buy_offer/global', 'UserController@recommand_offerglobal')->name('recommand.offer.global');
    Route::get('/recommand/buy_offer/foryou', 'UserController@recommand_offerforyou')->name('recommand.offer.foryou');
    Route::get('/recommand/buy_offer/foryou/sent-massege/{id}/{inquire}', 'UserController@sentMessage')->name('recommand.sent.massege');
    Route::get('/recommand/buy_offer/foryou/details/{id}', 'UserController@recommand_offerforyou_details')->name('recommand.offer.foryou.details');
    Route::get('/recommand/products', 'UserController@recommand_products')->name('recommand.products');
    Route::resource('/ticket', TicketController::class, ['names' => 'user.ticket']);
    Route::get('/messages', 'MessagesController@index')->name('message.index');
    Route::get('/messages/{id}', 'MessagesController@message')->name('message.view');
    Route::Post('/messages/{id}', 'MessagesController@store')->name('message.store');
    Route::get('/notification', 'NotificationController@index')->name('notification.index');
    Route::get('/notification/{id}', 'NotificationController@delete')->name('notification.del');
    
    
    Route::get('/cart', 'CartController@index')->name('cart.index');
    Route::Post('/cart', 'CartController@store')->name('cart.store');
    Route::Post('/cart/{id}', 'CartController@update')->name('cart.update');
    Route::get('/cart/{id}', 'CartController@delete')->name('cart.delete');
    
    Route::get('/check-out', 'CheckOutController@index')->name('check.index');
    Route::Post('/check-out', 'CheckOutController@checkout')->name('check.store');
    Route::get('/buy/{id}', 'CheckOutController@buy')->name('check.buy');
    
    
    Route::get('/selling-progress', 'Progress@index')->name('selling.index');
    
    Route::get('/product/invoice/{id}', 'InvoiceController@invoice')->name('product.invoice');
    Route::get('/product/money_receipt/{id}', 'InvoiceController@moneyReceipt')->name('product.receipt');
    
    
    Route::get('/orders', 'OrderController@index')->name('order.index');
    Route::get('/new/orders', 'OrderController@new')->name('order.new');
    Route::get('/pending/orders', 'OrderController@pending')->name('order.pending');
    Route::get('/cancel/orders', 'OrderController@cancel')->name('order.cancel');
    Route::get('/delevered/orders', 'OrderController@delevered')->name('order.delevered');
    
    Route::get('/orders/buying', 'OrderController@buying')->name('order.buying');
    Route::get('/orders/buying/details/{id}','OrderController@details')->name('order.details');
    
    Route::get('/order/{id}', 'OrderController@view')->name('order.view');
    Route::post('/order/status/{id}', 'OrderController@status')->name('order.status');

    Route::post('/update/basic_infirmation', 'UserController@basic_infirmation')->name('profile.basic_infirmation');

    Route::group(['prefix' => 'advertisment/' ,'as'=>'advertisment.'] ,  function () {
        Route::get('/', 'AdvertismentController@index')->name('index');
        Route::get('/edit/{id}', 'AdvertismentController@edit')->name('edit');
        // Route::get('/re-new/{id}', 'AdvertismentController@reNew')->name('re_new');
        Route::put('/update/{id}', 'AdvertismentController@update')->name('update');
        Route::get('/renew/{id}', 'AdvertismentController@renew')->name('renew');
        Route::Post('/renew/{id}', 'AdvertismentController@renewUpdate')->name('renewUpdate');
        Route::post('/renew/rent/{id}', 'AdvertismentController@renew_rent')->name('renew_rent');
        Route::get('/pending', 'AdvertismentController@pending')->name('pending');
        Route::get('/expired', 'AdvertismentController@expired')->name('expired');
    });
    // Route::get('my/active/buy/advertiser', 'UserController@activebuy_advertiser')->name('my.buy.advertiser.active');
    // Route::get('my/buy/pending/advertiser', 'UserController@my_pending_buy_advertiser')->name('my.buy.advertiser.pending');
    Route::get('my/buy/all/invoice', 'UserController@my_all_buy_advertiser')->name('my.buy.advertiser.all');
    Route::get('my/buy/advertiser/{id}/invoice-details', 'UserController@advertiserInvoiceDetails')->name('my.buy.advertiser.invoice_details');
    Route::get('my/buy/advertiser/{id}/money-receipt', 'UserController@advertiserMoneyReceipt')->name('my.buy.advertiser.money_receipt');
    Route::get('my/buy/advertiser/{id}/postpaid/payment', 'UserController@advertiserPostpaidPayment')->name('my.buy.advertiser.pospaid_payment');


    Route::get('update-profile','ProfileController@profile')->name('profile');
    Route::post('update-profile', 'ProfileController@profile')->name('profile');
    Route::any('update-pass', 'ProfileController@password')->name('password');

    Route::any('/subscription/index', 'UserController@subs')->name('subs');
    Route::any('/subscription/changeplan', 'UserController@changeplan')->name('changeplan');
    Route::any('/subscription/renew', 'SubscriptionController@renew')->name('renew');
    Route::any('/subscription/choose/{id}', 'SubscriptionController@choose')->name('choose');
    Route::get('/subscription/invoice', 'UserController@subscriptionInvoice')->name('subscription.invoice');
    Route::get('/subscription/money-receipt', 'UserController@subscriptionMoneyReceipt')->name('subscription.money_receipt');    


    Route::middleware(['EXPIRE'])->group(function () {
    Route::any('/featured/submit/{id}', 'UserController@featuredsubmit')->name('featured.submit');
    Route::post('/featured/product/create', 'UserController@feature_product_create')->name('feature_product_create');
    Route::get('/featured/list', 'UserController@featuredlist')->name('featuredlist');
    Route::get('/featured/list/delete/{id}', 'UserController@featuredlistdelete')->name('featuredlist.delete');
    Route::get('/featured/active/product/list', 'UserController@activefeatureProfuctlist')->name('active.feature.Profuct.list');
    Route::any('/company/setting', 'UserController@setting')->name('setting');
    Route::get('/offer/index', 'UserController@offers')->name('offers');
    
    // Product Route Start
    Route::get('/products/index', 'ProductController@products')->name('products');
    Route::any('/products/rejected', 'ProductController@rej_product')->name('rej_products');
    Route::any('/products/trashed', 'ProductController@trashed_product')->name('trashed_products');
    Route::get('/products/trashed/destroy/{id}', 'ProductController@trashed_product_destroy')->name('trashed_products.destroy');
    Route::get('/products/trashed/return/{id}', 'ProductController@trash_product_rerurn')->name('trashed_products.return');
    Route::any('/products/pending', 'ProductController@pending_product')->name('pending_products');
    Route::any('/products/add', 'ProductController@addproduct')->name('addproducts');
    Route::any('/product/delete/{id}', 'ProductController@delproduct')->name('delproducts');
    Route::any('/product/edit/{id}', 'ProductController@editproduct')->name('editproducts');
    Route::get('/product/watch-history', 'WatchHistoryController@viewHistory')->name('viewHistory');
    Route::get('/product/analytics/{id}', 'WatchHistoryController@analytics')->name('product.analytics');
    Route::get('/product/add-price/{id}', 'ProductController@addPrice')->name('addPrice');
    Route::Post('/product/add-price/{id}', 'ProductController@savePrice')->name('savePrice');
    Route::get('/product/delete-price/{id}', 'ProductController@deletePrice')->name('delete.price');
    // Product Route end

    Route::get('/pdf/index', 'UserController@pdf')->name('pdf');
    Route::any('/pdf/add', 'UserController@addpdf')->name('addpdf');
    Route::any('/pdf/delete/{id}', 'UserController@delpdf')->name('delpdf');

    Route::get('/award/index', 'UserController@award')->name('award');
    Route::any('/award/add', 'UserController@addaward')->name('addaward');
    Route::any('/award/delete/{id}', 'UserController@delaward')->name('delaward');

    Route::get('/certificate/index', 'UserController@certificate')->name('certificate');
    Route::any('/certificate/add', 'UserController@addcertificate')->name('addcertificate');
    Route::any('/certificate/delete/{id}', 'UserController@delcertificate')->name('delcertificate');


    Route::any('/offer/add', 'UserController@addoffer')->name('addoffer');
    Route::any('/offer/delete/{id}', 'UserController@deloffer')->name('deloffer');
    Route::any('/offer/edit/{id}', 'UserController@editoffer')->name('editoffer');

    Route::any('/inbox/view/{id}', 'UserController@inbox_view')->name('inbox.view');
    Route::any('/inbox/index', 'UserController@inbox')->name('inbox');
    });
    });

    Route::get('/logins', function () {
        return view('frontend.pages.login');
    });

    Route::get('/about_us', function () {
        return view('frontend.pages.contact');
});