<?php
namespace App\Controller;
use App\Entity\ContactForm;
use App\Form\ContactFormType;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class OtherPagesController extends AbstractController
{
#[Route('/plans', name: 'plans')]
public function index(): Response
{
return $this->render('other_pages/plans.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/about', name: 'about')]
public function about(): Response
{
return $this->render('other_pages/about.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/contacts', name: 'contacts')]
public function contacts(): Response
{
$contact = new ContactForm();
$form = $this->createForm(ContactFormType::class, $contact);
return $this->render('other_pages/contacts.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser(),
'form' =>$form->createView()
]);
}
#[Route('/templates', name: 'templates')]
public function templates(): Response
{
return $this->render('other_pages/templates.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/partner', name: 'partner')]
public function partner(): Response
{
return $this->render('other_pages/partner.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/help-center', name: 'help-center')]
public function helpcenter(): Response
{
return $this->render('other_pages/helpcenter.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/tutorial', name: 'turtorial')]
public function tutorial(): Response
{
return $this->render('other_pages/tutorial.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/tips', name: 'tips')]
public function tips(): Response
{
return $this->render('other_pages/tips.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/datenshutz', name: 'datenshutz')]
public function datenshutz(): Response
{
return $this->render('other_pages/datenschutz.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/agb', name: 'agb')]
public function agb(): Response
{
return $this->render('other_pages/agb.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/impressum', name: 'impressum')]
public function impressum(): Response
{
$contact = new ContactForm();
$form = $this->createForm(ContactFormType::class, $contact);
return $this->render('other_pages/impressum.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser(),
'form' => $form
]);
}
#[Route('/customer-review', name: 'customer-review')]
public function customerReview(): Response
{
return $this->render('other_pages/review.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
#[Route('/streamVideo', name: 'streamVideo')]
public function streamVideo(): Response
{
return $this->render('other_pages/contacts.html.twig', [
'controller_name' => 'OtherPagesController',
'user' => $this->getUser()
]);
}
}