<?php

use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return redirect()->route('dashboard');
});

Route::get('/dashboard', function () {
    return view('dashboard');
})->name('dashboard');

Route::get('/magasins', function () {
    return view('magasins.index');
})->name('magasins.index');

Route::get('/produits', function () {
    return view('produits.index');
})->name('produits.index');

Route::get('/stock', function () {
    return view('stock.index');
})->name('stock.index');

Route::get('/transferts', function () {
    return view('transferts.index');
})->name('transferts.index');

Route::get('/ventes', function () {
    return view('ventes.index');
})->name('ventes.index');

Route::get('/clients', function () {
    return view('clients.index');
})->name('clients.index');

Route::get('/cautions', function () {
    return view('cautions.index');
})->name('cautions.index');

Route::get('/factures', function () {
    return view('factures.index');
})->name('factures.index');

Route::get('/fournisseurs', function () {
    return view('fournisseurs.index');
})->name('fournisseurs.index');

Route::get('/achats', function () {
    return view('achats.index');
})->name('achats.index');

Route::get('/depenses', function () {
    return view('depenses.index');
})->name('depenses.index');

Route::get('/mouvements', function () {
    return view('mouvements.index');
})->name('mouvements.index');

Route::get('/personnel', function () {
    return view('personnel.index');
})->name('personnel.index');

Route::get('/inventaire', function () {
    return view('inventaire.index');
})->name('inventaire.index');

Route::get('/audits', function () {
    return view('audits.index');
})->name('audits.index');

Route::get('/rapports', function () {
    return view('rapports.index');
})->name('rapports.index');
