170 lines
6 KiB
PHP
170 lines
6 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\Fo\ActivitiesController;
|
|
use App\Http\Controllers\Fo\AdnController;
|
|
use App\Http\Controllers\Fo\ContactController;
|
|
use App\Http\Controllers\Fo\EngagmentsController;
|
|
use App\Http\Controllers\Fo\ExpertiseController;
|
|
use App\Http\Controllers\Fo\HomeController;
|
|
use App\Http\Controllers\Fo\IdeasController;
|
|
use App\Http\Controllers\Fo\NewsController;
|
|
use App\Http\Controllers\Fo\ProductsController;
|
|
use App\Http\Controllers\Fo\RecipesController;
|
|
use App\Http\Controllers\Fo\SearchController;
|
|
use App\Http\Controllers\Fo\TipsController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('/', [HomeController::class, 'index'])->name('home');
|
|
|
|
Route::prefix('/notre-adn')
|
|
->name('adn.')
|
|
->group(function () {
|
|
Route::get(
|
|
'/',
|
|
[AdnController::class, 'index']
|
|
)->name('adn');
|
|
Route::get(
|
|
'/notre-histoire',
|
|
[AdnController::class, 'story']
|
|
)->name('story');
|
|
Route::get(
|
|
'/nos-solutions-pensees-pour-les-restaurateurs',
|
|
[AdnController::class, 'btob']
|
|
)->name('btob');
|
|
Route::get(
|
|
'/le-metier-d-eleveur-de-volaille',
|
|
[AdnController::class, 'breeder']
|
|
)->name('breeder');
|
|
});
|
|
|
|
Route::prefix('/nos-engagements')
|
|
->name('engagments.')
|
|
->group(function () {
|
|
// * Onglet 100% Française
|
|
Route::get(
|
|
'/marque-alimentaire-francaise',
|
|
[EngagmentsController::class, 'francais']
|
|
)->name('francais');
|
|
// * Onglet Elever durablement
|
|
Route::get(
|
|
'/elever-durablement',
|
|
[EngagmentsController::class, 'eleverdurablement']
|
|
)->name('eleverdurablement');
|
|
// * Onglet Bien nourrir
|
|
Route::get(
|
|
'/bien-nourrir',
|
|
[EngagmentsController::class, 'biennourrir']
|
|
)->name('biennourrir');
|
|
// * Onglet Respecter la terre
|
|
Route::get(
|
|
'/respecter-la-terre',
|
|
[EngagmentsController::class, 'respecterlaterre']
|
|
)->name('respecterlaterre');
|
|
// * Onglet Mieux vivre ensemble
|
|
Route::get(
|
|
'/mieux-vivre-ensemble',
|
|
[EngagmentsController::class, 'vivreensemble']
|
|
)->name('vivreensemble');
|
|
});
|
|
|
|
Route::prefix('/notre-expertise-volaillere')
|
|
->name('expertise.')
|
|
->group(function () {
|
|
// * Onglet Canard
|
|
Route::get(
|
|
'/canard',
|
|
[ExpertiseController::class, 'canard']
|
|
)->name('canard');
|
|
// * Onglet Dinde
|
|
Route::get(
|
|
'/dinde',
|
|
[ExpertiseController::class, 'dinde']
|
|
)->name('dinde');
|
|
// * Onglet Lapin
|
|
Route::get(
|
|
'/lapin',
|
|
[ExpertiseController::class, 'lapin']
|
|
)->name('lapin');
|
|
// * Onglet Pintade
|
|
Route::get(
|
|
'/pintade',
|
|
[ExpertiseController::class, 'pintade']
|
|
)->name('pintade');
|
|
// * Onglet Poulet
|
|
Route::get(
|
|
'/poulet',
|
|
[ExpertiseController::class, 'poulet']
|
|
)->name('poulet');
|
|
});
|
|
|
|
Route::prefix('/generateur-d-idees-revelateur-de-talents')
|
|
->name('ideas.')
|
|
->group(function () {
|
|
Route::get('/', [
|
|
IdeasController::class, 'index'
|
|
])->name('ideas');
|
|
Route::get('/nos-astuces-volaille', [
|
|
TipsController::class, 'indexTips'
|
|
])->name('tips.index');
|
|
Route::get('/nos-recettes', [
|
|
RecipesController::class, 'indexRecipes'
|
|
])->name('recipes.index');
|
|
});
|
|
|
|
Route::prefix('/astuce')
|
|
->name('tips.')
|
|
->group(function () {
|
|
Route::get('/{publishedAdvice:slug}', [TipsController::class, 'show'])->name('show');
|
|
});
|
|
|
|
Route::prefix('/recette')
|
|
->name('recipes.')
|
|
->group(function () {
|
|
Route::get('/{publishedAdvice:slug}', [RecipesController::class, 'show'])->name('show');
|
|
});
|
|
|
|
Route::prefix('/produits')
|
|
->name('products.')
|
|
->group(function () {
|
|
Route::get('/', [ProductsController::class, 'index'])->name('index');
|
|
Route::get('/gamme/{range:slug}', [ProductsController::class, 'products'])->name('range-products');
|
|
Route::get('/gamme/{range:slug}/ajax', [ProductsController::class, 'productsAjax'])->name('range-products.ajax');
|
|
});
|
|
|
|
Route::prefix('/produit')
|
|
->name('products.')
|
|
->group(function () {
|
|
Route::get('/{publishedProduct:slug}', [ProductsController::class, 'show'])->name('show');
|
|
Route::post('/{publishedProduct:slug}/ajout-au-panier', [ProductsController::class, 'addProductToBasket'])
|
|
->name('add-product-to-basket');
|
|
Route::get('/{publishedProduct:slug}/print-commercial-sheet', [ProductsController::class, 'printCommericalSheet'])
|
|
->name('print-commercial-sheet');
|
|
Route::post('/{slug}/retrait-du-panier', [ProductsController::class, 'removeProductFromBasket'])
|
|
->name('remove-product-from-basket');
|
|
});
|
|
|
|
Route::prefix('/nos-actualites')
|
|
->name('news.')
|
|
->group(function () {
|
|
Route::get('/', [NewsController::class, 'index'])
|
|
->name('index');
|
|
Route::get('specifique/{actu:slug}', [NewsController::class, 'show'])
|
|
->where('slug', '^[a-zA-Z0-9-]*$')
|
|
->name('show');
|
|
});
|
|
|
|
Route::prefix('/contactez-nous')
|
|
->name('contact.')
|
|
->group(function () {
|
|
Route::get('/', [ContactController::class, 'index'])->name('show');
|
|
Route::post('/mail', [ContactController::class, 'contactSubmit'])->name('submit');
|
|
});
|
|
|
|
Route::get('/restauration-sociale', [ActivitiesController::class, 'sociale'])->name('group');
|
|
Route::get('/restauration-commerciale', [ActivitiesController::class, 'commerciale'])->name('trade');
|
|
Route::get('/distributeur', [ActivitiesController::class, 'distributeur'])->name('dealer');
|
|
Route::get('/boulangerie-vente-a-emporter', [ActivitiesController::class, 'boulangerie'])->name('baker');
|
|
|
|
Route::view('/politique-de-donnees-personnelles', 'fo.pages.policies')->name('policies');
|
|
Route::view('/mentions-legales', 'fo.pages.legals')->name('legals');
|
|
Route::get('/recherche', [SearchController::class, 'search'])->name('search');
|