Add merchandise, fix articletosell with src for images

This commit is contained in:
Ludovic CANDELLIER
2022-04-14 23:20:09 +02:00
parent 9c2b9cf02e
commit c2ef0c7b35
14 changed files with 69 additions and 23 deletions

View File

@@ -0,0 +1,18 @@
<?php
Route::prefix('Merchandises')->name('Merchandises.')->group(function () {
Route::get('', 'MerchandiseController@index')->name('index');
Route::get('getDataTable', 'MerchandiseController@getDataTable')->name('getDataTable');
Route::get('create', 'MerchandiseController@create')->name('create');
Route::delete('destroy/{id?}', 'MerchandiseController@destroy')->name('destroy');
Route::post('update', 'MerchandiseController@update')->name('update');
Route::post('store', 'MerchandiseController@store')->name('store');
Route::get('edit/{id}', 'MerchandiseController@edit')->name('edit');
Route::post('getSelect', 'MerchandiseController@getOptionsWithSpecie')->name('getSelect');
Route::post('deleteImage', 'MerchandiseController@deleteImage')->name('deleteImage');
Route::any('getImages/{id?}/{can_edit?}', 'MerchandiseController@getImages')->name('getImages');
Route::any('exportExcel', 'MerchandiseController@exportExcel')->name('exportExcel');
});

View File

@@ -10,6 +10,7 @@ Route::middleware('auth')->prefix('Shop')->namespace('Shop')->name('Shop.')->gro
include __DIR__ . '/Homepages.php';
include __DIR__ . '/InvoiceItems.php';
include __DIR__ . '/Invoices.php';
include __DIR__ . '/Merchandises.php';
include __DIR__ . '/Offers.php';
include __DIR__ . '/OrderPayments.php';
include __DIR__ . '/Orders.php';