<?php
namespace App\Controller;
use App\Entity\UserVendeur;
use App\Repository\ArticlesRepository;
use App\Repository\UserVendeurRepository;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class AuthController extends AbstractController
{
/**
* @Route("/app-parametres", name="app_parametres")
*/
public function app_parametres(): Response
{
return $this->render('auth/parametres.html.twig', [
'controller_name' => 'AuthController',
]);
}
/**
* @Route("/support", name="app_support")
*/
public function app_support(): Response
{
return $this->render('auth/support.html.twig', [
'controller_name' => 'AuthController',
]);
}
/**
* @Route("/dashbord", name="app_dashboard")
*/
public function dashbord(): Response
{
return $this->render('admin/dashbord/index.html.twig', [
'controller_name' => 'AuthController',
]);
}
/**
* @Route("/boutique-vendeur-profil/{id<[0-9]+>}", name="app_boutique_vendeur_profil")
*/
public function boutique_vendeur_profil(UserVendeur $vendeur): Response
{
return $this->render('auth/profil.html.twig', compact('vendeur'));
}
/**
* @Route("/boutique-vendeur-notification/", name="app_boutique_vendeur_notification")
*/
public function boutique_vendeur_notification(): Response
{
return $this->render('auth/notification.html.twig');
}
/**
* @Route("/boutique-vendeur-panier/", name="app_boutique_vendeur_panier")
*/
public function boutique_vendeur_panier(): Response
{
return $this->render('auth/panier.html.twig');
}
/**
* @Route("/categorie-produits-magasin/", name="app_boutique_categorie")
*/
public function boutique_vendeur_categorieMagasin(UserVendeurRepository $UserVendeurRepos): Response
{
$UserVendeurRepos = $UserVendeurRepos->findBy(['categorie' => 'Magasins'], ['datedeCreations' => 'DESC'], 15);
return $this->render('categorie/catMagasins.html.twig', [
'vendeur' => $UserVendeurRepos
]);
}
/**
* @Route("/categorie-produits-catmagasin/", name="app_boutique_catcategorie")
*/
public function boutique_vendeur_catMagasin(UserVendeurRepository $UserVendeurRepos): Response
{
$UserVendeurRepos = $UserVendeurRepos->findBy(['categorie' => 'Magasins'], ['datedeCreations' => 'DESC'], 15);
return $this->render('categorie/long_catMagasins.html.twig', [
'vendeur' => $UserVendeurRepos
]);
}
/**
* @Route("/categorie-produits-esthetique/", name="app_boutique_esthetique")
*/
public function boutique_vendeur_categorieesthetique(UserVendeurRepository $UserVendeurRepos): Response
{
$UserVendeurRepos = $UserVendeurRepos->findBy(['categorie' => 'Esthétiques & beautés'], ['datedeCreations' => 'DESC'], 15);
return $this->render('categorie/catEsthetique.html.twig', [
'vendeurEsthetique' => $UserVendeurRepos
]);
}
/**
* @Route("/categorie-produits-cartesthetique/", name="app_boutique_cartesthetique")
*/
public function boutique_vendeur_catesthetique(UserVendeurRepository $UserVendeurRepos): Response
{
$UserVendeurRepos = $UserVendeurRepos->findBy(['categorie' => 'Esthétiques & beautés'], ['datedeCreations' => 'DESC'], 15);
return $this->render('categorie/long_catEsthetique.html.twig', [
'vendeurEsthetique' => $UserVendeurRepos
]);
}
/**
* @Route("/categorie-produits-boutiques/", name="app_boutique_Boutiques")
*/
public function boutique_vendeur_categorieBoutiques(UserVendeurRepository $UserVendeurRepos): Response
{
$UserVendeurRepos = $UserVendeurRepos->findBy(['categorie' => 'Boutiques'], ['datedeCreations' => 'DESC'], 15);
return $this->render('categorie/catBoutiques.html.twig', [
'vendeurBoutiques' => $UserVendeurRepos
]);
}
/**
* @Route("/categorie-produits-cartboutiques/", name="app_cartboutique_Boutiques")
*/
public function boutique_vendeur_categorieBoutique(UserVendeurRepository $UserVendeurRepos): Response
{
$UserVendeurRepos = $UserVendeurRepos->findBy(['categorie' => 'Boutiques'], ['datedeCreations' => 'DESC'], 15);
return $this->render('categorie/long_cartBoutique.html.twig', [
'vendeurBoutiques' => $UserVendeurRepos
]);
}
/**
* @Route("/categorie-produits-prestataires/", name="app_boutique_Prestataires")
*/
public function boutique_vendeur_categoriePrestataires(UserVendeurRepository $UserVendeurRepos): Response
{
$UserVendeurRepos = $UserVendeurRepos->findBy(['categorie' => 'Prestataires'], ['datedeCreations' => 'DESC'], 15);
return $this->render('categorie/catPrestataires.html.twig', [
'vendeurPrestataires' => $UserVendeurRepos
]);
}
/**
* @Route("/categorie-produits-cartprestataires/", name="app_cartboutique_Prestataires")
*/
public function boutique_vendeur_catPrestataires(UserVendeurRepository $UserVendeurRepos): Response
{
$UserVendeurRepos = $UserVendeurRepos->findBy(['categorie' => 'Prestataires'], ['datedeCreations' => 'DESC'], 15);
return $this->render('categorie/long_catPrestataires.html.twig', [
'vendeurPrestataires' => $UserVendeurRepos
]);
}
}