Writing a URL in if statement

Posted 2 years ago by manojvarma

Hi i am stuck in writing the URL inside of "if" statement. Here is my code. i want to know how to make it proper.

                        <a href="{{ url('samratbasic') }}"Go>
                        @else($device->name == 'RAKSHAK')
                        <a href="{{ url('rakshakbasic') }}"Go>
                        @endif

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.