123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?php
- use App\Http\Controllers\AizUploadController;
- //Upload
- Route::group(['prefix' => 'seller', 'middleware' => ['seller', 'verified', 'user'], 'as' => 'seller.'], function () {
- Route::controller(AizUploadController::class)->group(function () {
- Route::any('/uploads', 'index')->name('uploaded-files.index');
- Route::any('/uploads/create', 'create')->name('uploads.create');
- Route::any('/uploads/file-info', 'file_info')->name('my_uploads.info');
- Route::get('/uploads/destroy/{id}', 'destroy')->name('my_uploads.destroy');
- });
- });
- Route::group(['namespace' => 'App\Http\Controllers\Seller', 'prefix' => 'seller', 'middleware' => ['seller', 'verified', 'user'], 'as' => 'seller.'], function () {
- Route::controller(DashboardController::class)->group(function () {
- Route::get('/dashboard', 'index')->name('dashboard');
- });
- Route::controller(TransactionController::class)->group(function () {
- Route::get('/transaction', 'index')->name('transaction');
- Route::get('/transaction/find', 'find')->name('transaction.find');
- Route::post('/transaction/update', 'update')->name('transaction.update');
- });
- Route::controller(SellerController::class)->group(function () {
- Route::get('/seller/{id}/edit', 'edit')->name('seller.edit');
- Route::post('/seller/update/{product}', 'update')->name('seller.update');
- Route::get('/seller/del/{id}', 'del')->name('seller.del');
- Route::post('/seller/updatePublished', 'updatePublished')->name('seller.updatePublished');
- });
- // Product
- Route::controller(ProductController::class)->group(function () {
- Route::get('/products', 'index')->name('products');
- Route::get('/product/create', 'create')->name('products.create');
- Route::post('/products/store/', 'store')->name('products.store');
- Route::get('/product/{id}/edit', 'edit')->name('products.edit');
- Route::post('/products/update/{product}', 'update')->name('products.update');
- Route::get('/products/duplicate/{id}', 'duplicate')->name('products.duplicate');
- Route::post('/products/sku_combination', 'sku_combination')->name('products.sku_combination');
- Route::post('/products/sku_combination_edit', 'sku_combination_edit')->name('products.sku_combination_edit');
- Route::post('/products/add-more-choice-option', 'add_more_choice_option')->name('products.add-more-choice-option');
- Route::post('/products/seller/featured', 'updateFeatured')->name('products.featured');
- Route::post('/products/published', 'updatePublished')->name('products.published');
- Route::get('/products/destroy/{id}', 'destroy')->name('products.destroy');
- Route::post('/products/spread', 'updateSellerSpreadPackage')->name('products.spread');
- Route::post('/products/product_seller_review_modal', 'product_seller_review_modal')->name('products.product_seller_review_modal');
- });
- // Product Storehouse
- Route::controller(ProductStorehouseController::class)->group(function () {
- Route::get('/product/storehouse', 'index')->name('product_storehouse.index');
- Route::get('/product/storehouse/search', 'searchProduct')->name('product_storehouse.search');
- Route::post('/product/storehouse/add', 'addProduct')->name('product_storehouse.add');
- });
- // Product Bulk Upload
- Route::controller(ProductBulkUploadController::class)->group(function () {
- Route::get('/product-bulk-upload/index', 'index')->name('product_bulk_upload.index');
- Route::post('/product-bulk-upload/store', 'bulk_upload')->name('bulk_product_upload');
- Route::group(['prefix' => 'bulk-upload/download'], function() {
- Route::get('/category', 'App\Http\Controllers\ProductBulkUploadController@pdf_download_category')->name('pdf.download_category');
- Route::get('/brand', 'App\Http\Controllers\ProductBulkUploadController@pdf_download_brand')->name('pdf.download_brand');
- });
- });
- // Digital Product
- Route::controller(DigitalProductController::class)->group(function () {
- Route::get('/digitalproducts', 'index')->name('digitalproducts');
- Route::get('/digitalproducts/create', 'create')->name('digitalproducts.create');
- Route::post('/digitalproducts/store', 'store')->name('digitalproducts.store');
- Route::get('/digitalproducts/{id}/edit', 'edit')->name('digitalproducts.edit');
- Route::post('/digitalproducts/update/{id}', 'update')->name('digitalproducts.update');
- Route::get('/digitalproducts/destroy/{id}', 'destroy')->name('digitalproducts.destroy');
- Route::get('/digitalproducts/download/{id}', 'download')->name('digitalproducts.download');
- });
- //Coupon
- Route::resource('coupon', CouponController::class);
- Route::controller(CouponController::class)->group(function () {
- Route::post('/coupon/get_form', 'get_coupon_form')->name('coupon.get_coupon_form');
- Route::post('/coupon/get_form_edit', 'get_coupon_form_edit')->name('coupon.get_coupon_form_edit');
- Route::get('/coupon/destroy/{id}', 'destroy')->name('coupon.destroy');
- });
- //Order
- Route::resource('orders', OrderController::class);
- Route::controller(OrderController::class)->group(function () {
- Route::post('/orders/payment/storehouse', 'paymentForStorehouseProductAmount')->name('orders.payment_for_storehouse_product');
- Route::post('/orders/update_delivery_status', 'update_delivery_status')->name('orders.update_delivery_status');
- Route::post('/orders/update_payment_status', 'update_payment_status')->name('orders.update_payment_status');
- });
- Route::controller(InvoiceController::class)->group(function () {
- Route::get('/invoice/{order_id}', 'invoice_download')->name('invoice.download');
- });
- // Route::get('invoice/{order_id}',[InvoiceController::class, 'invoice_download'])->name('invoice.download');
- //Review
- Route::controller(ReviewController::class)->group(function () {
- Route::get('/reviews', 'index')->name('reviews');
- Route::get('/edit', 'edit')->name('edit');
- Route::get('/del', 'del')->name('del');
- Route::post('/update', 'update')->name('update');
- Route::post('/updateStatus', 'updateStatus')->name('updateStatus');
- });
- // Route::get('/reviews', [ReviewController::class, 'index'])->name('reviews');
- //Shop
- Route::controller(ShopController::class)->group(function () {
- Route::get('/shop', 'index')->name('shop.index');
- Route::post('/shop/update', 'update')->name('shop.update');
- Route::post('/shop/online_service_update', 'online_service_update')->name('shop.online_service_update');
- Route::get('/shop/apply_for_verification', 'verify_form')->name('shop.verify');
- Route::post('/shop/verification_info_store', 'verify_form_store')->name('shop.verify.store');
- // Route::post('/shop/regstore', 'regstore')->name('shop.regstore');
- });
- //Payments
- Route::resource('payments', PaymentController::class);
- // Profile Settings
- Route::controller(ProfileController::class)->group(function () {
- Route::get('/profile', 'index')->name('profile.index');
- Route::post('/profile/update/{id}', 'update')->name('profile.update');
- });
- Route::controller(ProfileController::class)->group(function () {
- Route::get('/profile', 'index')->name('profile.index');
- Route::post('/profile/update/{id}', 'update')->name('profile.update');
- });
- // Address
- Route::resource('addresses', AddressController::class);
- Route::controller(AddressController::class)->group(function () {
- Route::post('/get-states', 'getStates')->name('get-state');
- Route::post('/get-cities', 'getCities')->name('get-city');
- Route::post('/address/update/{id}', 'update')->name('addresses.update');
- Route::get('/addresses/destroy/{id}', 'destroy')->name('addresses.destroy');
- Route::get('/addresses/set_default/{id}', 'set_default')->name('addresses.set_default');
- });
- // Money Withdraw Requests
- Route::controller(SellerWithdrawRequestController::class)->group(function () {
- Route::get('/money-withdraw-requests', 'index')->name('money_withdraw_requests.index');
- Route::post('/money-withdraw-request/store', 'store')->name('money_withdraw_request.store');
- });
- // Commission History
- Route::controller(CommissionHistoryController::class)->group(function () {
- Route::get('/commission-history', 'index')->name('commission-history.index');
- });
- //Conversations
- Route::controller(ConversationController::class)->group(function () {
- Route::get('/conversations', 'index')->name('conversations.index');
- Route::get('/conversations/show/{id}', 'show')->name('conversations.show');
- Route::post('conversations/refresh', 'refresh')->name('conversations.refresh');
- Route::post('conversations/message/store', 'message_store')->name('conversations.message_store');
- Route::get('/conversations/count', 'message_count')->name('conversations.message_count');
- });
- // product query (comments) show on seller panel
- Route::controller(ProductQueryController::class)->group(function () {
- Route::get('/product-queries', 'index')->name('product_query.index');
- Route::get('/product-queries/{id}', 'show')->name('product_query.show');
- Route::put('/product-queries/{id}', 'reply')->name('product_query.reply');
- });
- // Support Ticket
- Route::controller(SupportTicketController::class)->group(function () {
- Route::get('/support_ticket', 'index')->name('support_ticket.index');
- Route::post('/support_ticket/store', 'store')->name('support_ticket.store');
- Route::get('/support_ticket/show/{id}', 'show')->name('support_ticket.show');
- Route::post('/support_ticket/reply', 'ticket_reply_store')->name('support_ticket.reply_store');
- });
- // Notifications
- Route::controller(NotificationController::class)->group(function () {
- Route::get('/all-notification', 'index')->name('all-notification');
- });
- });
|