src/Controller/Front/StaticController.php line 110

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Front;
  3. use Symfony\Component\HttpFoundation\Response;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use App\Entity\Purchaser;
  7. use App\Entity\Config;
  8. use App\Entity\Video;
  9. use App\Entity\Photo;
  10. class StaticController  extends AbstractController
  11. {
  12.     /**
  13.      * @Route("/vendre", name="vendre")
  14.      */
  15.     public function vendre(): Response
  16.     {
  17.         $purchasers = $this->getDoctrine()->getRepository(Purchaser::class)->findAll();
  18.         $nombre_aquereurs = $this->getDoctrine()->getRepository(Config::class)->findOneBySlug('nombre-daquereurs');
  19.         return $this->render('front/static/vendre.html.twig', [
  20.             'purchasers' => $purchasers,
  21.             'nombre_aquereurs' => $nombre_aquereurs->getValue()
  22.         ]);
  23.     }
  24.     /**
  25.      * @Route("/devenir_conseiller", name="devenir_conseiller")
  26.      */
  27.     public function devenir_conseiller(): Response
  28.     {       
  29.         return $this->redirectToRoute('homepage', [], 301);
  30.         
  31.         $videos = $this->getDoctrine()->getRepository(Video::class)->findAll();
  32.         return $this->render('front/static/devenir_conseiller.html.twig', [
  33.             'videos' => $videos,
  34.         ]);
  35.     
  36.     }
  37.     public function marquee_photos(): Response
  38.     {
  39.         $photos = $this->getDoctrine()->getRepository(Photo::class)->findAll();
  40.         return $this->render('front/_common/_marquee_photos.html.twig', [
  41.             'photos' => $photos,
  42.             'speed' => 15,
  43.             'displayed' => [
  44.                 'xs' => 2,
  45.                 'sm' => 3,
  46.                 'md' => 4,
  47.                 'lg' => 5,
  48.                 'xl' => 6,
  49.                 'xxl' => 6,
  50.             ]
  51.         ]);
  52.     }
  53.     /**
  54.      * @Route("/covid", name="covid")
  55.      */
  56.     public function covid(): Response
  57.     {   
  58.         $router = $this->get('router');
  59.         $url = $router->generate('homepage');
  60.         return $this->redirect($url, 301);
  61.         return $this->render('front/static/covid.html.twig', [
  62.         ]);
  63.     
  64.     }
  65.     /**
  66.      * @Route("/estimation-en-ligne", name="estimation")
  67.      */
  68.     public function estimation(): Response
  69.     {
  70.         return $this->render('front/static/estimation.html.twig', [
  71.         ]);
  72.     
  73.     }
  74.     /**
  75.      * @Route("/mentions_legales", name="mentions_legales")
  76.      */
  77.     public function mentions_legales(): Response
  78.     {
  79.         return $this->render('front/static/mentions_legales.html.twig', [
  80.         ]);
  81.     
  82.     }
  83.     
  84.     /**
  85.      * @Route("/politique_de_confidentialite", name="politique_de_confidentialite")
  86.      */
  87.     public function politique_de_confidentialite(): Response
  88.     {
  89.         return $this->render('front/static/politique_de_confidentialite.html.twig', [
  90.         ]);
  91.     
  92.     }
  93.     /**
  94.      * @Route("/nue-propriete", name="nue_propriete")
  95.      */
  96.     public function nue_propriete(): Response
  97.     {
  98.         $testimonies = [
  99.             [
  100.                 "signature" => "Nicole & Stéphane - 45 ans",
  101.                 "image" => "nicole_stephane.jpeg", 
  102.                 "comment" => "Grâce à la vente en nue-propriété, après une estimation de notre maison à 450.000 € en pleine propriété, nous avons pu récupérer le montant de 316.000 € pour 10 ans d’occupation, ce qui nous a permis de financer notre rêve : l’achat d’un bateau pour profiter du Golfe du Morbihan. Cette solution nous a vraiment aidés à concrétiser notre projet."
  103.             ],
  104.             [
  105.                 "signature" => "Gwenaëlle, 52 ans",
  106.                 "image" => "gwenaelle.jpeg", 
  107.                 "comment" => "A 52 ans, nous avons vendu notre maison en nue-propriété pour financer les études de nos enfants à Paris et préparer l’achat d’un appartement en bord de mer qui deviendra notre résidence principale dans 11 ans. L'avenir de nos enfants et notre future \"chez nous\"  étaient une priorité"
  108.             ],
  109.             [
  110.                 "signature" => "Nathalie 62 ans & Jean-Pierre 67 ans",
  111.                 "image" => "nathalie_jean_pierre.jpeg", 
  112.                 "comment" => "A la soixantaine passée, notre projet était de profiter de la retraite en achetant un camping-car et un appartement à la montagne. Pour concrétiser ces rêves, nous avons opté pour la vente en nue-propriété de notre maison évaluée à 450.000 € avec usufruit longue durée. Cette décision nous a permis de recevoir un soutien financier solide pour réaliser nos projets à la retraite."
  113.             ],
  114.         ]; 
  115.         $steps = [
  116.             "Rencontre avec notre expert spécialisé et définition de votre projet de vente",
  117.             "Estimation précise de votre maison et mise en vente de la nue-propriété",
  118.             "Signature du compromis de vente avec le notaire de votre choix ou celui de l'agence",
  119.             "Signature, transfert des fonds et conservation de l'usage pendant la période définie",
  120.         ];
  121.         return $this->render('front/static/nue_propriete.html.twig', [
  122.             'testimonies' => $testimonies,
  123.             'steps' => $steps
  124.         ]);
  125.     
  126.     }
  127. }