I want to make a simple if else statement with form in laravel without using a database. I want to make the form can make me choose as John, Jack, or James. Can anyone please help me show how to code the form
//I want to make a form in here
@if($name == 'John')
<h2 class="pt-2 tm-color-primary tm-post-tittle">Hai {{$name}}!</h2>
@elseif($name == 'Jack')
<h2 class="pt-2 tm-color-primary tm-post-tittle">Hai {{$name}}!</h2>
@elseif($name == 'James')
<h2 class="pt-2 tm-color-primary tm-post-tittle">Hai {{$name}}!</h2>
@else
<h2 class="pt-2 tm-color-primary tm-post-tittle">I dont know you</h2>
@endif