This commit is contained in:
Ludovic CANDELLIER
2022-11-11 13:05:40 +01:00
parent f89acd9399
commit 7df2421373
104 changed files with 1212 additions and 764 deletions

View File

@@ -1,12 +1,11 @@
<?php
Route::prefix('Orders')->name('Orders.')->group(function () {
Route::get('', 'OrderController@index')->name('index');
Route::get('create', 'OrderController@create')->name('create');
Route::delete('destroy', 'OrderController@destroy')->name('destroy');
Route::post('update', 'OrderController@update')->name('update');
Route::post('store', 'OrderController@store')->name('store');
Route::get('edit/{id}', 'OrderController@edit')->name('edit');
Route::get('', 'OrderController@index')->name('index');
Route::get('create', 'OrderController@create')->name('create');
Route::delete('destroy', 'OrderController@destroy')->name('destroy');
Route::post('update', 'OrderController@update')->name('update');
Route::post('store', 'OrderController@store')->name('store');
Route::get('edit/{id}', 'OrderController@edit')->name('edit');
});

View File

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

View File

@@ -1,6 +1,6 @@
<?php
Route::prefix('Basket')->name('Basket.')->group(function () {
Route::prefix('Panier')->name('Basket.')->group(function () {
Route::post('getPrice', 'BasketController@getPrice')->name('getPrice');
Route::post('addBasket', 'BasketController@addBasket')->name('addBasket');
Route::get('modalBasket/{offer_id?}/{quantity?}', 'BasketController@modalBasket')->name('modalBasket');

View File

@@ -1,6 +1,6 @@
<?php
Route::prefix('Categories')->name('Categories.')->group(function () {
Route::prefix('Rayons')->name('Categories.')->group(function () {
Route::get('', 'CategoryController@index')->name('index');
Route::any('show/{id}', 'CategoryController@show')->name('show');
Route::get('getTree', 'CategoryController@getTree')->name('getTree');

View File

@@ -1,6 +1,6 @@
<?php
Route::prefix('Customers')->name('Customers.')->group(function () {
Route::prefix('Clients')->name('Customers.')->group(function () {
Route::get('show/{id}', 'CustomerController@show')->name('show');
Route::get('profile/{id?}', 'CustomerController@profile')->name('profile');
});

View File

@@ -1,6 +1,6 @@
<?php
Route::prefix('Invoices')->name('Invoices.')->group(function () {
Route::prefix('Factures')->name('Invoices.')->group(function () {
Route::get('show/{id}', 'InvoiceController@show')->name('show');
});

View File

@@ -1,6 +1,6 @@
<?php
Route::prefix('Offers')->name('Offers.')->group(function () {
Route::prefix('Offres')->name('Offers.')->group(function () {
Route::get('show/{id}', 'OfferController@show')->name('show');
});

View File

@@ -1,6 +1,6 @@
<?php
Route::middleware('auth')->prefix('Searches')->name('Searches.')->group(function () {
Route::get('results/{search?}', 'SearchController@search')->name('search');
Route::prefix('Recherche')->name('Searches.')->group(function () {
Route::get('resultats/{search?}', 'SearchController@search')->name('search');
});

View File

@@ -1,19 +1,6 @@
<?php
Route::prefix('Shop')->namespace('Shop')->name('Shop.')->group(function () {
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login')->name('login.post');
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
Route::get('invite/{token?}/{event_id?}', 'Auth\LoginController@invite')->name('invite');
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
Route::get('password/request', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('password.update');
Route::get('password/reset/{token?}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
Route::post('register', 'Auth\RegisterController@register')->name('register.post');
});
Route::prefix('Shop')->namespace('Shop')->name('Shop.')->group(function () {
Route::prefix('')->namespace('Shop')->name('Shop.')->group(function () {
include __DIR__ . '/Articles.php';
include __DIR__ . '/Baskets.php';
include __DIR__ . '/Categories.php';
@@ -22,5 +9,6 @@ Route::prefix('Shop')->namespace('Shop')->name('Shop.')->group(function () {
include __DIR__ . '/Offers.php';
include __DIR__ . '/Orders.php';
include __DIR__ . '/Orders.php';
include __DIR__ . '/OrderPayments.php';
include __DIR__ . '/Searches.php';
});

10
routes/paybox.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
Route::prefix('Payment')->name('paybox.')->group(function () {
Route::get('accepted', 'Shop\PayboxController@accepted')->name('accepted');
Route::get('refused', 'Shop\PayboxController@refused')->name('refused');
Route::get('aborted', 'Shop\PayboxController@aborted')->name('aborted');
Route::get('waiting', 'Shop\PayboxController@waiting')->name('waiting');
Route::get('process', 'Shop\PayboxController@process')->name('process');
});

View File

@@ -11,11 +11,25 @@
|
*/
Auth::routes();
// Auth::routes();
Route::prefix('')->namespace('')->name('')->group(function () {
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login')->name('login.post');
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
Route::get('password/request', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('password.update');
Route::get('password/reset/{token?}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
Route::post('register', 'Auth\RegisterController@register')->name('register.post');
});
Route::get('', 'Shop\HomeController@index')->name('welcome');
Route::get('home', 'Shop\HomeController@index')->name('home');
include( __DIR__ . '/Admin/route.php');
include( __DIR__ . '/Shop/route.php');
include( __DIR__ . '/Botanic/route.php');
include __DIR__ . '/Admin/route.php';
include __DIR__ . '/Shop/route.php';
include __DIR__ . '/Botanic/route.php';
include __DIR__ . '/paybox.php';