obet
3 months ago
383
1
Laravel

use of @include() blade directive inside the javascript

Posted 3 months ago by obet

I have different form and to use include blade directive to show form base on the test type selected.

<script>
    switch(testType) {
      case 1:
         @include('penetration-test-form');
	break;
      case 2:
	 @include('ductility-test-form');
	break;
    }
</script>

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